bludit/admin/controllers/dashboard.php

39 lines
1.1 KiB
PHP
Raw Normal View History

2015-06-26 06:31:53 +02:00
<?php defined('BLUDIT') or die('Bludit CMS.');
2015-03-27 02:00:01 +01:00
2015-06-26 06:31:53 +02:00
// ============================================================================
// Functions
// ============================================================================
2015-03-27 02:00:01 +01:00
2015-08-03 02:49:12 +02:00
// ============================================================================
// Main before POST
// ============================================================================
2015-06-26 06:31:53 +02:00
// ============================================================================
// POST Method
// ============================================================================
// ============================================================================
2015-08-03 02:49:12 +02:00
// Main after POST
2015-06-26 06:31:53 +02:00
// ============================================================================
2015-08-31 03:18:06 +02:00
//$_newPosts = $dbPosts->regenerateCli();
2015-09-09 04:59:36 +02:00
$_newPages = $dbPages->regenerateCli();
2015-08-31 03:18:06 +02:00
$_newPages = $_newPosts = array();
2015-07-27 02:29:47 +02:00
$_draftPosts = array();
foreach($posts as $Post)
{
2015-08-26 05:49:15 +02:00
if($Post->draft()) {
2015-07-27 02:29:47 +02:00
array_push($_draftPosts, $Post);
}
}
$_draftPages = array();
foreach($pages as $Page)
{
if(!$Page->published()) {
array_push($_draftPages, $Page);
}
2015-08-29 07:02:09 +02:00
}