~dont_cache() ~include('../config.tmpl') ~include('../updateuser.tmpl') ~if(~get('is_admin')==0,~http_error(404)) ~set('title','Administration: Clean') ~include('../site/header.tmpl') ~include('filter.tmpl') Retourner à l'admin

~include('../lib/tags.tmpl')
~list( ~get('database'), "SELECT url, description, title, state, timestamp FROM urls WHERE main='1' AND state=~get('state_ok')", 'LM',' ~list(~get('database'), "INSERT INTO pboxes(title,description, timestamp, start_timestamp, end_timestamp, state, location, content_type) VALUES ('~addslashes(~fld('title'))', '~addslashes(~fld('description'))', '~fld('timestamp')', CURRENT_TIMESTAMP(), date_add( CURRENT_TIMESTAMP(), interval 1 year), ~fld('state'), 'L', 'L' )" ) ~set('last_id', ~list(~get('database'), "SELECT last_insert_id() AS last", 'LM',~fld('last'))) ~list(~get('database'), "INSERT INTO news_urls(news_id,res_type,name,description,url,timestamp) VALUES ( ~get('last_id'), 100, '~addslashes(~fld('title'))', '~addslashes(~fld('description'))', '~addslashes(~fld('url'))', '~addslashes(~fld('timestamp'))' ) " ) ' ) ~list(~get('database'), "INSERT INTO news_urls(news_id, res_type, name, description, url, timestamp) SELECT topic_id, 105, title, description, url, timestamp FROM urls WHERE main=0 AND state=~get('state_ok') AND topic_id > 5" )
~include('../site/footer.tmpl')