47 $this->username = $_SESSION[
'username'];
50 $user = new \YAWK\user(
$db);
53 $user->loadProperties(
$db, $this->username);
55 if ($user->isLoggedIn(
$db, $user->username))
57 require_once
'system/plugins/userpage/classes/userpage.php';
60 $userpage = new \YAWK\PLUGINS\USERPAGE\userpage(
$db, $user);
67 \YAWK\alert::draw(
"danger",
"Error!",
"Obviously you are not correctly logged in. Please re-login!",
"",5000);
68 return \YAWK\user::drawLoginBox(
"",
"");
87 echo
"<script src=\"system/plugins/signup/js/adultCheck.js\"></script>";
89 echo
"<div id=\"adultCheck\" class=\"text-center\"><h2>Are you over 18 years old?</h2>
90 <h2><small id=\"yes\">yes</small></h2>
91 <h2><small id=\"no\">no</small></h2></div>";
93 echo
"<div id=\"alt\" class=\"text-center\"><h2>Are you an adult, depending on the age of your country laws?</h2>
94 <h2><small id=\"contact\">Yes</small></h2>
95 <h2><small id=\"home\">No</small></h2></div>";
99 include
'system/plugins/signup/classes/buildForm.php';
101 $form = new \YAWK\PLUGINS\SIGNUP\buildForm(
$db);
static signUp($db)
draw html output adultcheck or form on demand
__construct()
signup constructor.
static draw($type, $title, $text, $redirect, $delay)
static getSetting($db, $property)
Get and return value for property from settings database.
static isAnybodyThere($db)
check, if a session username is set and if user is logged in
This class serves methods to create backup from files.
print $lang['SETTINGS_SAVE']