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
10 10
 * @license         http://www.gnu.org/licenses/gpl.html
11 11
 * @platform        WebsiteBaker 2.8.x
12 12
 * @requirements    PHP 5.2.2 and higher
13
 * @version         $Id$
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
13
 * @version         $Id: save.php 1425 2011-02-03 23:16:12Z Luisehahne $
14
 * @filesource		$HeadURL: http://svn.websitebaker2.org/branches/2.8.x/wb/modules/code/save.php $
15
 * @lastmodified    $Date: 2011-02-04 00:16:12 +0100 (Fr, 04. Feb 2011) $
16 16
 *
17 17
 */
18 18

  
19 19
require('../../config.php');
20 20

  
21
// suppress to print the header, so no new FTAN will be set
22
$admin_header = false;
23
// Tells script to update when this page was last updated
24
$update_when_modified = true;
21 25
// Include WB admin wrapper script
22
$update_when_modified = true; // Tells script to update when this page was last updated
23 26
require(WB_PATH.'/modules/admin.php');
24 27

  
25 28
if (!$admin->checkFTAN())
26 29
{
30
	$admin->print_header();
27 31
	$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'], ADMIN_URL.'/pages/modify.php?page_id='.$page_id);
28
	exit();
29 32
}
33
$admin->print_header();
30 34

  
31 35
// Update the mod_wysiwygs table with the contents
32 36
if(isset($_POST['content'])) {
33 37

  

Also available in: Unified diff