diff --git a/system/login.php b/system/login.php index 272a962f..82df9551 100644 --- a/system/login.php +++ b/system/login.php @@ -74,6 +74,8 @@ else $_SESSION['remember_me'] = true; $logged = true; + $logged_flags = $account_logged->getWebFlags(); + if(isset($_POST['admin']) && !admin()) { $errors[] = 'This account has no admin privileges.'; unset($_SESSION['account']); diff --git a/system/pages/admin/plugins.php b/system/pages/admin/plugins.php index f10c9433..d2f5024d 100644 --- a/system/pages/admin/plugins.php +++ b/system/pages/admin/plugins.php @@ -53,7 +53,7 @@ if(isset($_FILES["plugin"]["name"])) } else { if(is_uploaded_file($file['tmp_name']) ) { - if(in_array($type, $accepted_types) && strtolower($name[1]) == 'zip') // check if it is zipped/compressed file + if(strtolower($name[1]) == 'zip') // check if it is zipped/compressed file { $targetdir = BASE; $targetzip = BASE . 'plugins/' . $name[0] . '.zip';