/** * */ public function step2() { $sp_gd = gdversion(); $this->assign('sp_name', $_SERVER['SERVER_NAME']); $this->assign('os_name', PHP_OS); $this->assign('server_software', $_SERVER['SERVER_SOFTWARE']); $this->assign('php_version', PHP_VERSION); $this->assign('web_root', WEB_ROOT); $this->assign('sp_safe_mode', ini_get('safe_mode') ? '<font color=red>[×]On</font>' : '<font color=green>[√]Off</font>'); $this->assign('sp_gd', $sp_gd > 0 ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'); $this->assign('sp_mysql', function_exists('mysql_connect') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'); $test_dirs = array('/', '/Core/*', '/Public/*', '/Application/*', '/Data/*', '/Upload/*', '/Extend/*'); $this->assign('sp_testdirs', $test_dirs); $this->display(); }
if (empty($step)) { $step = 1; } require_once "includes/inc_install.php"; $gototime = 2000; /*------------------------ 显示协议文件 ------------------------*/ if ($step == 1) { include_once "./templates/s1.html"; exit; } else { if ($step == 2) { $phpv = @phpversion(); $sp_os = $_ENV["OS"]; $sp_gd = @gdversion(); $sp_server = $_SERVER["SERVER_SOFTWARE"]; $sp_host = empty($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_HOST"] : $_SERVER["SERVER_ADDR"]; $sp_name = $_SERVER["SERVER_NAME"]; $sp_max_execution_time = ini_get('max_execution_time'); $sp_allow_reference = ini_get('allow_call_time_pass_reference') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'; $sp_allow_url_fopen = ini_get('allow_url_fopen') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'; $sp_safe_mode = ini_get('safe_mode') ? '<font color=red>[×]On</font>' : '<font color=green>[√]Off</font>'; $sp_gd = $sp_gd > 0 ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'; $sp_mysql = function_exists('mysql_connect') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'; if ($sp_mysql == '<font color=red>[×]Off</font>') { $sp_mysql_err = true; } else { $sp_mysql_err = false; } $sp_testdirs = array('/', '/Admin_App/Cache', '/Admin_App/Data', '/Admin_App/Temp', '/Admin_App/Logs', '/Huanshang_App/Logs', '/Huanshang_App/Logs', '/Huanshang_App/Logs', '/Huanshang_App/Logs');
} if (empty($step)) { $step = 1; } /*------------------------ 使用协议书 function _1_Agreement() ------------------------*/ if ($step == 1) { include './templates/step-1.html'; exit; } else { if ($step == 2) { $phpv = phpversion(); $sp_os = PHP_OS; $sp_gd = gdversion(); $sp_server = $_SERVER['SERVER_SOFTWARE']; $sp_host = empty($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_HOST'] : $_SERVER['REMOTE_ADDR']; $sp_name = $_SERVER['SERVER_NAME']; $sp_max_execution_time = ini_get('max_execution_time'); $sp_allow_reference = ini_get('allow_call_time_pass_reference') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'; $sp_allow_url_fopen = ini_get('allow_url_fopen') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'; $sp_safe_mode = ini_get('safe_mode') ? '<font color=red>[×]On</font>' : '<font color=green>[√]Off</font>'; $sp_gd = $sp_gd > 0 ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'; $sp_mysql = function_exists('mysql_connect') ? '<font color=green>[√]On</font>' : '<font color=red>[×]Off</font>'; if ($sp_mysql == '<font color=red>[×]Off</font>') { $sp_mysql_err = TRUE; } else { $sp_mysql_err = FALSE; } $sp_testdirs = array('/', '/plus/*', '/dede/*', '/data/*', '/a/*', '/install', '/special', '/uploads/*');
?> </td> <td class="instructions exclam">Subfolio requires PHP 5.2 or newer</td> <?php } ?> </tr> <tr> <th class="label">GD enabled</th> <?php if (extension_loaded('gd')) { ?> <td class="sign pass">Pass</td> <td class="version"><?php echo gdversion(); ?> </td> <td class="instructions"></td> <?php } else { $failed = TRUE; ?> <td class="sign fail">Failed</td> <td class="version red">GD is not enabled</td> <td class="instructions exclam">Ask your system administrator to install the <a href="http://php.net/gd" target="_blank">GD Library</a> on your server</td> <?php } ?> </tr>
} if (empty($step)) { $step = 1; } /*------------------------ 使用协议书 ------------------------*/ if ($step == 1) { include './templets/step1.htm'; exit; } else { if ($step == 2) { $sys_php = phpversion(); //php版本 $sys_os = PHP_OS; $sys_gd = gdversion(); $sys_uploadsize = getServerFileUpload(); $sys_diskspace = getDiskSpace(SLINEROOT); //目录检测 $testdirs = array('/data/*', '/newtravel/application/data/*', '/newtravel/application/cache/*', '/newtravel/application/logs/*', '/newtravel/application/config/*', '/uploads/*'); //函数检测 $funccheck = array('mysql_connect', 'curl_init', 'fsockopen'); include './templets/step2.htm'; exit; } else { if ($step == 3) { include './templets/step3.htm'; exit; } else { if ($step == 'createDataBase') { $data = 'no';
<div class="bodytitleleft"></div> <div class="bodytitletxt">系统基本信息</div> </div> <table width="96%" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#E2F5BC" style="margin-top:6px;"> <tr> <td align="right" bgcolor="#F9FFE6" class="main_bleft">你的级别:</td> <td bgcolor="#FFFFFF" class="main_bright"><strong> <?php if($cuserLogin->getUserType()==10) echo "总管理员"; else if($cuserLogin->getUserType()==5) echo "频道总编"; else echo "信息采集员或其它管理员"; ?></strong></td> </tr> <tr> <td width="22%" rowspan="5" align="right" bgcolor="#F9FFE6" class="main_bleft">PHP环境摘要:</td> <td bgcolor="#FFFFFF" class="main_bright"><strong>PHP版本:</strong> <?php echo @phpversion();?> <strong>GD版本:</strong> <?php echo @gdversion()?> </td> </tr> <tr> <td bgcolor="#FFFFFF" class="main_bright"><strong>是否安全模式:</strong> <?php echo ($cfg_isSafeMode ? 'On' : 'Off')?> <?php if($cfg_isSafeMode) echo "<br> <font color='blue'>由于你的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请更改“<a href='sys_info.php'><u>更改系统参数</u></a>”里的FTP选项,并选择用FTP形式创建目录,完成后:<a href='testenv.php' style='color:red'><u>点击此进行一次DedeCms目录权限检测>></u></a></font>"; else echo " <a href='testenv.php' style='color:blue'><u>如果你第一次进入本系统,建议点击此进行一次DedeCms目录权限检测>></u></a></font>"; ?></td> </tr> <tr> <td bgcolor="#FFFFFF" class="main_bright"><strong>Register_Globals:</strong> <?php echo ini_get("register_globals") ? 'On' : 'Off'?> <strong>Magic_Quotes_Gpc:</strong> <?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?> </td> </tr> <tr> <td width="78%" bgcolor="#FFFFFF" class="main_bright"><strong>支持上传的最大文件:</strong> <?php echo ini_get("post_max_size")?> </td> </tr> <tr> <td bgcolor="#FFFFFF" class="main_bright"><strong>是否允许打开远程连接:</strong> <?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'?> </td>