我的网站以前开通个云平台,一直也在用,今天因为出错,把所有的文件都删除了,然后下载了最新的DZ2.0程序,安装好之后提示开通云平台,开通时提示要下载修复文件,也按照要求下载,但点击下载的文件之后出现如下错误,请问如何解决。
Parse error: parse error in d:\www\Web1716545\wwwroot\cloud_b8152f0e7459e5748423569e37a76159.php on line 195
function my_site_restore() {
if (class_exists('Cloud')) {
// X2.5 修复
$cloudClient = Cloud::loadClass('Service_Client_Cloud');
try {
$result = $cloudClient->resume();
} catch (Exception $e) {
$msg = sprintf('操作失败:%s (#%s)', $e->getMessage(), $e->getCode());
my_show_message($msg);
}
} else {
// X2 修复
require_once DISCUZ_ROOT.'/api/manyou/Manyou.php';
$cloudClient = new Discuz_Cloud_Client();
$result = $cloudClient->resume();
if(!$result || $cloudClient->errno) {
$msg = sprintf('操作失败:%s (#%s)', $cloudClient->errmsg, $cloudClient->errno);
my_show_message($msg);
}
}
// lock file
$fp = fopen(DISCUZ_ROOT . './data/discuzx_utility.lock', 'w');
if ($fp === false) {
my_show_message(sprintf('请确保 <strong>%s/data/discuzx_utility.lock</strong> 文件可写!', DISCUZ_ROOT));
}
fclose($fp);
return $result;
}
function my_show_message($msg) {
my_header();
printf('<p class="msg">%s</p>', $msg);
my_footer();
exit;
}
function my_get_uri() {
$uri = $_SERVER['REQUEST_URI']?$_SERVER['REQUEST_URI']$_SERVER['PHP_SELF']?$_SERVER['PHP_SELF']_SERVER['SCRIPT_NAME']);
return $uri;
}
?>
红色的是第195行的内容。
|