From 1422ddb526c33c4ce3acb0c632381df23247a0c9 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 1 Nov 2023 19:36:55 +0000 Subject: [PATCH] Removed debug-pages. --- debug-pages/test-v1.0.html | 112 ------------------------------------- eeprom.php | 1 - public/index.php | 9 --- 3 files changed, 122 deletions(-) delete mode 100644 debug-pages/test-v1.0.html diff --git a/debug-pages/test-v1.0.html b/debug-pages/test-v1.0.html deleted file mode 100644 index 6d4b9d1..0000000 --- a/debug-pages/test-v1.0.html +++ /dev/null @@ -1,112 +0,0 @@ - -
-
- - diff --git a/eeprom.php b/eeprom.php index e084def..f9a6fcb 100644 --- a/eeprom.php +++ b/eeprom.php @@ -12,7 +12,6 @@ define('PRM_DEBUG', is_file(PRM_ROOT . '/.debug')); define('PRM_PUBLIC', PRM_ROOT . '/public'); define('PRM_SOURCE', PRM_ROOT . '/src'); define('PRM_MIGRATIONS', PRM_ROOT . '/database'); -define('PRM_DEBUG_PAGES', PRM_ROOT . '/debug-pages'); define('PRM_UPLOADS', PRM_PUBLIC . '/data'); define('PRM_THUMBS', PRM_PUBLIC . '/thumb'); diff --git a/public/index.php b/public/index.php index 61ffb70..66841ae 100644 --- a/public/index.php +++ b/public/index.php @@ -299,15 +299,6 @@ if($isApiDomain) { $response->setContentType($contentType); $response->setFileName(addslashes($fileName)); }); - - if(PRM_DEBUG) { - $router->get('/test-v1.0.html', function($response) { - $response->setContentType('text/html; charset=utf-8'); - return strtr(file_get_contents(PRM_DEBUG_PAGES . '/test-v1.0.html'), [ - ':cookie' => htmlspecialchars((string)filter_input(INPUT_COOKIE, 'msz_auth')), - ]); - }); - } } else { $router->use('/', function($response, $request) { if($request->getMethod() === 'OPTIONS') {