From 88ba6378919bbaaa110078febc67b6d038338adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20Kerem=20Oktay?= Date: Sun, 16 Aug 2020 22:31:33 +0300 Subject: [PATCH] Move creation of the db class --- index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.php b/index.php index be8dbc3..29b881e 100644 --- a/index.php +++ b/index.php @@ -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);