~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')
~list(~get('database'),
"SELECT count(*) as count
FROM
articles
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
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.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 20 OFFSET ~get('indice')",
'LF','
','LL','
',
'LM',~include('../articles/archives.txt'),
'LD',~http_error(404)
)
~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'),20)
~include("../site/footer.tmpl")