在ubuntu7.10下安装,kbs的snapshot和wforum,
term和自带的web都可以正常使用,但是wforum一打开就出现如下问题:
Parse error: syntax error, unexpected T_STRING in /home/htdocs/wforum/inc/funcs.php on line 275
我的php版本是4。4。3
相关的代码如下:
function html_init($charset="",$otherheader="",$is_mathml=false)
{
global $cachemode;
global $HTMLTitle;
global $HTMLCharset;
global $DEFAULTStyle;
global $stats;
//session_start();
if ($charset==""){
$charset=$HTMLCharset;
}
$title = $HTMLTitle;
if (isset($stats) ){
$title = $title . ' -- ' . $stats;
}
if ($cachemode=="") {
cache_header("nocache");
}
if ($is_mathml) {
if (strpos($_SERVER["HTTP_USER_AGENT"], "MSIE") === false) {
$eee = " encoding=\"$charset\"";
} else {
$eee = ""; //fuck, IE doesn't understand that.
if (stristr($_SERVER["HTTP_USER_AGENT"], "MathPlayer") === false) {
$is_mathml = false;
}
}
}
if ($is_mathml) {
header("Content-Type: application/xhtml+xml");
?>
275 :<?xml version="1.0"<?php echo $eee; ?>?>
276: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:math="http://www.w3.org/1998/Math/MathML">
<?php
} else {
?>
<?xml version="1.0" encoding="<?php echo $charset; ?>"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>"/>
<title><?php echo $title; ?></title>
<link rel="stylesheet" type="text/css" href="css/ansi.css"/>
<link rel="stylesheet" type="text/css" href="css/common.css"/>
<script src="inc/browser.js" language="javascript"></script>
<script src="inc/funcs.js" language="javascript"></script>
<script type="text/javascript">
<!--
writeStyleSheets();
//-->
</script>
<?php echo($otherheader); ?>
</head>
<?php
}
--
FROM 124.78.9.*