mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-05-28 12:02:25 -04:00
Move creation of the db class
This commit is contained in:
parent
7c83e0007f
commit
88ba637891
@ -34,7 +34,7 @@ require_once("config.php");
|
|||||||
require_once("template.php");
|
require_once("template.php");
|
||||||
require_once("classes/constellation.php");
|
require_once("classes/constellation.php");
|
||||||
require_once("classes/db-class.php");
|
require_once("classes/db-class.php");
|
||||||
|
$db = new SSDB();
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
|
|
||||||
if (isset($_GET['ajax']))
|
if (isset($_GET['ajax']))
|
||||||
@ -55,7 +55,6 @@ if (isset($_GET['subscriber_logout'])){
|
|||||||
unset($_SESSION['subscriber_id']);
|
unset($_SESSION['subscriber_id']);
|
||||||
header('Location: index.php');
|
header('Location: index.php');
|
||||||
}
|
}
|
||||||
$db = new SSDB();
|
|
||||||
$versionfile = fopen("versionfile", "r") or die("Unable to open version file!");
|
$versionfile = fopen("versionfile", "r") or die("Unable to open version file!");
|
||||||
$appversion = fread($versionfile,filesize("versionfile"));
|
$appversion = fread($versionfile,filesize("versionfile"));
|
||||||
fclose($versionfile);
|
fclose($versionfile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user