1
0
Fork 0

Fix OpenSim API being included too late in users

master
Anonymous Contributor 2023-08-23 18:16:35 +02:00
parent 841f1707eb
commit 3d0c156cb3
1 changed files with 3 additions and 3 deletions

View File

@ -11,6 +11,9 @@
die();
}
include 'app/OpenSim.php';
$opensim = new OpenSim();
if($_SERVER['REQUEST_METHOD'] == 'POST') {
include 'app/FormValidator.php';
if(isset($_POST['genpw'])) {
@ -42,9 +45,6 @@
}
}
include 'app/OpenSim.php';
$opensim = new OpenSim();
$statement = $RUNTIME['PDO']->prepare("CREATE TABLE IF NOT EXISTS `InviteCodes` (`InviteCode` VARCHAR(64) NOT NULL, PRIMARY KEY (`InviteCode`))");
$statement->execute();