Revision 1825
Added by Luisehahne about 13 years ago
| sections.php | ||
|---|---|---|
| 16 | 16 |
*/ |
| 17 | 17 |
|
| 18 | 18 |
// Include config file |
| 19 |
require('../../config.php');
|
|
| 19 |
if(!defined('WB_URL'))
|
|
| 20 |
{
|
|
| 21 |
$config_file = realpath('../../config.php');
|
|
| 22 |
if(file_exists($config_file) && !defined('WB_URL'))
|
|
| 23 |
{
|
|
| 24 |
require($config_file); |
|
| 25 |
} |
|
| 26 |
} |
|
| 20 | 27 |
|
| 21 | 28 |
// Make sure people are allowed to access this page |
| 22 | 29 |
if(MANAGE_SECTIONS != 'enabled') |
| ... | ... | |
| 27 | 34 |
/* */ |
| 28 | 35 |
$debug = false; // to show position and section_id |
| 29 | 36 |
If(!defined('DEBUG')) { define('DEBUG',$debug);}
|
| 30 |
// Include the WB functions file |
|
| 31 |
require_once(WB_PATH.'/framework/functions.php'); |
|
| 32 | 37 |
// Create new admin object |
| 33 |
require_once(WB_PATH.'/framework/class.admin.php');
|
|
| 38 |
if(!class_exists('admin', false)){ include(WB_PATH.'/framework/class.admin.php'); }
|
|
| 34 | 39 |
$admin = new admin('Pages', 'pages_view', false);
|
| 35 | 40 |
|
| 41 |
// Include the WB functions file |
|
| 42 |
if(!function_exists('directory_list')) { require(WB_PATH.'/framework/functions.php'); }
|
|
| 43 |
|
|
| 36 | 44 |
$action = 'show'; |
| 37 | 45 |
// Get page id |
| 38 | 46 |
$requestMethod = '_'.strtoupper($_SERVER['REQUEST_METHOD']); |
| ... | ... | |
| 384 | 392 |
'LINK_MODIFY_URL_VAR_MODUL_NAME' => $edit_page, |
| 385 | 393 |
'NAME' => htmlentities(strip_tags($block[1])), |
| 386 | 394 |
'VALUE' => 1, |
| 387 |
'SET_NONE_DISPLAY_OPTION' => '' |
|
| 395 |
'SET_NONE_DISPLAY_OPTION' => '<option> </option>'
|
|
| 388 | 396 |
) |
| 389 | 397 |
); |
| 390 | 398 |
} |
Also available in: Unified diff
! update page settings, add save & back Button, add extended hide/show
redesign the page settings for a better overview