moved database creation into global.php
This commit is contained in:
parent
90fa9fc9ff
commit
099d6027c5
@ -54,10 +54,7 @@ session_start();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
//PASSWORD
|
||||
$secret = fopen("./secret", "r");
|
||||
$database = mysqli_connect("109.123.243.163", "fht", fgets($secret), "fht");
|
||||
fclose($secret);
|
||||
include("./res/global.php");
|
||||
|
||||
//CHECK FOR LOGIN
|
||||
if (isset($_SESSION["username"])) login(null);
|
||||
|
5
res/global.php
Normal file
5
res/global.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
$secret = fopen("./secret", "r");
|
||||
$database = mysqli_connect("109.123.243.163", "fht", fgets($secret), "fht");
|
||||
fclose($secret);
|
Loading…
x
Reference in New Issue
Block a user