|
|
@@ -8,11 +8,6 @@ upgradeCheck();
|
|
|
// Lazyload settings
|
|
|
$databaseConfig = configLazy('config/config.php');
|
|
|
|
|
|
-// Authorization
|
|
|
- # Check if user is currently active and allowed to access resource
|
|
|
- //require_once("user.php");
|
|
|
- # ^^ I think adding this does that?
|
|
|
-
|
|
|
// Get Action
|
|
|
if (isset($_POST['submit'])) { $action = $_POST['submit']; }
|
|
|
if (isset($_POST['action'])) { $action = $_POST['action']; }
|
|
|
@@ -52,6 +47,8 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|
|
}
|
|
|
break;
|
|
|
case 'POST':
|
|
|
+ // Check if the user is an admin and is allowed to commit values
|
|
|
+ qualifyUser('admin', true);
|
|
|
switch ($action) {
|
|
|
case 'upload-images':
|
|
|
uploadFiles('images/', array('jpg', 'png', 'svg', 'jpeg', 'bmp'));
|