Do not include unused discord class
parent
08f29758c0
commit
da225d7213
|
@ -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");
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue