Revision 1457
Added by Luisehahne over 14 years ago
| save.php | ||
|---|---|---|
| 26 | 26 |
require('../../config.php');
|
| 27 | 27 |
require_once(WB_PATH.'/framework/class.admin.php'); |
| 28 | 28 |
|
| 29 |
// suppress to print the header, so no new FTAN will be set |
|
| 29 | 30 |
if($advanced == '') |
| 30 | 31 |
{
|
| 31 |
$admin = new admin('Settings', 'settings_basic');
|
|
| 32 |
$admin = new admin('Settings', 'settings_basic',false);
|
|
| 32 | 33 |
} else {
|
| 33 |
$admin = new admin('Settings', 'settings_advanced');
|
|
| 34 |
$admin = new admin('Settings', 'settings_advanced',false);
|
|
| 34 | 35 |
} |
| 35 | 36 |
|
| 36 | 37 |
// Create a javascript back link |
| 37 | 38 |
$js_back = ADMIN_URL.'/settings/index.php'.$advanced; |
| 38 |
|
|
| 39 | 39 |
if( !$admin->checkFTAN() ) |
| 40 | 40 |
{
|
| 41 |
$admin->print_header(); |
|
| 41 | 42 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back ); |
| 42 |
exit(); |
|
| 43 | 43 |
} |
| 44 |
// After check print the header |
|
| 45 |
$admin->print_header(); |
|
| 44 | 46 |
|
| 45 | 47 |
// Ensure that the specified default email is formally valid |
| 46 | 48 |
if(isset($_POST['server_email'])) |
| 47 | 49 | |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests