~dont_cache()
~includeonce('../config.tmpl')
~include('../updateuser.tmpl')
~if(~get('is_admin')==0,~http_error(404))
~set('title','Administration: Clean')
~include('../site/header.tmpl')
~includeonce('filter.tmpl')
Retourner à l'admin
~defunc('rev_filter',
~demicrosoftize(~cuthtml2(~trim(~unhtmlentities(~sparam(1))),,,,'image,rubrique,titre,article,site,a,b,i,s,u,em,strong,tt,cite,ol,ul,li,sup,sub'))
)
~list(~get('database'),
"SELECT id,body FROM news WHERE id <= 2658",
'LM','
~setl('body~fld('id')',
~preg_replace( '#(?:)?\s*\s*(?:)?\s*([^<]+)\s*(?:)?\s*\s*(?:)?#mui','\\1',~rev_filter(~fld('body')))
)
~if( ~fld('body') != ~getl('body~fld('id')') && !~empty(~getl('body~fld('id')')),'
~list(~get('database'),
"UPDATE news SET
timestamp=timestamp,
body ='~addslashes(~getl('body~fld('id')'))'
WHERE id='~fld('id')'")
mise à jour de la news ~fld('id') ~getl('body~fld('id')')
')
~if( ~empty(~getl('body~fld('id')')), 'Empty news ~fld('id')
')
'
)
~include('../site/footer.tmpl')