Pridana podpora pro customizaci uvodni stranky
authorThomas Mudrunka <tomas@mudrunka.cz>
Tue, 22 Nov 2011 15:24:23 +0000 (16:24 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Tue, 22 Nov 2011 15:25:45 +0000 (16:25 +0100)
index.php
sklad.conf.php.example

index ced23c4aae5369ccfdbc6113acf714d9c0b2cfda..110efbe8a9b263f7566968ca94fc2b5ea4643b69 100755 (executable)
--- 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]='';
index 0456fbea4fc821c0c43f42912a8417463b2ec8cd..52ae347dd21d8b77ea6722073aeeda73499d44b6 100755 (executable)
@@ -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/');
This page took 0.100701 seconds and 4 git commands to generate.