/** * Update the object's specs * * @return void **/ function updateSpecs() { $oldSpec = $this->_specs['_user_password']; $user = new CMediusers(); $remote = 0; if ($user->isInstalled()) { if ($result = $user->load($this->user_id)) { $remote = $user->remote; } } // Determine if password length is sufficient $strongPassword = CAppUI::conf("admin CUser strong_password") == "1" && ($remote == 0 || CAppUI::conf("admin CUser apply_all_users")); // If the global strong password config is set to TRUE and the user can connect remotely $this->_specs['_user_password'] = $strongPassword ? $this->_specs['_user_password_strong'] : $this->_specs['_user_password_weak']; $this->_specs['_user_password']->fieldName = $oldSpec->fieldName; $this->_props['_user_password'] = $strongPassword ? $this->_props['_user_password_strong'] : $this->_props['_user_password_weak']; }
// HTTP headers header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP/1.1 header("Pragma: no-cache"); // HTTP/1.0 header("X-UA-Compatible: IE=edge"); // Force IE document mode // Show errors to admin ini_set("display_errors", CAppUI::pref("INFOSYSTEM")); CMbPerformance::mark("headers"); $user = new CMediusers(); if ($user->isInstalled()) { $user->load(CAppUI::$instance->user_id); $user->getBasicInfo(); CAppUI::$user = $user; CAppUI::$instance->_ref_user =& CAppUI::$user; CApp::$is_robot = CAppUI::$user->isRobot(); // Offline mode for non-admins if ($dPconfig["offline_non_admin"] && CAppUI::$user->_id != 0 && !CAppUI::$user->isAdmin()) { CApp::goOffline("maintenance"); } } CMbPerformance::mark("user"); // Load DB-stored configuration schema $configurations = glob(__DIR__ . "/modules/*/configuration.php"); foreach ($configurations as $_configuration) { include $_configuration;