Help: PHP site migrated from the Windows platform to the Linux platform, the navigation error occurred
Php+mysql's website, from the original Windows built platform ported to the CentOS server platform, the other is no problem, is the home page navigation can not see, Dot also no use.
The original home code generated:
General situation of the hospital
Introduction to the hospital situation
Home code generated after the migration:
-
" >
" >
Home Source code:
Session_Start ();
Error_reporting (e_all ^ e_notice);
Header (' content-type:text/html; Charset=utf-8 ');
Define (' Thisisadmini ', true);
$dirName =dirname (__file__);
$shlConfig = $dirName. ' /config/dt-config.php ';
if (!is_file ($shlConfig) | | FileSize ($shlConfig) ==0| | FileSize ($shlConfig) ==3)
Exit (' SHLCMS system not installed, please enter the installation directory ');
Else
Require ($shlConfig);
Require (Abspath. ' /loader/html.php ');
Function_exists (' Date_default_timezone_set ') && @date_default_timezone_set (' etc/gmt-'). timeZoneName);
Require_once (Abspath. ' /inc/class.database.php ');
Require_once (Abspath. ' /inc/function.php ');
$_request = Cleanarrayformysql ($_request);
$_get = Cleanarrayformysql ($_get);
$_post = Cleanarrayformysql ($_post);
$request = $_request;
$menu _arr=array ();
Write routing statements
$pfileName = $request [' f '];
if (!empty ($pfileName) && $pfileName! = ' search ')
$request [' p '] = Getidbymenuname ($pfileName);
ElseIf ($pfileName = = ' Search ')
$request [' m '] = ' search ';
$params [' id ']= $request [' P ']=isset ($request [' P '])? intval ($request [' P ']): 0;
$params [' CID ']= $request [' C ']=isset ($request [' C '])? intval ($request [' C ']): 0;
$params [' args ']= $request [' R ']=isset ($request [' R '])? intval ($request [' r]]): 0;
$params [' i ']= $request [' I ']=isset ($request [' I '])? intval ($request [' I ']): 0;
$request [' Comment ']=isset ($request [' comment '])? intval ($request [' comment ']): 0;
$request [' MDTP ']=isset ($request [' MDTP '])? intval ($request [' MDTP ']): 0;
$menu _arr=get_model_type ($params [' id ']);
$request [' m ']=!isset ($request [' m '])? ': $request [' m '];
$params [' Model ']=empty ($request [' m '])? $menu _arr[' type ']: $request [' m '];
$request [' A ']=!isset ($request [' a '])? ': $request [' a '];
$params [' Action ']=empty ($request [' a '])? ' Index ': $request [' a '];
$params [' Related_common ']=empty ($menu _arr[' Related_common ')? $params [' Model ']: $menu _arr[' Related_common '];
-