From 29a3ffb99435827d5a7ea6886ac22bd2ee18d593 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 27 Oct 2011 19:44:10 -0400 Subject: I think this fixes everything, but it now depends on PHP 5.3+ The introduction of the dependency on PHP 5.3 is that lib/Singleton.class uses `get_called_class()' --- index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 231b4d6..6c17d47 100644 --- a/index.php +++ b/index.php @@ -52,7 +52,9 @@ require_once('View.class.php'); require_once('Controller.class.php'); // Check if we have a database configuration /////////////////////////////////// +$conf_file = BASEPATH.'/conf.php'; if (file_exists($conf_file)) { + require_once('Database.class.php'); new Database($conf_file); session_start(); } else { -- cgit v1.2.3-54-g00ecf