diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php index 7ffc01ec..c1a9864e 100644 --- a/bl-kernel/boot/init.php +++ b/bl-kernel/boot/init.php @@ -91,7 +91,7 @@ define('NO_PARENT_CHAR', '3849abb4cb7abd24c2d8dac17b216f17'); define('POSTS_PER_PAGE_ADMIN', 10); // Cli mode status for new posts/pages -define('CLI_MODE', TRUE); +define('CLI_MODE', FALSE); // Cli mode status for new posts/pages define('CLI_STATUS', 'published'); @@ -100,7 +100,7 @@ define('CLI_STATUS', 'published'); define('CLI_USERNAME', 'admin'); // Filename for posts and pages -define('FILENAME', 'index.txt'); +define('FILENAME', 'index.md'); // Database date format define('DB_DATE_FORMAT', 'Y-m-d H:i:s'); @@ -123,17 +123,11 @@ define('EXTREME_FRIENDLY_URL', false); // Directory permissions define('DIR_PERMISSIONS', 0755); -// Multibyte string extension loaded. -define('MB_STRING', extension_loaded('mbstring')); +// Set internal character encoding. +mb_internal_encoding(CHARSET); -if(MB_STRING) -{ - // Set internal character encoding. - mb_internal_encoding(CHARSET); - - // Set HTTP output character encoding. - mb_http_output(CHARSET); -} +// Set HTTP output character encoding. +mb_http_output(CHARSET); // Inclde Abstract Classes include(PATH_ABSTRACT.'dbjson.class.php'); diff --git a/bl-kernel/dbpages.class.php b/bl-kernel/dbpages.class.php index cb6ca23e..76afc3b4 100644 --- a/bl-kernel/dbpages.class.php +++ b/bl-kernel/dbpages.class.php @@ -84,7 +84,7 @@ class dbPages extends dbJSON // Make the index.txt and save the file. $data = implode("\n", $dataForFile); - if( file_put_contents(PATH_PAGES.$key.FILENAME, $data) === false ) { + if( file_put_contents(PATH_PAGES.$key.DS.FILENAME, $data) === false ) { Log::set(__METHOD__.LOG_SEP.'Error occurred when trying to put the content in the file index.txt'); return false; } diff --git a/bl-plugins/pages/plugin.php b/bl-plugins/pages/plugin.php index 50f84e7f..886b6905 100644 --- a/bl-plugins/pages/plugin.php +++ b/bl-plugins/pages/plugin.php @@ -43,7 +43,7 @@ class pluginPages extends Plugin { } $html .= '
'; - $html .= '