Revision 1457
Added by Luisehahne over 14 years ago
| save.php | ||
|---|---|---|
| 21 | 21 |
// Print admin header |
| 22 | 22 |
require('../../config.php');
|
| 23 | 23 |
require_once(WB_PATH.'/framework/class.admin.php'); |
| 24 |
$admin = new admin('Preferences');
|
|
| 24 |
|
|
| 25 |
// suppress to print the header, so no new FTAN will be set |
|
| 26 |
$admin = new admin('Preferences','start', false);
|
|
| 25 | 27 |
// $js_back = "javascript: history.go(-1);"; // Create a javascript back link |
| 26 | 28 |
|
| 27 | 29 |
function save_preferences( &$admin, &$database) |
| ... | ... | |
| 31 | 33 |
$min_pass_length = 6; |
| 32 | 34 |
// first check form-tan |
| 33 | 35 |
if(!$admin->checkFTAN()){ $err_msg[] = $MESSAGE['GENERIC_SECURITY_ACCESS']; }
|
| 36 |
// After check print the header |
|
| 37 |
$admin->print_header(); |
|
| 34 | 38 |
// Get entered values and validate all |
| 35 | 39 |
// remove any dangerouse chars from display_name |
| 36 | 40 |
$display_name = $admin->add_slashes(strip_tags(trim($admin->get_post('display_name'))));
|
Also available in: Unified diff
Preparing 2.8.2 stable, last tests