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


~includeonce('../lib/ressources.tmpl') ~list( ~get('database'), "SELECT id, title, body, description, timestamp FROM pboxes WHERE pboxes.location='L' AND pboxes.state=1", 'LM',{ ~set('res_id', ~fld('id')), ~list( ~get('database'), "INSERT INTO links( insert_timestamp, update_timestamp, title, body, state, main) VALUES ( '~fld('timestamp')', CURRENT_TIMESTAMP(), '~addslashes(~fld('title'))', '~addslashes(~fld('description'))', 1, 1)" ), ~list( ~get('database'), "SELECT last_insert_id() AS last_id LIMIT 1", 'LM', ~set('last_id', ~fld('last_id')) ), ~merge_urls( ~get('res_type_pboxes'), ~get('res_id'), ~get('res_type_links'), ~get('last_id')), ~merge_moderated( ~get('res_type_pboxes'), ~get('res_id'), ~get('res_type_links'), ~get('last_id')), ~list( ~get('database'), "UPDATE pboxes SET state=0 WHERE id=~get('res_id') LIMIT 1" ), 'Migrated link ~get('res_id')
' } )
~include('../site/footer.tmpl')