Update more broken links from file dirextory consolidation

This commit is contained in:
johnnyq
2025-07-29 18:34:51 -04:00
parent 9ee76213e1
commit 2333d81276
10 changed files with 7 additions and 42 deletions

View File

@@ -1,8 +1,8 @@
<?php
require_once "includes/inc_all_admin.php";
require_once "includes/database_version.php";
require_once "config.php";
require_once "../includes/database_version.php";
require_once "../config.php";
$checks = [];

View File

@@ -28,7 +28,7 @@
</a>
</li>
<li class="nav-item">
<a href="api.php" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "api.php") {echo "active";} ?>">
<a href="api_keys.php" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "api.php") {echo "active";} ?>">
<i class="nav-icon fas fa-key"></i>
<p>API Keys</p>
</a>

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
<?php
require_once "includes/inc_all_admin.php";
require_once "includes/database_version.php";
require_once "../includes/database_version.php";
$updates = fetchUpdates();