From: Thomas Mudrunka Date: Mon, 22 Aug 2011 22:18:57 +0000 (+0200) Subject: Knihovny presunuty do ./lib X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=5f093236433fcea508d4c023179e525d99e35cb3;p=mirrors%2FSokoMan.git Knihovny presunuty do ./lib --- diff --git a/index.php b/index.php index 931f06c..7a8167c 100755 --- a/index.php +++ b/index.php @@ -18,6 +18,8 @@ */ require_once('sklad.conf.php'); +set_include_path(DIR_LIB.PATH_SEPARATOR.get_include_path()); + require_once('Sklad_LMS-fake.class.php'); require_once('HTTP_Auth.class.php'); diff --git a/HTTP_Auth.class.php b/lib/HTTP_Auth.class.php similarity index 100% rename from HTTP_Auth.class.php rename to lib/HTTP_Auth.class.php diff --git a/Sklad_LMS-fake.class.php b/lib/Sklad_LMS-fake.class.php similarity index 100% rename from Sklad_LMS-fake.class.php rename to lib/Sklad_LMS-fake.class.php diff --git a/sklad.conf.php.example b/sklad.conf.php.example index bd83768..a50a6b4 100755 --- a/sklad.conf.php.example +++ b/sklad.conf.php.example @@ -5,10 +5,11 @@ define('DB_NAME', 'store'); define('DB_HOST', 'localhost'); define('DB_DSN', 'mysql:host='.DB_HOST.';dbname='.DB_NAME); -define('DIR_HOME', './'); +define('DIR_HOME', '.'); +define('DIR_LIB', DIR_HOME.'/lib'); define('DIR_IMAGES', DIR_HOME.'/images'); define('DIR_BARCODES', DIR_HOME.'/barcodes'); -define('DIR_TEMPLATES', DIR_HOME.'/templates'); +define('DIR_TEMPLATES', DIR_HOME.'/templates'); define('DIR_ASSISTANTS', DIR_HOME.'/assistants'); define('URL_HOME', dirname($_SERVER['SCRIPT_NAME']));