PHP site migrated from Windows platform to Linux platform with navigation exception

Source: Internet
Author: User
Tags centos server
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 '];
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.