~dont_cache() ~set('title','Gérer vos sessions') ~includeonce('../config.tmpl') ~include("../site/header.tmpl") ~include("../updateuser.tmpl") ~includeonce('../lib/xsrf.tmpl') ~if(~get('user_id')=='',~redirect(~get_site_url()))
~include('../site/authbox.ok.tmpl', 'my')
~list(~get('database'),"SELECT id,ip,lastseen + 0 as lastseen,expire + 0 as expire FROM sessions WHERE user_id='~addslashes(~get('user_id'))' ORDER BY lastseen DESC", 'LF','
~add_xsrf_token() ', 'LL', '
  identifiant Adresse IP Dernière visite Expiration
 
', 'LM',' ~if(~get('md5') == ~fld('id'),'~htmlentities_encode(~fld('id'))',~htmlentities_encode(~fld('id'))) ~htmlentities_encode(~hex2ip(~fld('ip'))) ~format_timestamp('%Y-%m-%d %H:%M:%S',~fld('lastseen')) ~if(~fld('expire') == 0,"Pas d'expiration",~format_timestamp('%Y-%m-%d %H:%M:%S',~fld('expire'))) ')
~include("../site/footer.tmpl")