Einfach das Pack herunterladen und das CMS mit diesem austauschen
V 1.8.1
Was ist neu?
-XSS Exploits geschlossen
Spoiler anzeigen
HTML5-Avatar Creator: https://gyazo.com/497c45eede3e8333d9f1f2734da1cd8b
Menü Animation: https://gyazo.com/58a1fb1f68029e4506e163b0bcd02974
Snippets
CSS: Class
/*
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];
}
Alles anzeigen
-
Version 1.8.1
-
Palokos -
11. Februar 2018 um 19:20 -
23,12 MB -
233 Downloads
-
Autor