Revision 1849
Added by Dietmar almost 12 years ago
settings_save.php | ||
---|---|---|
66 | 66 |
// After check print the header |
67 | 67 |
$admin->print_header(); |
68 | 68 |
|
69 |
if(isset($_POST['extended_submit'])) { |
|
70 |
$sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` WHERE `name` = \'page_exented\''; |
|
71 |
if( ($page_exented = $database->get_one($sql)) != '' ) { |
|
72 |
$sql = 'UPDATE '; |
|
73 |
$sql_where = 'WHERE `name` = \'page_exented\''; |
|
74 |
} else { |
|
75 |
$sql = 'INSERT INTO '; |
|
76 |
$sql_where = ''; |
|
77 |
} |
|
78 |
$val = (((($page_exented=='1') ? $page_exented : 0)) + 1) % 2; |
|
79 |
|
|
80 |
$sql .= '`'.TABLE_PREFIX.'settings` '; |
|
81 |
$sql .= 'SET `name` = \'page_exented\', '; |
|
82 |
$sql .= '`value` = \''.$val.'\' '.$sql_where; |
|
83 |
|
|
69 |
if(isset($_POST['extendet_submit'])) { |
|
70 |
// $val = (((($page_exented=='1') ? $page_exented : 0)) + 1) % 2; |
|
71 |
$val = (defined('PAGE_EXTENDET') ? filter_var(PAGE_EXTENDET, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) : false); |
|
72 |
$sql = (defined('PAGE_EXTENDET') ? 'UPDATE `' : 'INSERT INTO `') . TABLE_PREFIX . 'settings` SET '; |
|
73 |
$sql .= '`name`=\'page_extendet\', '; |
|
74 |
$sql .= '`value`=\''.($val ? 'false' : 'true').'\' '; |
|
75 |
$sql .= (defined('PAGE_EXTENDET') ? 'WHERE `name`=\'page_extendet\'' : ''); |
|
84 | 76 |
if($database->query($sql)) { |
85 | 77 |
// redirect to backend |
86 | 78 |
echo "<p style=\"text-align:center;\"> If the script</strong> could not be start automatically.\n" . |
Also available in: Unified diff
! Fill empty option modules dropdown in admin/pages/sections.php