1
0
Fork 0

Do not include unused discord class

master
Anonymous Contributor 2023-08-23 18:16:35 +02:00
parent 08f29758c0
commit da225d7213
2 changed files with 0 additions and 2 deletions

View File

@ -5,7 +5,6 @@ session_start();
include_once("classen/utils.php"); include_once("classen/utils.php");
include_once("classen/HTML.php"); include_once("classen/HTML.php");
include_once("classen/discord.php");
$RUNTIME = array(); $RUNTIME = array();
include_once("config.php"); include_once("config.php");

View File

@ -19,7 +19,6 @@ if(!isset($_SESSION['csrf']) || strlen($_SESSION['csrf']) != 64) {
include_once("classen/utils.php"); include_once("classen/utils.php");
include_once("classen/HTML.php"); include_once("classen/HTML.php");
include_once("classen/discord.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");