<woltlab-metacode data-name="align" data-attributes="WyJjZW50ZXIiXQ=="><p><span style="font-size: 24pt"><strong><span style="color: #FF0000">Alte Version</span></strong><br><em><span style="font-size: 18pt"><span style="color: #FF0000">Klicke <a href="https://retrotown.ws/filebase/index…-Pack/#overview">hier</a>, um zur neuen zu gelangen</span></span></em></span></p>
<p><img src="https://brain.retroripper.com/templates/brai…s/logo/logo.png"><br>V 1.7.0</p>
<p><strong><span style="color: #B22222">Thread Update: Nun sind auch DB, Emu, SWF und CMS dabei!</span></strong></p>
<p>Hey RetroTown,<br>das CMS wurde von RetroRipper geschrieben. Er betitelt es als "Lern-CMS".</p>
<p>Was ist neu?<br>- Start Raum in Config auswählen<br>- Staff Pin im Client<br>- User Home<br>- User der Woche<br>- Staffpage<br>- Teampage<br>- Statistiken<br>- Bewerbungsseite<br>- Register mit Habbo Creator und ReChapta<br>- Anzeige wieviel User in einem Raum auf der Homepage<br>- Facebook Login<br>- Sprachensystem (EN/NL/ES)<br>- Housekeeping (NL)</p>
<p><a href="https://brain.retroripper.com/index"><span style="font-size: 24pt">LIVEDEMO</span></a><span style="font-size: 24pt"></span></p>
<p><span style="font-size: 24pt">DOWNLOADS</span><br><em>CMS ist bei Filebase dabei</em><br><em>SWF, Emulator, PlusEMU sind ebenfalls in der Zip-Datei!</em></p>
<p>Snippets<br></p></woltlab-metacode><p><br><span style="font-size: 36pt"></span><br><span style="font-size: 24pt"></span><br></p>
<pre data-file="config.php" data-highlighter="php" data-line="1">";
?></pre>
<p></p>
<pre data-file="Class" data-highlighter="css" data-line="1">/*
Functions list Class User.
---------------
checkUser();
hashed();
loginTrue();
validName();
userData();
data();
*/
class User
{
public static function checkUser($password, $passwordDb)
{
return (password_verify($password, $passwordDb));
}
public static function hashed($password)
{
return password_hash($password, PASSWORD_BCRYPT);
}
public static function loginTrue()
{
if (!loggedIn())
{
header("Location: ./index");
exit();
}
}
public static function validName($username)
{
if(strlen($username) <= 12 && strlen($username) >= 3 && ctype_alnum($username))
{
return true;
}
return false;
}
public static function userData($key)
{
if (loggedIn())
{
$fetch = DB::Fetch(DB::Query("SELECT * FROM users WHERE id = '" . $_SESSION['id'] . "'"));
return $fetch[$key];
}
return false;
}
public static function data($var, $where = 'id', $key = 'username')
{
$Query = DB::Query("SELECT * FROM users WHERE $where = '" . $var . "'");
$fetch = DB::Fetch($Query);
return $fetch[$key];
}</pre>
<p><br></p>
<woltlab-metacode data-name="align" data-attributes="WyJjZW50ZXIiXQ=="><p><br></p></woltlab-metacode>
-
Version 1.7.0
-
Palokos -
5. März 2017 um 18:47 -
22,66 MB -
233 Downloads
-