Reflect directory structure changes
parent
da225d7213
commit
4415adb6e6
|
@ -3,8 +3,8 @@ date_default_timezone_set("Europe/Berlin");
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
include_once("classen/utils.php");
|
include_once("app/utils.php");
|
||||||
include_once("classen/HTML.php");
|
include_once("app/HTML.php");
|
||||||
|
|
||||||
$RUNTIME = array();
|
$RUNTIME = array();
|
||||||
include_once("config.php");
|
include_once("config.php");
|
||||||
|
|
|
@ -17,8 +17,8 @@ if(!isset($_SESSION['csrf']) || strlen($_SESSION['csrf']) != 64) {
|
||||||
$_SESSION['csrf'] = bin2hex(random_bytes(32));
|
$_SESSION['csrf'] = bin2hex(random_bytes(32));
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once("classen/utils.php");
|
include_once("app/utils.php");
|
||||||
include_once("classen/HTML.php");
|
include_once("app/HTML.php");
|
||||||
|
|
||||||
function isValidEndpoint(string $pageName, string $dirPrefix) {
|
function isValidEndpoint(string $pageName, string $dirPrefix) {
|
||||||
return preg_match("/[a-zA-Z0-9\.]{1,100}/", $pageName) && file_exists("./".$dirPrefix."/".$pageName.".php");
|
return preg_match("/[a-zA-Z0-9\.]{1,100}/", $pageName) && file_exists("./".$dirPrefix."/".$pageName.".php");
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
if(isset($_POST['login']))
|
if(isset($_POST['login']))
|
||||||
{
|
{
|
||||||
include_once 'classen/FormValidator.php';
|
include_once 'app/FormValidator.php';
|
||||||
$validator = new FormValidator(array(
|
$validator = new FormValidator(array(
|
||||||
'username' => array('required' => true, 'regex' => '/[^\\\/<>\s]{1,64} [^\\\/<>\s]{1,64}/'),
|
'username' => array('required' => true, 'regex' => '/[^\\\/<>\s]{1,64} [^\\\/<>\s]{1,64}/'),
|
||||||
'password' => array('required' => true, 'regex' => '/.{1,1000}/')
|
'password' => array('required' => true, 'regex' => '/.{1,1000}/')
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
displayPage("");
|
displayPage("");
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once('classen/FormValidator.php');
|
include_once('app/FormValidator.php');
|
||||||
|
|
||||||
$validator = new FormValidator(array(
|
$validator = new FormValidator(array(
|
||||||
'tos' => array('required' => true, 'equals' => 'on'),
|
'tos' => array('required' => true, 'equals' => 'on'),
|
||||||
|
|
Loading…
Reference in New Issue