moved database creation into global.php
This commit is contained in:
parent
90fa9fc9ff
commit
099d6027c5
@ -54,10 +54,7 @@ session_start();
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
//PASSWORD
|
include("./res/global.php");
|
||||||
$secret = fopen("./secret", "r");
|
|
||||||
$database = mysqli_connect("109.123.243.163", "fht", fgets($secret), "fht");
|
|
||||||
fclose($secret);
|
|
||||||
|
|
||||||
//CHECK FOR LOGIN
|
//CHECK FOR LOGIN
|
||||||
if (isset($_SESSION["username"])) login(null);
|
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