Project

General

Profile

« Previous | Next » 

Revision 1457

Added by Dietmar over 13 years ago

Preparing 2.8.2 stable, last tests

View differences:

save.php
20 20
// Create new admin object
21 21
require('../../config.php');
22 22
require_once(WB_PATH.'/framework/class.admin.php');
23
$admin = new admin('Pages', 'pages_modify');
24 23

  
24
// suppress to print the header, so no new FTAN will be set
25
$admin = new admin('Pages', 'pages_modify', false);
26

  
25 27
// Get page & section id
26 28
if(!isset($_POST['page_id']) || !is_numeric($_POST['page_id'])) {
27 29
	header("Location: index.php");
......
38 40
}
39 41

  
40 42
// $js_back = "javascript: history.go(-1);";
41
$js_back = ADMIN_URL.'/pages/modify.php?page_id='.$page_id
43
$js_back = ADMIN_URL.'/pages/modify.php?page_id='.$page_id;
42 44

  
43 45
if (!$admin->checkFTAN())
44 46
{
47
	$admin->print_header();
45 48
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back );
46
	exit();
47 49
}
50
// After check print the header
51
$admin->print_header();
48 52

  
49 53
/*
50 54
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) )
51 55
{
52 56
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']);
53
	exit();
54 57
}
55 58

  
56 59
if( (!($section_id= $admin->checkIDKEY('section_id', 0, $_SERVER['REQUEST_METHOD']))) )
57 60
{
58 61
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS']);
59
	exit();
60 62
}
61 63
*/
62 64

  
63 65

  

Also available in: Unified diff