Project

General

Profile

« Previous | Next » 

Revision 1545

Added by Dietmar almost 13 years ago

update admin/pages/modify.php now you can send page_id with GET and POST

View differences:

branches/2.8.x/CHANGELOG
12 12

  
13 13
=========================== add small Features 2.8.2 ==========================
14 14
15 Dez-2011 Build 1544 Dietmar Woellbrink (Luisehahne)
15
! update admin/pages/modify.php now you can send page_id with GET and POST
16
15 Dez-2011 Build 1544 Dietmar Woellbrink (Luisehahne)
15 17
# fix droplet import after new wb installtion
16 18
14 Dez-2011 Build 1543 Dietmar Woellbrink (Luisehahne)
17 19
# fix droplet sectionPicker
branches/2.8.x/wb/admin/pages/modify.php
22 22
require_once(WB_PATH.'/framework/class.admin.php');
23 23

  
24 24
$admin = new admin('Pages', 'pages_modify');
25

  
25
/*
26 26
// Get page id
27 27
if(!isset($_GET['page_id']) || !is_numeric($_GET['page_id'])) {
28 28
	header("Location: index.php");
......
30 30
} else {
31 31
	$page_id = (int)$_GET['page_id'];
32 32
}
33
*/
34
// Get page id
35
	$requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']);
36
	$page_id = intval(isset(${$requestMethod}['page_id'])) ? ${$requestMethod}['page_id'] : 0;
37
	if(	($page_id == 0)) {
38
		header("Location: index.php");
39
		exit(0);
40
	}
33 41

  
34 42
/*
35 43
if( (!($page_id = $admin->checkIDKEY('page_id', $page_id, $_SERVER['REQUEST_METHOD']))) )
branches/2.8.x/wb/admin/interface/version.php
52 52

  
53 53
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
54 54
if(!defined('VERSION')) define('VERSION', '2.8.2');
55
if(!defined('REVISION')) define('REVISION', '1544');
55
if(!defined('REVISION')) define('REVISION', '1545');
56 56
if(!defined('SP')) define('SP', 'SP2');

Also available in: Unified diff