~includeonce('../config.tmpl') ~includeonce('../lib/thumbnail.tmpl') ~list(~get('database'), 'SELECT id, title FROM news WHERE id=~integer(~get_filename())', 'LM', ~set('title', ~fld('title'), 'og_image', ~get_dim_img_path(~get_thumbnail_img_id(~get('res_type_news'),~fld('id')))), 'LD', ~http_error(404) ) ~list(~get('database'), "SELECT news.id, news.timestamp FROM news WHERE id<~integer(~get_filename()) AND state=~get('state_ok') ORDER BY id DESC LIMIT 1", 'LM',~set('prevlink','~relative_templeet()infos/~format_timestamp('%Y/%m/%d/~fld('id').html',~fld('timestamp'))') ) ~list(~get('database'), "SELECT news.id, news.timestamp FROM news WHERE id>~integer(~get_filename()) AND state=~get('state_ok') ORDER BY id ASC LIMIT 1", 'LM',~set('nextlink','~relative_templeet()infos/~format_timestamp('%Y/%m/%d/~fld('id').html',~fld('timestamp'))') ) ~set('uplink','~relative_templeet()infos/~get_dirname(3)/~get_dirname(2)/~get_dirname(1)/') ~set('timestamp',~addslashes('~get_dirname(3)~get_dirname(2)~get_dirname(1)000000')) ~include('../site/header.tmpl')
~includewithcache('news_topicold.tmpl',~get_filename())
~include("one_news.tmpl",~get_filename())
~include("../site/news_comments.tmpl",~get_filename(),~get('res_type_news')) ~back_to_top() ~include('../site/footer.tmpl')