Move creation of the db class

This commit is contained in:
Yiğit Kerem Oktay 2020-08-16 22:31:33 +03:00 committed by GitHub
parent 7c83e0007f
commit 88ba637891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,7 @@ require_once("config.php");
require_once("template.php");
require_once("classes/constellation.php");
require_once("classes/db-class.php");
$db = new SSDB();
$offset = 0;
if (isset($_GET['ajax']))
@ -55,7 +55,6 @@ if (isset($_GET['subscriber_logout'])){
unset($_SESSION['subscriber_id']);
header('Location: index.php');
}
$db = new SSDB();
$versionfile = fopen("versionfile", "r") or die("Unable to open version file!");
$appversion = fread($versionfile,filesize("versionfile"));
fclose($versionfile);