Revision 1425
Added by Luisehahne almost 15 years ago
| settings2.php | ||
|---|---|---|
| 22 | 22 |
require_once(WB_PATH.'/framework/class.admin.php'); |
| 23 | 23 |
$admin = new admin('Pages', 'pages_settings');
|
| 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 id |
| 32 | 26 |
if(!isset($_POST['page_id']) || !is_numeric($_POST['page_id'])) |
| 33 | 27 |
{
|
| ... | ... | |
| 36 | 30 |
} else {
|
| 37 | 31 |
$page_id = $_POST['page_id']; |
| 38 | 32 |
} |
| 33 |
$pagetree_url = ADMIN_URL.'/pages/index.php'; |
|
| 34 |
$target_url = ADMIN_URL.'/pages/settings.php?page_id='.$page_id; |
|
| 39 | 35 |
|
| 36 |
if (!$admin->checkFTAN()) |
|
| 37 |
{
|
|
| 38 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$target_url); |
|
| 39 |
exit(); |
|
| 40 |
} |
|
| 41 |
|
|
| 40 | 42 |
/* |
| 41 | 43 |
if( (!($page_id = $admin->checkIDKEY('page_id', 0, $_SERVER['REQUEST_METHOD']))) )
|
| 42 | 44 |
{
|
| ... | ... | |
| 310 | 312 |
|
| 311 | 313 |
/* END page "access file" code */ |
| 312 | 314 |
|
| 313 |
$pagetree_url = ADMIN_URL.'/pages/index.php'; |
|
| 314 |
$target_url = ADMIN_URL.'/pages/settings.php?page_id='.$page_id; |
|
| 315 |
//$pagetree_url = ADMIN_URL.'/pages/index.php';
|
|
| 316 |
//$target_url = ADMIN_URL.'/pages/settings.php?page_id='.$page_id;
|
|
| 315 | 317 |
// Check if there is a db error, otherwise say successful |
| 316 | 318 |
if($database->is_error()) |
| 317 | 319 |
{
|
Also available in: Unified diff
redefined wrong admin backlinks