mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Перенос файлов движка в корень
This commit is contained in:
parent
584f692288
commit
f94c0dd2ee
585 changed files with 14 additions and 14 deletions
25
admin/admin_terms.php
Normal file
25
admin/admin_terms.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
if (!empty($setmodules))
|
||||
{
|
||||
$module['GENERAL']['TERMS'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require(INC_DIR .'bbcode.php');
|
||||
|
||||
if (isset($_POST['post']) && $bb_cfg['terms'] != $_POST['message'])
|
||||
{
|
||||
bb_update_config(array('terms' => $_POST['message']));
|
||||
bb_die($lang['CONFIG_UPDATED']);
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_ACTION' => 'admin_terms.php',
|
||||
'EXT_LINK_NW' => $bb_cfg['ext_link_new_win'],
|
||||
'MESSAGE' => ($bb_cfg['terms']) ? $bb_cfg['terms'] : '',
|
||||
'PREVIEW_HTML' => (isset($_REQUEST['preview'])) ? bbcode2html($_POST['message']) : '',
|
||||
));
|
||||
|
||||
print_page('admin_terms.tpl', 'admin');
|
Loading…
Add table
Add a link
Reference in a new issue