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
18 18

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

  
21
$admin_header = false;
22
// Tells script to update when this page was last updated
23
$update_when_modified = true;
21 24
// Include WB admin wrapper script
22
$update_when_modified = true; // Tells script to update when this page was last updated
23 25
require(WB_PATH.'/modules/admin.php');
24

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

  
31 33
// Update the mod_wrapper table with the contents
32 34
if(isset($_POST['url'])) {
......
36 38
		$height = 400;
37 39
	}
38 40
	$query = "UPDATE ".TABLE_PREFIX."mod_wrapper SET url = '$url', height = '$height' WHERE section_id = '$section_id'";
39
	$database->query($query);	
41
	$database->query($query);
40 42
}
41 43

  
42 44
// Check if there is a database error, otherwise say successful
43 45

  

Also available in: Unified diff