USERS_FILE fix

This commit is contained in:
Ryan
2025-03-03 12:39:00 -05:00
committed by GitHub
parent d331436f13
commit d8dcdd28e6
7 changed files with 10 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ session_start();
header('Content-Type: application/json');
// Check if users.txt is empty or doesn't exist
$usersFile = USERS_FILE;
$usersFile = UPLOAD_DIR . USERS_FILE;
if (!file_exists($usersFile) || trim(file_get_contents($usersFile)) === '') {
// Return JSON indicating setup mode
echo json_encode(["setup" => true]);