mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Preview: http://4.ii.gl/4VnAws.png Added changelog ticker system in front page.
Optional enable/disable it in config.php Only refreshes the cache when any changes are being done to it. This looks way more practical than a stupid news ticker. Inspiration from: http://nelvara.com/
This commit is contained in:
@@ -54,7 +54,7 @@ if (user_logged_in()) {
|
||||
<h1>Changelog</h1>
|
||||
<?php
|
||||
$cache = new Cache('engine/cache/changelog');
|
||||
if ($cache->hasExpired() || $updateCache === true) {
|
||||
if ($updateCache === true) {
|
||||
$changelogs = mysql_select_multi("SELECT `id`, `text`, `time`, `report_id`, `status` FROM `znote_changelog` ORDER BY `id` DESC;");
|
||||
|
||||
$cache->setContent($changelogs);
|
||||
@@ -64,7 +64,7 @@ if ($cache->hasExpired() || $updateCache === true) {
|
||||
}
|
||||
if (isset($changelogs) && !empty($changelogs) && $changelogs !== false) {
|
||||
?>
|
||||
<table>
|
||||
<table id="changelogTable">
|
||||
<tr class="yellow">
|
||||
<td>Changelogs</td>
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user