Fix OpenSim API being included too late in users
							parent
							
								
									841f1707eb
								
							
						
					
					
						commit
						3d0c156cb3
					
				|  | @ -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(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Anonymous Contributor
						Anonymous Contributor