diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt index cda76402..4e9430b1 100644 --- a/COPYRIGHT.txt +++ b/COPYRIGHT.txt @@ -33,8 +33,6 @@ license, including: Pagedown modifications and bugfixes - (c) 2009 Dana Robinson Pagedown modifications and bugfixes - (c) 2009-2013 Stack Exchange Inc. - - Lightbox2 - (c) Lokesh Dhakar jQuery - (c) The jQuery Foundation diff --git a/cache/installedVersion.json b/cache/installedVersion.json index a6aa6667..eea4d1f2 100644 --- a/cache/installedVersion.json +++ b/cache/installedVersion.json @@ -1,4 +1,4 @@ { "id": 782014, - "tag_name": "v2.5.9" + "tag_name": "v2.6.0" } diff --git a/config/config.ini.example b/config/config.ini.example index acfa01c4..fadb0ac0 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -13,7 +13,7 @@ blog.copyright = "(c) Your name." ; Set permalink type. "default" using /year/month/title. "post" using /post/title permalink.type = "default" -; Show the /blog url as the blog homepage +; Show the /blog url as the blog homepage. Options "false" and "true" blog.enable = "false" ; Social account @@ -51,7 +51,7 @@ google.publisher = "" google.analytics.id = "" ; Google reCaptcha -; https://www.google.com/recaptcha/admin +; https://www.google.com/recaptcha/admin. Options "false" and "true" google.reCaptcha = false google.reCaptcha.public = "" @@ -102,9 +102,15 @@ views.counter = "true" ; Also install pre-release prerelease = false -; Switch on and off the file cache for development purposes. +; Switch on and off the file cache for development purposes. Options "false" and "true" cache.off = false +; Switch on and off the page generation time. Options "false" and "true" +generation.time = false + +; Switch on and off the cache timestamp. Options "false" and "true" +cache.timestamp = false + ; Set the theme here views.root = "themes/blog" diff --git a/system/admin/views/config.html.php b/system/admin/views/config.html.php index 28cbfa5d..54d1a892 100644 --- a/system/admin/views/config.html.php +++ b/system/admin/views/config.html.php @@ -12,9 +12,9 @@ "hallo", - ]; + ); if (file_exists($config_file)) { $array = parse_ini_file($config_file, true); } diff --git a/system/admin/views/update.html.php b/system/admin/views/update.html.php index d084c224..13efc5d7 100644 --- a/system/admin/views/update.html.php +++ b/system/admin/views/update.html.php @@ -12,18 +12,22 @@ if ($updater->able()) { $info = $updater->getNewestInfo(); echo '

Update Available

'; - echo '

'. $info['name'] .'

'; - echo '

Version: '. $info['tag_name'] .'

'; + echo '

Release Title: '. $info['name'] .'

'; + echo '

Version: '. $info['tag_name'] .'

'; echo '

Release Notes

'; - echo '
'. $info['body'] .'
'; + echo '
'; + echo \Michelf\MarkdownExtra::defaultTransform($info['body']); + echo '
'; echo '

Important: Please always backup your files before upgrading to newer version.

'; echo '

Update to ' . $info['tag_name'] . ' now

'; } else { echo '

Congrats! You have the latest version of HTMLy

'; $info = $updater->getCurrentInfo(); - echo '

Release Title: '. $info['name'] .'

'; - echo '

Installed Version: '. $info['tag_name'] .'

'; - echo '

Release Notes:

'; - echo '
'. $info['body'] .'
'; + echo '

Release Title: '. $info['name'] .'

'; + echo '

Installed Version: '. $info['tag_name'] .'

'; + echo '

Release Notes:

'; + echo '
'; + echo \Michelf\MarkdownExtra::defaultTransform($info['body']); + echo '
'; echo '

Read on Github.

'; } \ No newline at end of file diff --git a/system/includes/dispatch.php b/system/includes/dispatch.php index f1e2ee99..075374aa 100644 --- a/system/includes/dispatch.php +++ b/system/includes/dispatch.php @@ -327,35 +327,37 @@ function render($view, $locals = null, $layout = null) content(trim(ob_get_clean())); if ($layout !== false) { - if ($layout == null) { $layout = config('views.layout'); $layout = ($layout == null) ? 'layout' : $layout; } - $layout = "{$view_root}/{$layout}.html.php"; - header('Content-type: text/html; charset=utf-8'); - - ob_start(); - $time = microtime(); - $time = explode(' ', $time); - $time = $time[1] + $time[0]; - $start = $time; - require $layout; - $time = microtime(); - $time = explode(' ', $time); - $time = $time[1] + $time[0]; - $finish = $time; - $total_time = round(($finish - $start), 4); - echo "\n" . ''; + if (config('generation.time') == 'true') { + ob_start(); + $time = microtime(); + $time = explode(' ', $time); + $time = $time[1] + $time[0]; + $start = $time; + require $layout; + $time = microtime(); + $time = explode(' ', $time); + $time = $time[1] + $time[0]; + $finish = $time; + $total_time = round(($finish - $start), 4); + echo "\n" . ''; + } else { + ob_start(); + require $layout; + } if (!$login) { if (!file_exists($cachefile)) { - echo "\n" . ''; + if (config('cache.timestamp') == 'true') { + echo "\n" . ''; + } file_put_contents($cachefile, ob_get_contents()); } } - echo trim(ob_get_clean()); } else { echo content();