* @author Michal Prochowski */ /** * Odczytuje konfigurację Symfony. */ include(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'); /** * Symfony bootstraping * * @package stBackend * @subpackage configs */ require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'symfony'.DIRECTORY_SEPARATOR.'util'. DIRECTORY_SEPARATOR.'stCore.class.php'); stCore::bootstrap($sf_symfony_lib_dir, $sf_symfony_data_dir); /** * Uzupelnienie funkcji lcfirst (wystepuje tylko w CVS dla php 5.2.x. Dostepna dla php 5.3.x) * * @author Marcin Butlak */ if(function_exists('lcfirst') == false) { /** * Make a string's first character lowercase * * @param string $str The input string. * @return string The resulting string. */ function lcfirst($str) { $str[0] = strtolower($str[0]); return $str; } } /** * Ładowanie plików z konfiguracyjnych wszystkich zainstalowanych modułów * * @author Michal Prochowski */ if (!defined('ST_SYMFONY_OPTIMIZATION')) { foreach (stApplication::getApps() as $app => $data) { $dir = SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.$app; if (!ereg('Plugin',$app) && file_exists($dir)) { $file_config = SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.$app.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php'; if (file_exists($file_config)) { include_once($file_config); } } } } $limit = stLimits::getInstance();