mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 01:09:21 +02:00
* fixed log in to admin panel
* fixed File is not .zip plugin upload error
This commit is contained in:
parent
bdbd215aad
commit
ab249eb95f
@ -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']);
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user