Revision 1425
Added by Dietmar almost 14 years ago
save.php | ||
---|---|---|
22 | 22 |
require_once(WB_PATH.'/framework/class.admin.php'); |
23 | 23 |
$admin = new admin('Pages', 'pages_modify'); |
24 | 24 |
|
25 |
if (!$admin->checkFTAN()) |
|
26 |
{ |
|
27 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],'index.php'); |
|
28 |
exit(); |
|
29 |
} |
|
30 |
|
|
31 | 25 |
// Get page & section id |
32 | 26 |
if(!isset($_POST['page_id']) || !is_numeric($_POST['page_id'])) { |
33 | 27 |
header("Location: index.php"); |
... | ... | |
43 | 37 |
$section_id = intval($_POST['section_id']); |
44 | 38 |
} |
45 | 39 |
|
40 |
// $js_back = "javascript: history.go(-1);"; |
|
41 |
$js_back = ADMIN_URL.'/pages/modify.php?page_id='.$page_id |
|
42 |
|
|
43 |
if (!$admin->checkFTAN()) |
|
44 |
{ |
|
45 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back ); |
|
46 |
exit(); |
|
47 |
} |
|
48 |
|
|
46 | 49 |
/* |
47 | 50 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) ) |
48 | 51 |
{ |
... | ... | |
57 | 60 |
} |
58 | 61 |
*/ |
59 | 62 |
|
60 |
$js_back = "javascript: history.go(-1);"; |
|
61 |
|
|
62 | 63 |
// Get perms |
63 | 64 |
$sql = 'SELECT `admin_groups`,`admin_users` FROM `'.TABLE_PREFIX.'pages` '; |
64 | 65 |
$sql .= 'WHERE `page_id` = '.$page_id; |
... | ... | |
111 | 112 |
// Check if there is a db error, otherwise say successful |
112 | 113 |
if($database->is_error()) |
113 | 114 |
{ |
114 |
$admin->print_error($database->get_error(), $js_back);
|
|
115 |
$admin->print_error($database->get_error(), ADMIN_URL.'/pages/modify.php?page_id='.$results_array['page_id'] );
|
|
115 | 116 |
} else { |
116 | 117 |
$admin->print_success($MESSAGE['PAGES']['SAVED'], ADMIN_URL.'/pages/modify.php?page_id='.$results_array['page_id'] ); |
117 | 118 |
} |
Also available in: Unified diff
redefined wrong admin backlinks