mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update admin_terms.php
This commit is contained in:
parent
b5cf39bbc7
commit
227a9768a3
@ -12,7 +12,7 @@ require(INC_DIR .'bbcode.php');
|
|||||||
if (isset($_POST['post']) && $bb_cfg['terms'] != $_POST['message'])
|
if (isset($_POST['post']) && $bb_cfg['terms'] != $_POST['message'])
|
||||||
{
|
{
|
||||||
bb_update_config(array('terms' => $_POST['message']));
|
bb_update_config(array('terms' => $_POST['message']));
|
||||||
bb_die($lang['CONFIG_UPDATED']);
|
bb_die($lang['SAVED'] . '<br /><br /><a href="admin_terms.php">' . $lang['GO_BACK'] . '</a><br /><br />' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="index.php?pane=right">', '</a>'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
@ -22,4 +22,4 @@ $template->assign_vars(array(
|
|||||||
'PREVIEW_HTML' => (isset($_REQUEST['preview'])) ? bbcode2html($_POST['message']) : '',
|
'PREVIEW_HTML' => (isset($_REQUEST['preview'])) ? bbcode2html($_POST['message']) : '',
|
||||||
));
|
));
|
||||||
|
|
||||||
print_page('admin_terms.tpl', 'admin');
|
print_page('admin_terms.tpl', 'admin');
|
||||||
|
Loading…
Reference in New Issue
Block a user