trigger_error('Required class [StructureManager] not found', PM_FATAL); } if (!class_exists('ModulesManager')) { trigger_error('Required class [ModulesManager] not found', PM_FATAL); } if (!class_exists('TemplatesManager')) { trigger_error('Required class [TemplatesManager] not found', PM_FATAL); } initStructure(); //$structureMgr will be created initModules(); //$modulesMgr will be created initTemplates(); //$templatesMgr will be created // initNotifications(); //$ntfMgr will be created initCache(); //$cacheMgr will be created initAuthentication(); //$authenticationMgr will be created initPermissions(); //$permissionsMgr will be created processRequest(); if (isset($_errors) && !GetCfg('SuppressErrors') && !empty($_errors)) { echoErrorBlock($_errors); } $stime = round(get_microtime() - $stime, 3); $userID = $authenticationMgr->getUserID(); if ($userID == 1) { $userName = '******'; } else { $ud = $authenticationMgr->getUserData($userID);
function setCache($key, $value) { global $memcache; initCache(); if (!$memcache) { return false; } //$ret = memcache_set($memcache, $key, $value); return memcache_set($memcache, $key, $value); }