From 43de9af71f7f4ca5731b94a06d688ae8412ba427 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 6 Jul 2018 11:14:41 +0200 Subject: 2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota --- mayor-orig/www/include/base/config.php | 62 ++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 mayor-orig/www/include/base/config.php (limited to 'mayor-orig/www/include/base/config.php') diff --git a/mayor-orig/www/include/base/config.php b/mayor-orig/www/include/base/config.php new file mode 100644 index 00000000..4a234fcf --- /dev/null +++ b/mayor-orig/www/include/base/config.php @@ -0,0 +1,62 @@ + $_policy) { + if (file_exists(_CONFIGDIR."/$_policy-conf.php")) { + @require(_CONFIGDIR."/$_policy-conf.php"); + if (file_exists(_BASEDIR.'/policy/'.$_policy.'/'.$DEFAULT_PSF[$_policy]['page'].'/'.$DEFAULT_PSF[$_policy]['sub'].'/'.$DEFAULT_PSF[$_policy]['f'].'.php') + === false) { + //nincs meg ez a file + $_SESSION['alert'][] = 'info:file_not_found:default page:'.$_policy.':'.implode(' ',$DEFAULT_PSF[$_policy]); + } + } else { + $DEFAULT_PSF[$_policy] = array(); + $_SESSION['alert'][] = 'page:file_not_found:'._CONFIGDIR."/$_policy-conf.php"; + } + } +} else { + $_SESSION['alert'][] = 'page:config_error:nincs POLICIES tömb vagy _CONFIGDIR konstans!'; +} + +if (!defined('__FBCONNECT_ENABLED')) define('__FBCONNECT_ENABLED',false); +if (!defined('__SHOW_FACES_TYPE')) define('__SHOW_FACES_TYPE','circle'); // circle, square, classic + +$VALID_MODULES =array('portal','naplo','auth','jatek','password','session','fenntarto'); +if(is_array($EXTRA_MODULES)) $VALID_MODULES = array_unique(array_merge($VALID_MODULES,$EXTRA_MODULES)); + + +?> -- cgit v1.2.3