diff --git a/_sakura/changelog.json b/_sakura/changelog.json index ded72df..a4acdd6 100644 --- a/_sakura/changelog.json +++ b/_sakura/changelog.json @@ -23,7 +23,9 @@ "20150501", "20150502", "20150503", - "20150503.1" + "20150503.1", + "20150504", + "20150504.1" ] @@ -890,6 +892,28 @@ "change": "Added profile backgrounds." } + ], + + "20150504": [ + + { + "type": "REM", + "change": "Removed blank background for inactive users (will make the backend handle removal)." + } + + ], + + "20150504.1": [ + + { + "type": "UPD", + "change": "Changed profile background handling." + }, + { + "type": "ADD", + "change": "Add beginning parts of the warning systems." + } + ] } diff --git a/_sakura/components/Users.php b/_sakura/components/Users.php index 5cce653..132d564 100644 --- a/_sakura/components/Users.php +++ b/_sakura/components/Users.php @@ -918,4 +918,17 @@ class Users { } + // Get all warnings issued to a user (or all warnings a user issued) + public static function getWarnings($uid, $iid = false) { + + // Do the database query + $warnings = Database::fetch('warnings', true, [ + ($iid ? 'iid' : 'uid') => [$uid, '='] + ]); + + // Return all the warnings + return $warnings; + + } + } diff --git a/_sakura/sakura.php b/_sakura/sakura.php index 76a9fdf..c47d24c 100644 --- a/_sakura/sakura.php +++ b/_sakura/sakura.php @@ -8,7 +8,7 @@ namespace Sakura; // Define Sakura version -define('SAKURA_VERSION', '20150503.1'); +define('SAKURA_VERSION', '20150504'); define('SAKURA_VLABEL', 'Heliotrope'); define('SAKURA_VTYPE', 'Development'); define('SAKURA_COLOUR', '#DF73FF'); diff --git a/_sakura/templates/yuuno/global/header.tpl b/_sakura/templates/yuuno/global/header.tpl index 1531cd3..7646ef3 100644 --- a/_sakura/templates/yuuno/global/header.tpl +++ b/_sakura/templates/yuuno/global/header.tpl @@ -119,7 +119,7 @@ }; -
+