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:

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']))) )

Also available in: Unified diff