From: Thomas Mudrunka Date: Tue, 22 Nov 2011 15:24:23 +0000 (+0100) Subject: Pridana podpora pro customizaci uvodni stranky X-Git-Url: http://git.harvie.cz/?a=commitdiff_plain;h=a5094502005a6f99b8e4533e4107490868500411;p=mirrors%2FSokoMan.git Pridana podpora pro customizaci uvodni stranky --- diff --git a/index.php b/index.php index ced23c4..110efbe 100755 --- a/index.php +++ b/index.php @@ -905,6 +905,7 @@ class Sklad_UI { } $PATH_INFO=@trim($_SERVER[PATH_INFO]); + if($PATH_INFO == '' || $PATH_INFO == '/') $PATH_INFO = FRONTEND_PAGE_WELCOME; $PATH_CHUNKS = preg_split('/\//', $PATH_INFO); //Sephirot: if(!isset($PATH_CHUNKS[1])) $PATH_CHUNKS[1]=''; diff --git a/sklad.conf.php.example b/sklad.conf.php.example index 0456fbe..52ae347 100755 --- a/sklad.conf.php.example +++ b/sklad.conf.php.example @@ -25,6 +25,7 @@ define('LOCALE_LANG', 'en'); define('INSTANCE_ID', ''); define('FRONTEND_LISTING_LIMIT', 23); +define('FRONTEND_PAGE_WELCOME', ''); define('BARCODE_TYPE', 'code128b'); define('BARCODE_PREFIX', 'STORE/');