~dont_cache() ~includeonce('../config.tmpl') ~includeonce('../lib/tags.tmpl') ~includeonce('../lib/users.tmpl') ~includeonce('../site/thumbnail.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 news WHERE state=~get('state_ok') AND user_id='~addslashes(~get('user_id_tmp'))' " ,'LM',~set('num',~fld('count')) ) ~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'),20) ~list(~get('database'), "SELECT news.id, news.body, news.topic_id, news.title, news.timestamp FROM news WHERE news.user_id=~integer(~get('user_id_tmp')) AND news.state=~get('state_ok') ORDER BY news.id DESC LIMIT 20 OFFSET ~get('indice')", 'LM',~includewithcache('../infos/news2nd.txt', ~fld('id')) ,'LD',~http_error(404) ) ~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'),20)
~include("../site/footer.tmpl")