User Permissions (User Folder, Read Only, Disable Upload) & more changes

This commit is contained in:
Ryan
2025-04-02 04:49:36 -04:00
committed by GitHub
parent 119aefc209
commit 7c3ce0803a
37 changed files with 1454 additions and 696 deletions

View File

@@ -2,7 +2,7 @@
// totp_setup.php
require_once 'vendor/autoload.php';
require 'config.php';
require_once 'config.php';
use Endroid\QrCode\Builder\Builder;
use Endroid\QrCode\Writer\PngWriter;
@@ -12,10 +12,6 @@ use Endroid\QrCode\ErrorCorrectionLevel\ErrorCorrectionLevelHigh;
// ini_set('display_errors', 1);
// error_reporting(E_ALL);
// Start the session and ensure the user is authenticated.
if (session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
if (!isset($_SESSION['authenticated']) || $_SESSION['authenticated'] !== true) {
http_response_code(403);
exit;