36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
// ============================================================================
|
|
// Functions
|
|
// ============================================================================
|
|
|
|
// ============================================================================
|
|
// Main before POST
|
|
// ============================================================================
|
|
|
|
// ============================================================================
|
|
// POST Method
|
|
// ============================================================================
|
|
|
|
// ============================================================================
|
|
// Main after POST
|
|
// ============================================================================
|
|
|
|
$_newPosts = $dbPosts->regenerate();
|
|
$_newPages = $dbPages->regenerate();
|
|
|
|
$_draftPosts = array();
|
|
foreach($posts as $Post)
|
|
{
|
|
if($Post->draft()) {
|
|
array_push($_draftPosts, $Post);
|
|
}
|
|
}
|
|
|
|
$_draftPages = array();
|
|
foreach($pages as $Page)
|
|
{
|
|
if(!$Page->published()) {
|
|
array_push($_draftPages, $Page);
|
|
}
|
|
} |