diff --git a/_sakura/changelog.json b/_sakura/changelog.json index eb50d8e..ba51c70 100644 --- a/_sakura/changelog.json +++ b/_sakura/changelog.json @@ -22,7 +22,8 @@ "20150604", "20150619", "20150620", - "20150621" + "20150621", + "20150627" ] @@ -1293,6 +1294,15 @@ "change": "Added a bbcode parser." } + ], + + "20150627": [ + + { + "type": "UPD", + "change": "Put the Forum Listing and Front Page in the same PHP file as they both request nearly identical info (only difference is probably news post/forum posts)." + } + ] } diff --git a/_sakura/components/Users.php b/_sakura/components/Users.php index 3b99439..35355c2 100644 --- a/_sakura/components/Users.php +++ b/_sakura/components/Users.php @@ -708,6 +708,32 @@ class Users { } + // Get the available profile fields + public static function getProfileFields() { + + // Get profile fields + $profileFields = Database::fetch('profilefields'); + + // If there's nothing just return null + if(!count($profileFields)) + return null; + + // Create output array + $fields = []; + + // Iterate over the fields and clean them up + foreach($profileFields as $field) { + + $fields[$field['id']] = $field; + $fields[$field['id']]['ident'] = Main::cleanString($field['name'], true, true); + + } + + // Return the yeahs + return $fields; + + } + // Get user's profile fields public static function getUserProfileFields($id, $inputIsData = false) { diff --git a/_sakura/sakura.php b/_sakura/sakura.php index c867716..9f672d2 100644 --- a/_sakura/sakura.php +++ b/_sakura/sakura.php @@ -8,7 +8,7 @@ namespace Sakura; // Define Sakura version -define('SAKURA_VERSION', '20150625'); +define('SAKURA_VERSION', '20150627'); define('SAKURA_VLABEL', 'Eminence'); define('SAKURA_VTYPE', 'Development'); define('SAKURA_COLOUR', '#6C3082'); diff --git a/_sakura/templates/yuuno/main/forgotpassword.tpl b/_sakura/templates/yuuno/main/forgotpassword.tpl index 725152b..ef70aa6 100644 --- a/_sakura/templates/yuuno/main/forgotpassword.tpl +++ b/_sakura/templates/yuuno/main/forgotpassword.tpl @@ -2,7 +2,6 @@