Improved player reports, adding changelog system.

This commit is contained in:
Stefan Brannfjell
2014-04-04 11:12:00 +02:00
parent 5e0170a264
commit d6cff8692b
6 changed files with 84 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ if (empty($_POST) === false) {
if ($action === 's') {
echo '<font color="green"><b>News successfully updated!</b></font>';
list($title, $text) = array(mysql_znote_escape_string($_POST['title']), mysql_znote_escape_string($_POST['text']));
mysql_update("UPDATE `znote_news` SET `title`='$title',`text`='$text' WHERE `id`='$id';") or die("FUCK!");
mysql_update("UPDATE `znote_news` SET `title`='$title',`text`='$text' WHERE `id`='$id';");
$cache = new Cache('engine/cache/news');
$news = fetchAllNews();
$cache->setContent($news);