static function version($withRelease = true, $asAlias = false, $withState = true) { if ($asAlias) { $versionText = eZPublishSDK::alias(); if ($withState) { $versionText .= "-" . eZPublishSDK::state(); } } else { $versionText = 'Community Project ' . eZPublishSDK::majorVersion() . '.' . eZPublishSDK::minorVersion(); // $development = eZPublishSDK::developmentVersion(); // if ( $development !== false ) // $versionText .= '.' . $development; } return $versionText; }
$phpAcceleratorInfo = array('name' => $info->phpAccelerator->name, 'url' => $info->phpAccelerator->url, 'enabled' => $info->phpAccelerator->isEnabled, 'version_integer' => $info->phpAccelerator->versionInt, 'version_string' => $info->phpAccelerator->versionString); } else { $phpAcceleratorInfo = array(); } } else { $systemInfo = array('cpu_type' => '', 'cpu_speed' => '', 'cpu_count' => '', 'memory_size' => ''); $phpAcceleratorInfo = array(); } $webserverInfo = false; if (function_exists('apache_get_version')) { $webserverInfo = array('name' => 'Apache', 'modules' => false, 'version' => apache_get_version()); if (function_exists('apache_get_modules')) { $webserverInfo['modules'] = apache_get_modules(); } } $tpl->setVariable('ezpublish_version', eZPublishSDK::version() . " (" . eZPublishSDK::alias() . ")"); $tpl->setVariable('ezpublish_extensions', eZExtension::activeExtensions()); $tpl->setVariable('php_version', phpversion()); $tpl->setVariable('php_accelerator', $phpAcceleratorInfo); $tpl->setVariable('webserver_info', $webserverInfo); $tpl->setVariable('database_info', $db->databaseName()); $tpl->setVariable('database_charset', $db->charset()); $tpl->setVariable('database_object', $db); $tpl->setVariable('php_loaded_extensions', get_loaded_extensions()); $tpl->setVariable('autoload_functions', spl_autoload_functions()); // Workaround until ezcTemplate // The new system info class uses properties instead of attributes, so the // values are not immediately available in the old template engine. $tpl->setVariable('system_info', $systemInfo); $phpINI = array(); foreach (array('safe_mode', 'register_globals', 'file_uploads') as $iniName) {
} } $done = false; $result = null; while (!$done && $step != null) { // Some common variables for all steps $tpl->setVariable("script", eZSys::serverVariable('PHP_SELF')); $siteBasics = $GLOBALS['eZSiteBasics']; $useIndex = $siteBasics['validity-check-required']; if ($useIndex) { $script = eZSys::wwwDir() . eZSys::indexFileName(); } else { $script = eZSys::indexFile() . "/setup/{$partName}"; } $tpl->setVariable('script', $script); $tpl->setVariable("version", array("text" => eZPublishSDK::version(), "major" => eZPublishSDK::majorVersion(), "minor" => eZPublishSDK::minorVersion(), "release" => eZPublishSDK::release(), "alias" => eZPublishSDK::alias())); if ($persistenceList === null) { $persistenceList = eZSetupFetchPersistenceList(); } $tpl->setVariable('persistence_list', $persistenceList); // Try to include the relevant file $includeFile = $baseDir . 'steps/ezstep_' . $step['file'] . '.php'; $stepClass = false; if (file_exists($includeFile)) { include_once $includeFile; $className = 'eZStep' . $step['class']; if ($step == $currentStep) { $stepInstaller = $previousStepClass; } else { $stepInstaller = new $className($tpl, $http, $ini, $persistenceList); }
$tpl->setVariable( "script", eZSys::serverVariable( 'PHP_SELF' ) ); $siteBasics = $GLOBALS['eZSiteBasics']; $useIndex = $siteBasics['validity-check-required']; if ( $useIndex ) $script = eZSys::wwwDir() . eZSys::indexFileName(); else $script = eZSys::indexFile() . "/setup/$partName"; $tpl->setVariable( 'script', $script ); $tpl->setVariable( "version", array( "text" => eZPublishSDK::version(), "major" => eZPublishSDK::majorVersion(), "minor" => eZPublishSDK::minorVersion(), "release" => eZPublishSDK::release(), "alias" => eZPublishSDK::alias() ) ); if ( $persistenceList === null ) $persistenceList = eZSetupFetchPersistenceList(); $tpl->setVariable( 'persistence_list', $persistenceList ); // Try to include the relevant file $includeFile = $baseDir . 'steps/ezstep_'.$step['file'].'.php'; $stepClass = false; if ( file_exists( $includeFile ) ) { include_once( $includeFile ); $className = 'eZStep'.$step['class']; if ( $step == $currentStep ) // if processing post data of current step failed, use same class object. {