From 5f093236433fcea508d4c023179e525d99e35cb3 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Tue, 23 Aug 2011 00:18:57 +0200 Subject: [PATCH] Knihovny presunuty do ./lib --- index.php | 2 ++ HTTP_Auth.class.php => lib/HTTP_Auth.class.php | 0 Sklad_LMS-fake.class.php => lib/Sklad_LMS-fake.class.php | 0 sklad.conf.php.example | 5 +++-- 4 files changed, 5 insertions(+), 2 deletions(-) rename HTTP_Auth.class.php => lib/HTTP_Auth.class.php (100%) rename Sklad_LMS-fake.class.php => lib/Sklad_LMS-fake.class.php (100%) 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'])); -- 2.30.2