* fixed log in to admin panel

* fixed File is not .zip plugin upload error
This commit is contained in:
slawkens
2017-09-13 16:35:06 +02:00
parent bdbd215aad
commit ab249eb95f
2 changed files with 3 additions and 1 deletions

View File

@@ -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';