diff --git a/admin/debug.php b/admin/debug.php index cb9399da..810fb858 100644 --- a/admin/debug.php +++ b/admin/debug.php @@ -1,8 +1,8 @@
API Keys
diff --git a/admin/post.php b/admin/post.php index 5ad09ee6..70205b1f 100644 --- a/admin/post.php +++ b/admin/post.php @@ -26,7 +26,7 @@ $module = str_ireplace('_details', '', $module); if (isset($session_is_admin) && $session_is_admin) { // As (almost) every admin setting is only changed from 1 page, we can dynamically load the relevant logic inside this single admin check IF statement // To add a new admin POST request handler, add a file named after the admin page - // e.g. changes made on the page http://itflow/admin_ticket_statues.php will load the page post/admin/admin_ticket_statues.php to handle the changes + // e.g. changes made on the page http://itflow/admin_ticket_statues.php will load the page admin/post/admin_ticket_statues.php to handle the changes include_once "post/$module.php"; diff --git a/admin/post/api.php b/admin/post/api_keys.php similarity index 100% rename from admin/post/api.php rename to admin/post/api_keys.php diff --git a/admin/post/backup.php b/admin/post/backup.php index e98c6b73..70f26f5c 100644 --- a/admin/post/backup.php +++ b/admin/post/backup.php @@ -6,7 +6,7 @@ defined('FROM_POST_HANDLER') || die("Direct file access is not allowed"); -require_once "includes/app_version.php"; +require_once "../includes/app_version.php"; if (isset($_GET['download_backup'])) { validateCSRFToken($_GET['csrf_token']); @@ -122,7 +122,7 @@ if (isset($_GET['download_backup'])) { file_put_contents($sqlFile, $sqlContent); // === 4. Zip the uploads folder - $zipFolder("uploads", $uploadsZip); + $zipFolder("../uploads", $uploadsZip); // === 5. Create version.txt $commitHash = trim(shell_exec('git log -1 --format=%H')) ?: 'N/A'; diff --git a/admin/post/role.php b/admin/post/roles.php similarity index 100% rename from admin/post/role.php rename to admin/post/roles.php diff --git a/admin/update.php b/admin/update.php index e8c1a96b..b2ce779e 100644 --- a/admin/update.php +++ b/admin/update.php @@ -1,7 +1,7 @@ - - - $content]); -?> \ No newline at end of file diff --git a/includes/ajax_header.php b/includes/ajax_header.php deleted file mode 100644 index 74f3848c..00000000 --- a/includes/ajax_header.php +++ /dev/null @@ -1,13 +0,0 @@ - 'ID missing.']); -// exit; -//} diff --git a/includes/inc_all.php b/includes/inc_all.php deleted file mode 100644 index 088bff38..00000000 --- a/includes/inc_all.php +++ /dev/null @@ -1,13 +0,0 @@ -