} else { include_once 'functions/error_functions.php'; trigger_error('"magic_quotes_runtime" must be switched off for CommSy to work correctly. See "htaccess-dist".', E_USER_ERROR); } } if (isPHP5()) { if (ini_get('register_globals')) { include_once 'functions/error_functions.php'; trigger_error('"register_globals" must be switched off for CommSy to work correctly. This must be set in php.ini, .htaccess or httpd.conf.', E_USER_ERROR); } } // setup commsy-environment include_once 'classes/cs_environment.php'; $environment = new cs_environment(); $translator = $environment->getTranslationObject(); $class_factory = $environment->getClassFactory(); // transform POST_VARS and GET_VARS --- move into page object, if exist include_once 'functions/text_functions.php'; $_POST = encode(FROM_FORM, $_POST); $_GET = encode(FROM_FORM, $_GET); // include classes needed for this script include_once 'classes/cs_session_item.php'; include_once 'classes/cs_session_manager.php'; $current_user = $environment->getCurrentUser(); /*********** INITIALIZE ENVIRONMENT ***********/ // initialize environment // - context id // - module // - function // and context object $cid_not_set = false;