~dont_cache() ~includeonce('../config.tmpl') ~includeonce('../lib/tags.tmpl') ~includeonce('../lib/users.tmpl') ~includeonce('../lib/thumbnail.tmpl') ~includeonce('../lib/settings.tmpl') ~set('meta_robots','noindex,follow') ~if(~login2id(~get_dirname(1))==0, ~http_error(404)) ~set('title','Page de ~get('login_user')') ~include('../site/header.tmpl') ~include('../updateuser.tmpl')

~includewithcache('../comments/user.txt',~get('user_id_tmp'))

~user_tags(~get('user_id_tmp'), ~get('login_user'))
~list(~get('database'), "SELECT count(*) as count FROM articles WHERE articles.state=~get('state_ok') AND articles.post_timestamp <= CURRENT_TIMESTAMP() AND user_id=~integer(~get('user_id_tmp')) " ,'LM',~set('num',~fld('count')) ) ~setl('res_per_page', ~getcnf('articles_count_index_user', 25)) ~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'), ~getl('res_per_page')) ~list(~get('database'), "SELECT articles.id, articles.topic_id, topics.title AS topic, articles.title, articles.timestamp, articles.body, articles_sections.longname AS section FROM articles,topics,articles_sections WHERE articles.state=~get('state_ok') AND articles.post_timestamp <= CURRENT_TIMESTAMP() AND articles.user_id=~integer(~get('user_id_tmp')) AND articles.topic_id=topics.id AND articles_sections.id=articles.section_id ORDER BY articles.timestamp DESC LIMIT ~getl('res_per_page') OFFSET ~get('indice')", 'LF','
','LL','
', 'LM',~include('../articles/archives.txt'), 'LD',~http_error(404) ) ~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'),~getl('res_per_page'))
~include("../site/footer.tmpl")