Project

General

Profile

« Previous | Next » 

Revision 1457

Added by Dietmar almost 13 years ago

Preparing 2.8.2 stable, last tests

View differences:

save.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_modify');
23

  
22
// suppress to print the header, so no new FTAN will be set
23
$admin = new admin('Access', 'groups_modify', false);
24 24
// Create a javascript back link
25 25
$js_back = ADMIN_URL.'/groups/index.php';
26 26

  
27 27
if (!$admin->checkFTAN())
28 28
{
29 29
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back);
30
	exit();
31 30
}
31
// After check print the header
32
$admin->print_header();
32 33

  
33 34
// Check if group group_id is a valid number and doesnt equal 1
34 35
if(!isset($_POST['group_id']) OR !is_numeric($_POST['group_id']) OR $_POST['group_id'] == 1) {
35 36

  

Also available in: Unified diff