From 4415adb6e6df5983f8d63825d36e12d94a72e1e8 Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:35 +0200 Subject: [PATCH] Reflect directory structure changes --- crone.php | 4 ++-- index.php | 4 ++-- pages/login.php | 2 +- pages/register.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crone.php b/crone.php index 497b810..641cb0f 100644 --- a/crone.php +++ b/crone.php @@ -3,8 +3,8 @@ date_default_timezone_set("Europe/Berlin"); error_reporting(E_ALL); session_start(); -include_once("classen/utils.php"); -include_once("classen/HTML.php"); +include_once("app/utils.php"); +include_once("app/HTML.php"); $RUNTIME = array(); include_once("config.php"); diff --git a/index.php b/index.php index a142280..e6ff5d7 100644 --- a/index.php +++ b/index.php @@ -17,8 +17,8 @@ if(!isset($_SESSION['csrf']) || strlen($_SESSION['csrf']) != 64) { $_SESSION['csrf'] = bin2hex(random_bytes(32)); } -include_once("classen/utils.php"); -include_once("classen/HTML.php"); +include_once("app/utils.php"); +include_once("app/HTML.php"); function isValidEndpoint(string $pageName, string $dirPrefix) { return preg_match("/[a-zA-Z0-9\.]{1,100}/", $pageName) && file_exists("./".$dirPrefix."/".$pageName.".php"); diff --git a/pages/login.php b/pages/login.php index 60c43ba..ac247e0 100644 --- a/pages/login.php +++ b/pages/login.php @@ -5,7 +5,7 @@ if(isset($_POST['login'])) { - include_once 'classen/FormValidator.php'; + include_once 'app/FormValidator.php'; $validator = new FormValidator(array( 'username' => array('required' => true, 'regex' => '/[^\\\/<>\s]{1,64} [^\\\/<>\s]{1,64}/'), 'password' => array('required' => true, 'regex' => '/.{1,1000}/') diff --git a/pages/register.php b/pages/register.php index d944f76..510e349 100644 --- a/pages/register.php +++ b/pages/register.php @@ -34,7 +34,7 @@ displayPage(""); } - include_once('classen/FormValidator.php'); + include_once('app/FormValidator.php'); $validator = new FormValidator(array( 'tos' => array('required' => true, 'equals' => 'on'),