diff --git a/README.md b/README.md index 5e95096b..8b1d8263 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Social - [Twitter](https://twitter.com/bludit) - [Facebook](https://www.facebook.com/bluditcms) - [Google+](https://plus.google.com/+Bluditcms) +- [Freenode IRC](https://webchat.freenode.net) channel #bludit [![Join the chat at https://gitter.im/dignajar/bludit](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dignajar/bludit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) @@ -30,6 +31,7 @@ You only need a web server with PHP support. * Apache with [mod_rewrite](http://httpd.apache.org/docs/current/mod/mod_rewrite.html) module. * Lighttpd with [mod_rewrite](http://redmine.lighttpd.net/projects/1/wiki/docs_modrewrite) module. * Nginx with [ngx_http_rewrite_module](http://nginx.org/en/docs/http/ngx_http_rewrite_module.html) module. + * PHP Built-in web server Installation guide ------------------ diff --git a/kernel/abstract/dbjson.class.php b/kernel/abstract/dbjson.class.php index ccd3fa80..1c96feb1 100644 --- a/kernel/abstract/dbjson.class.php +++ b/kernel/abstract/dbjson.class.php @@ -46,7 +46,7 @@ class dbJSON } } - public function restoreDb() + public function restoreDB() { $this->db = $this->dbBackup; return true; diff --git a/kernel/admin/controllers/dashboard.php b/kernel/admin/controllers/dashboard.php index 44abfa52..f3f8216a 100644 --- a/kernel/admin/controllers/dashboard.php +++ b/kernel/admin/controllers/dashboard.php @@ -3,6 +3,28 @@ // ============================================================================ // Functions // ============================================================================ +function updateBludit() +{ + global $Site; + + // Check if Bludit need to be update. + if($Site->currentBuild() < BLUDIT_BUILD) + { + $directories = array(PATH_POSTS, PATH_PAGES, PATH_PLUGINS_DATABASES, PATH_UPLOADS_PROFILES); + + foreach($directories as $dir) + { + // Check if the directory is already created. + if(!file_exists($dir)) { + // Create the directory recursive. + mkdir($dir, DIR_PERMISSIONS, true); + } + } + + // Set and save the database. + $Site->set(array('currentBuild'=>BLUDIT_BUILD)); + } +} // ============================================================================ // Main before POST @@ -16,6 +38,10 @@ // Main after POST // ============================================================================ +// Try update Bludit +updateBludit(); + +// Get draft posts and schedules $_draftPosts = array(); $_scheduledPosts = array(); foreach($posts as $Post) @@ -28,6 +54,7 @@ foreach($posts as $Post) } } +// Get draft pages $_draftPages = array(); foreach($pages as $Page) { diff --git a/kernel/admin/themes/default/img/default.jpg b/kernel/admin/themes/default/img/default.jpg index b8f1f672..2854b892 100644 Binary files a/kernel/admin/themes/default/img/default.jpg and b/kernel/admin/themes/default/img/default.jpg differ diff --git a/kernel/admin/themes/default/index.php b/kernel/admin/themes/default/index.php index 3f8d6b77..c5f03ba4 100644 --- a/kernel/admin/themes/default/index.php +++ b/kernel/admin/themes/default/index.php @@ -99,9 +99,9 @@ $(document).ready(function() {