~dont_cache()
~includeonce('../config.tmpl')
~include('../board/config.tmpl',~get('board_section[admin]'))
~set('title','Administration du W-Fenec')
~include('../site/admin.header.tmpl','Visite l~apos()Admin')
~include('filter.tmpl')
~list(~get('database'),
"SELECT count(*) as count FROM folios",
'LM',
~set('num',~fld('count'))
)
~setl('res_per_page', 5)
~include('../site/next_page.tmpl',~get_filenamevar(1),~get('num'), ~getl('res_per_page'),'maj_mag')
~list(~get('database'),
"SELECT title FROM folios
LIMIT ~getl('res_per_page') OFFSET ~get('indice')
",
'LM', {
~list(~get('database'),
"UPDATE articles SET
body = REPLACE(body, '~addslashes(~fld('title'))', '~addslashes(~fld('title'))'),
chapo = REPLACE(chapo, '~addslashes(~fld('title'))', '~addslashes(~fld('title'))'),
intro = REPLACE(intro, '~addslashes(~fld('title'))', '~addslashes(~fld('title'))'),
outro = REPLACE(outro, '~addslashes(~fld('title'))', '~addslashes(~fld('title'))'),
update_timestamp=update_timestamp
WHERE articles.body like '%~addslashes(~fld('title'))%'
OR articles.intro like '%~addslashes(~fld('title'))%'
OR articles.outro like '%~addslashes(~fld('title'))%'
OR articles.chapo like '%~addslashes(~fld('title'))%'
"
)
},
'LL', '
~gfld('counter') done.'
)
~include("../site/admin.footer.tmpl")