mirror of
https://github.com/itflow-org/itflow
synced 2026-03-10 07:44:50 +00:00
Update more broken links from file dirextory consolidation
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once "includes/inc_all_admin.php";
|
require_once "includes/inc_all_admin.php";
|
||||||
require_once "includes/database_version.php";
|
require_once "../includes/database_version.php";
|
||||||
require_once "config.php";
|
require_once "../config.php";
|
||||||
|
|
||||||
$checks = [];
|
$checks = [];
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<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>
|
<i class="nav-icon fas fa-key"></i>
|
||||||
<p>API Keys</p>
|
<p>API Keys</p>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ $module = str_ireplace('_details', '', $module);
|
|||||||
if (isset($session_is_admin) && $session_is_admin) {
|
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
|
// 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
|
// 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";
|
include_once "post/$module.php";
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
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'])) {
|
if (isset($_GET['download_backup'])) {
|
||||||
validateCSRFToken($_GET['csrf_token']);
|
validateCSRFToken($_GET['csrf_token']);
|
||||||
@@ -122,7 +122,7 @@ if (isset($_GET['download_backup'])) {
|
|||||||
file_put_contents($sqlFile, $sqlContent);
|
file_put_contents($sqlFile, $sqlContent);
|
||||||
|
|
||||||
// === 4. Zip the uploads folder
|
// === 4. Zip the uploads folder
|
||||||
$zipFolder("uploads", $uploadsZip);
|
$zipFolder("../uploads", $uploadsZip);
|
||||||
|
|
||||||
// === 5. Create version.txt
|
// === 5. Create version.txt
|
||||||
$commitHash = trim(shell_exec('git log -1 --format=%H')) ?: 'N/A';
|
$commitHash = trim(shell_exec('git log -1 --format=%H')) ?: 'N/A';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once "includes/inc_all_admin.php";
|
require_once "includes/inc_all_admin.php";
|
||||||
|
|
||||||
require_once "includes/database_version.php";
|
require_once "../includes/database_version.php";
|
||||||
|
|
||||||
$updates = fetchUpdates();
|
$updates = fetchUpdates();
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
<script src="js/app.js"></script>
|
|
||||||
<script src="plugins/Show-Hide-Passwords-Bootstrap-4/bootstrap-show-password.min.js"></script>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
$content = ob_get_clean();
|
|
||||||
|
|
||||||
// Return the title and content as a JSON response
|
|
||||||
echo json_encode(['content' => $content]);
|
|
||||||
?>
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require_once "../../config.php";
|
|
||||||
require_once "../../functions.php";
|
|
||||||
require_once "../../includes/check_login.php";
|
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
|
|
||||||
// Check for the 'id' parameter
|
|
||||||
//if (!isset($_GET['id'])) {
|
|
||||||
// echo json_encode(['error' => 'ID missing.']);
|
|
||||||
// exit;
|
|
||||||
//}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require_once "config.php";
|
|
||||||
require_once "functions.php";
|
|
||||||
require_once "check_login.php";
|
|
||||||
require_once "page_title.php";
|
|
||||||
require_once "header.php";
|
|
||||||
require_once "top_nav.php";
|
|
||||||
require_once "get_side_nav_counts.php";
|
|
||||||
require_once "side_nav.php";
|
|
||||||
require_once "inc_wrapper.php";
|
|
||||||
require_once "inc_alert_feedback.php";
|
|
||||||
require_once "filter_header.php";
|
|
||||||
Reference in New Issue
Block a user