Revision 1457
Added by Luisehahne over 14 years ago
| add.php | ||
|---|---|---|
| 11 | 11 |
* @platform WebsiteBaker 2.8.x |
| 12 | 12 |
* @requirements PHP 5.2.2 and higher |
| 13 | 13 |
* @version $Id$ |
| 14 |
* @filesource $HeadURL: $
|
|
| 15 |
* @lastmodified $Date: $
|
|
| 14 |
* @filesource $HeadURL$ |
|
| 15 |
* @lastmodified $Date$ |
|
| 16 | 16 |
* |
| 17 | 17 |
*/ |
| 18 | 18 |
|
| 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', 'groups_add');
|
|
| 23 | 22 |
|
| 23 |
// suppress to print the header, so no new FTAN will be set |
|
| 24 |
$admin = new admin('Access', 'groups_add', false);
|
|
| 24 | 25 |
// Create a javascript back link |
| 25 | 26 |
$js_back = ADMIN_URL.'/groups/index.php'; |
| 26 | 27 |
|
| 27 | 28 |
if (!$admin->checkFTAN()) |
| 28 | 29 |
{
|
| 30 |
$admin->print_header(); |
|
| 29 | 31 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back); |
| 30 |
exit(); |
|
| 31 | 32 |
} |
| 33 |
// After check print the header |
|
| 34 |
$admin->print_header(); |
|
| 32 | 35 |
|
| 33 | 36 |
// Gather details entered |
| 34 | 37 |
$group_name = mysql_real_escape_string(strip_tags(trim($admin->get_post('group_name'))));
|
| 35 | 38 | |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests