2015-11-27 17:03:42 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Check role
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Functions
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Main before POST
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// POST Method
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Main after POST
|
2015-11-28 15:47:03 +01:00
|
|
|
// ============================================================================
|
2017-09-09 00:33:14 +02:00
|
|
|
|
2017-09-10 23:09:44 +02:00
|
|
|
// List of published pages
|
|
|
|
$onlyPublished = true;
|
|
|
|
$amountOfItems = ITEMS_PER_PAGE_ADMIN;
|
|
|
|
$pageNumber = $Url->pageNumber();
|
|
|
|
$published = $dbPages->getList($pageNumber, $amountOfItems, $onlyPublished);
|
|
|
|
|
|
|
|
// Check if out of range the pageNumber
|
|
|
|
if (empty($published)) {
|
|
|
|
Redirect::page('pages');
|
|
|
|
}
|
|
|
|
|
|
|
|
// List of drafts pages
|
|
|
|
$drafts = $dbPages->getDraftDB();
|
|
|
|
|
|
|
|
$scheduled = $dbPages->getScheduledDB();
|
|
|
|
|
2017-09-20 23:00:03 +02:00
|
|
|
$static = $dbPages->getStaticDB();
|
2017-09-10 23:09:44 +02:00
|
|
|
|
2017-09-09 00:33:14 +02:00
|
|
|
// Title of the page
|
2017-09-21 20:42:03 +02:00
|
|
|
$layout['title'] .= ' - '.$Language->g('Manage Pages');
|