Revision 1457
Added by Dietmar over 13 years ago
add.php | ||
---|---|---|
19 | 19 |
// Print admin header |
20 | 20 |
require('../../config.php'); |
21 | 21 |
require_once(WB_PATH.'/framework/class.admin.php'); |
22 |
$admin = new admin('Access', 'users_add'); |
|
22 |
// suppress to print the header, so no new FTAN will be set |
|
23 |
$admin = new admin('Access', 'users_add', false); |
|
23 | 24 |
|
24 | 25 |
// Create a javascript back link |
25 | 26 |
$js_back = ADMIN_URL.'/users/index.php'; |
26 | 27 |
|
27 |
// Create new database object |
|
28 |
//$database = new database(); |
|
29 | 28 |
if( !$admin->checkFTAN() ) |
30 | 29 |
{ |
31 | 30 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], $js_back); |
32 |
exit(); |
|
33 | 31 |
} |
32 |
// After check print the header |
|
33 |
$admin->print_header(); |
|
34 | 34 |
|
35 | 35 |
// Get details entered |
36 | 36 |
$groups_id = (isset($_POST['groups'])) ? implode(",", $admin->add_slashes($_POST['groups'])) : ''; //should check permissions |
... | ... | |
108 | 108 |
// Print admin footer |
109 | 109 |
$admin->print_footer(); |
110 | 110 |
|
111 |
?> |
|
111 |
|
Also available in: Unified diff
Preparing 2.8.2 stable, last tests