PEAK XOOPS - Re: Multiple Xoops Sites with one core folder in englishin japanese

Re: Multiple Xoops Sites with one core folder

List posts in the topic

question Re: Multiple Xoops Sites with one core folder

msg# 1.1
depth:
1
Previous post - Next post | Parent - No child | Posted on 2006/10/20 5:47
GIJOE  ÀèǤ·³Áâ   Posts: 4110
remove these codes from all of your mainfile.php

    // Protect against external scripts execution if safe mode is not enabled
    if ( XOOPS_CHECK_PATH && !@ini_get('safe_mode') ) {
        if ( function_exists('debug_backtrace') ) {
            $xoopsScriptPath = debug_backtrace();
            if ( !count($xoopsScriptPath) ) {
                die("XOOPS path check: this file cannot be requested directly");
            }
            $xoopsScriptPath = $xoopsScriptPath[0]['file'];
        } else {
            $xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] :  $_SERVER['SCRIPT_FILENAME'];
        }
        if ( DIRECTORY_SEPARATOR != '/' ) {
            // IIS6 may double the \ chars
            $xoopsScriptPath = str_replace( strpos( $xoopsScriptPath, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsScriptPath);
        }
        if ( strcasecmp( substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace( DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH)) ) {
            exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
        }
    }

This is a meaningless check.
Votes:4 Average:7.50

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!