This commit is contained in:
Vojtěch Sajdl
2018-01-03 14:15:45 +01:00
parent e7df74cad8
commit 9820686776
9 changed files with 50 additions and 36 deletions
+12 -1
View File
@@ -30,7 +30,18 @@ if (!isset($_SESSION['user']))
else
{
$user = new User($_SESSION['user']);
switch ($_GET["do"]) {
if (!$user->is_active())
{
User::logout();
}
if (!isset($_GET['do'])){
$do = "";
}else{
$do = $_GET['do'];
}
switch ($do) {
case 'change-email':
$user = new User($_GET['id']);
$user->change_email();