25 $this->install_enable = $oInstallController->checkInstallEnv();
27 if($this->install_enable) $oInstallController->makeDefaultDirectory();
36 if(file_exists($install_config_file))
59 include $install_config_file;
60 if(is_array($install_config))
62 foreach($install_config as $k => $v)
64 $v = ($k ==
'db_table_prefix') ? $v.
'_' : $v;
70 $output = $oInstallController->procInstall();
72 header(
"location: ./");
99 $useRewrite = $oInstallController->checkRewriteUsable() ?
'Y' :
'N';
100 $_SESSION[
'use_rewrite'] = $useRewrite;
104 if($useRewrite ==
'N' && stripos($_SERVER[
'SERVER_SOFTWARE'],
'nginx') !==
false)
Context::set(
'use_nginx',
'Y');
124 $defaultDatabase =
'mysqli';
126 if(is_array($disableList))
128 foreach($disableList AS $key=>$value)
130 if($value->db_type == $defaultDatabase)
132 $defaultDatabase =
'mysql';
155 $tpl_filename = sprintf(
'form.%s',
Context::get(
'db_type'));
161 if($_SERVER[
'HTTPS'] ==
'on')
164 $parsedUrl = parse_url($error_return_url);
165 $error_return_url =
'';
166 if(isset($parsedUrl[
'path'])) $error_return_url .= $parsedUrl[
'path'];
167 if(isset($parsedUrl[
'query'])) $error_return_url .=
'?' . $parsedUrl[
'query'];
168 if(isset($parsedUrl[
'fragment'])) $error_return_url .=
'?' . $parsedUrl[
'fragment'];
183 include
_XE_PATH_.
'files/config/tmpDB.config.php';
193 if(function_exists(
'apache_get_modules') && in_array(
'mod_rewrite',apache_get_modules()))
198 require_once(
_XE_PATH_.
'classes/httprequest/XEHttpRequest.class.php');
199 $httpRequest =
new XEHttpRequest($_SERVER[
'HTTP_HOST'], $_SERVER[
'SERVER_PORT']);
200 $xeInstallPath = substr($_SERVER[
'REQUEST_URI'], 0, strpos($_SERVER[
'REQUEST_URI'],
'index.php', 1));
201 $output = $httpRequest->send($xeInstallPath.
'modules/install/conf/info.xml');
203 return (strpos(
$output->body,
'<?xml') !== 0);
212 if(!$this->install_enable)
setTemplateFile($filename)
getController($module_name)
dispInstallIntroduce()
Display license messages.
if(file_exists(_XE_PATH_. 'config/config.user.inc.php')) if(!defined('__DEBUG__')) if(!defined('__DEBUG_OUTPUT__')) if(!defined('__DEBUG_PROTECT__')) if(!defined('__DEBUG_PROTECT_IP__')) if(!defined('__DEBUG_DB_OUTPUT__')) if(!defined('__LOG_SLOW_QUERY__')) if(!defined('__LOG_SLOW_TRIGGER__')) if(!defined('__LOG_SLOW_ADDON__')) if(!defined('__LOG_SLOW_WIDGET__')) if(!defined('__DEBUG_QUERY__')) if(!defined('__OB_GZHANDLER_ENABLE__')) if(!defined('__ENABLE_PHPUNIT_TEST__')) if(!defined('__PROXY_SERVER__')) if(!defined('__ERROR_LOG__')) if(!defined('__DISABLE_DEFAULT_CSS__')) if(!defined('__AUTO_OPCACHE_INVALIDATE__')) if((__DEBUG_OUTPUT__==2)&&version_compare(PHP_VERSION, '6.0.0')===-1) if(version_compare(PHP_VERSION, '5.3.0') >=0) $GLOBALS['__xe_autoload_file_map']
set($key, $val, $set_to_get_vars=0)
setBrowserTitle($site_title)
dispInstallSelectDB()
Choose a DB.
install module of the high class
dispInstallCheckEnv()
Display messages about installation environment.
dispInstallLicenseAgreement()
License agreement.
dispInstallDBForm()
Display a screen to enter DB and administrator's information.
View class of install module.
dispInstallConfigForm()
Display a screen to enter DB and administrator's information.
dispInstallManagerForm()
Display a screen to enter DB and administrator's information.