Revision 1457
Added by Dietmar almost 13 years ago
sections_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: http://svn.websitebaker2.org/branches/2.8.x/wb/admin/pages/sections.php $
|
|
15 |
* @lastmodified $Date: 2011-01-10 13:14:10 +0100 (Mo, 10. Jan 2011) $
|
|
14 |
* @filesource $HeadURL$ |
|
15 |
* @lastmodified $Date$ |
|
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
... | ... | |
29 | 29 |
/**/ |
30 | 30 |
// Create new admin object |
31 | 31 |
require_once(WB_PATH.'/framework/class.admin.php'); |
32 |
$admin = new admin('Pages', 'pages_modify'); |
|
32 |
// suppress to print the header, so no new FTAN will be set |
|
33 |
$admin = new admin('Pages', 'pages_modify',false); |
|
33 | 34 |
|
34 | 35 |
if (!$admin->checkFTAN()) |
35 | 36 |
{ |
37 |
$admin->print_header(); |
|
36 | 38 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],ADMIN_URL.'/pages/sections.php?page_id='.$page_id); |
37 |
exit(); |
|
38 | 39 |
} |
40 |
// After check print the header |
|
41 |
$admin->print_header(); |
|
39 | 42 |
|
40 | 43 |
// Get page id |
41 | 44 |
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id'])) { |
42 | 45 |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests