~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
news
WHERE
state=~get('state_ok')
AND user_id=~integer(~get('user_id_tmp'))
"
,'LM',~set('num',~fld('count'))
)
~setl('res_per_page', ~getcnf('news_count_index_user', 25))
~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'), ~getl('res_per_page'))
~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 ~getl('res_per_page') OFFSET ~get('indice')",
'LM',~includewithcache('../infos/news2nd.txt', ~fld('id'))
,'LD',~http_error(404)
)
~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'), ~getl('res_per_page'))
~include("../site/footer.tmpl")