//验证UCHome是否安装
if(!@include_once S_ROOT.'./uc_client/client.php') {
show_msg('uc_client目录不存在,请上传安装包中的 ./upload/uc_client 到程序根目录');
}
$ucinfo = uc_fopen2($ucapi.'/index.php?m=app&a=ucinfo&release='.UC_CLIENT_RELEASE, 500, '', '', 1, $ucip);
list($status, $ucversion, $ucrelease, $uccharset, $ucdbcharset, $apptypes) = explode('|', $ucinfo);
$dbcharset = strtolower(trim($_SC['dbcharset'] ? str_replace('-', '', $_SC['dbcharset']) : $_SC['dbcharset']));
$ucdbcharset = strtolower(trim($ucdbcharset ? str_replace('-', '', $ucdbcharset) : $ucdbcharset));
$apptypes = strtolower(trim($apptypes));
if($status != 'UC_STATUS_OK') {
show_header();
print<<<END
<form id="theform" method="post" action="$theurl">
<table class="datatable">
<tr><td><strong>UCenter无法正常连接,返回错误 ( $status ),请确认UCenter的IP地址是否正确</strong><br><br></td></tr>
<tr><td>UCenter服务器的IP地址: <input type="text" name="ucip" value="$ucip"> 例如:192.168.0.1</td></tr>
</table>
<table class=button>
<tr><td>
<input type="hidden" name="ucapi" value="$ucapi">
<input type="hidden" name="ucfounderpw" value="$_POST[ucfounderpw]">
<input type="submit" id="ucsubmit" name="ucsubmit" value="确认IP地址"></td></tr>
</table>
<input type="hidden" name="formhash" value="$formhash">
</form>
这个东西,报的错,它是干什么的啊 |