您好,欢迎访问一九零五行业门户网

求助:php网站从windows平台移植到了Linux平台,出现导航的错误

php+mysql的网站,从原来的windows搭建的平台移植到了centos服务器的平台上,其他的都没有问题,就是主页导航看不到了,点了也不管用。
原来生成的主页代码:
院情概况
院情简介
移植后生成的主页代码:
=$target?> =$select?>>=$data['title'];?>
=$target?>>=$data['title'];?>
主页源代码:
'/inc/common.php',
1=>'/inc/class.pager.php',
2=>'/inc/class.treemenu.php',
3=>'/content/common/common.php',
4=>'/inc/class.seo.php',
5=>'/config/dt-global.php',
6=>'/content/index/common_call_label.php',
7=>'/content/index/old_call_label.php'
);
foreach($loadfile as $k=>$v){
require_once(abspath.$v);
}
unset($loadfile);
$controller=abspath.'/content/'.$params['model'].'/index.php';
if(is_file($controller))
{
require_once($controller);
require_once(abspath.'/content/comment/index.php');
//执行 action
empty($params['action'])?index():(function_exists($params['action'])?$params['action']():exit(无此action #.removexss($params['action']). 或栏目类型已被修改));
}
$part_path=abspath.'/skins/'.stylename.'/';
$part_common_path=abspath.'/skins/'.stylename.'/common/';
$loadskinindex=$part_path.'index.php';
$loadskincommon=$part_path.'common.php';
$loadskinothercommon=$part_common_path.$params['related_common'];
switch ($params['related_common'])
{
case 'index':
if(is_file($loadskinindex))require_once($loadskinindex);
break;
default:
if(is_file($loadskinothercommon)) 
require_once($loadskinothercommon);
elseif(is_file($loadskincommon))
require_once($loadskincommon);
else
exit ('pager error!');
break;
}
function sys_layout_part($style='')
{
global $request,$params,$tag,$path,$data;
if(!empty($style)) $style = '_'.$style;
$part_path=abspath.'/skins/'.stylename.'/parts/'.$params['model'].'_'.$params['action'].$style.'.php';
$content_part_path=abspath.'/content/'.$params['model'].'/parts_'.$params['action'].'.php';
if(is_file($part_path))
require_once($part_path);
elseif(is_file($content_part_path))
require_once($content_part_path);
else 
echo '';
iscomments();
}
function get_model_type($id)
{
global $db;
if($id==0)
return array('type'=>'index','level'=>0);
else
return $db->get_row(select * from .tb_prefix.menu where id=$id,array_a);
}
//new 2011.01.08
function getidbymenuname($file)
{
global $db;
$sql=select id from .tb_prefix.menu where menuname='$file';
return $db->get_var($sql);
}
unset($request);
unset($params);
unset($tag);
unset($path);
unset($data);
?>
回复讨论(解决方案) 还需要哪些代码我可以随后贴上
原环境
short_open_tag = on
新环境
short_open_tag = off
不支持短标记了,所以
  =$target?>>=$data['title'];?>
中的短标记php代码未被执行
谢谢版主了,高手就是高手!
其它类似信息

推荐信息