~include('../site/admin.header.tmpl','Gestion Passerelle ~get_filenamevar(1) ~get_filenamevar(2)') ~list(~get('database'), "SELECT topic_id,topic_next FROM topics_topics WHERE topic_id='~addslashes(~getpost('topic1'))' AND topic_next='~addslashes(~getpost('topic2'))'", 'LF','~set('id1',~fld('topic_id'))~set('id2',~fld('topic_next'))' ) ~if(~get('id1')!='', 'Modification du lien entre les rubriques ~get('id1') et ~get('id2')','Ajout d\'un lien entre la rubrique ~getpost('topic1') et ~getpost('topic2')') ~set('stop',0) ~if(~getpost('topic1')==~getpost('topic2'),'~set('stop',1)Rubriques identiques !') ~if(~empty(~getpost('title')),'~set('stop',1)Titre inexistant !') ~if(~get('stop')==0, ~if( ~get('id1')==''||~get('id2')=='', ~list(~get('database'), "INSERT INTO topics_topics(topic_id,topic_next,title,state) VALUES( '~addslashes(~getpost('topic1'))', '~addslashes(~getpost('topic2'))', '~addslashes(~strip_tags(~getpost('title')))', '~if(~getpost('state')=='on','1','0')' )"), ~list(~get('database'), "UPDATE topics_topics SET title='~addslashes(~strip_tags(~getpost('title')))', state='~if(~getpost('state')!='','1','0')' WHERE topic_id='~get('id1')' AND topic_next='~get('id2')'" ) ) ) ~delete_files("~getconf('pagecachedir')~include('../site/topic_addr.tmpl',~get('id1')).*\.html") ~include("../site/admin.footer.tmpl")