~include('../site/admin.header.tmpl','Déplace le commentaire ~get_filenamevar(1)','forum') ~defunc('move_comments', ' ~list(~get('database'), "SELECT id FROM comments WHERE com_parent='~sparam(1)'", 'LM',~call('move_comments',~fld('id'),~sparam(2)) ) ~list(~get('database'), "UPDATE comments SET res_type='0',news_id='0', timestamp=timestamp,com_thread='~sparam(2)' WHERE id='~sparam(1)'" ) ') ~if( ~getpost('submit')=='',' ~includewithcache('../comments/comment.tmpl',~get_filenamevar(1))
',' ~list(~get('database'), "LOCK TABLES comments WRITE, comments_moved WRITE") ~list(~get('database'), "SELECT id,com_parent,com_thread,res_type,news_id FROM comments WHERE id='~addslashes(~getpost('comment_id'))'", 'LF',' ~list(~get('database'), "INSERT INTO comments_moved(comment_id,com_parent,com_thread,res_type,news_id,user_id) VALUE( '~fld('id')', '~fld('com_parent')', '~fld('com_thread')', '~fld('res_type')', '~fld('news_id')', '~get('user_id')' )" ) ~list(~get('database'), "UPDATE comments SET com_parent='0',timestamp=timestamp WHERE id='~addslashes(~getpost('comment_id'))'" ) ~if(~getpost('comment_id') > 0 , ~move_comments(~addslashes(~getpost('comment_id')),~addslashes(~getpost('comment_id')))) ') ~list(~get('database'), "UNLOCK TABLES") Commentaire supprimé.