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

Multiple Xoops Sites with one core folder

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2006/10/19 18:10
Ejona  °ìÅùʼ   Posts: 20
Hello,

im currently running +30 Xoops Websites and seeking an way to reduce my maintenance efforts. Currently every Xoops Website on my Server is an full/complete Install which means if i have an change which affects the core for example that i need to distribute the change to all Xoops Websites. This takes alot of time and offers to much room for errors.

I already tried to make one "core" installation and to setup one website which only consists of the "mainfile.php" aswell as "templates", "cache" and "upload" folder. All other directories and files are linked (symlink) and pointing to the "core" installation.

Unfortunally im struggling now with the security of Xoops as im getting those errors:

"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run."

Switching "XOOPS_CHECK_PATH" to 0 doesnt help.

Anyone has an idea how to get my idea realized? Or prolly an pointer to an hack or something related.

Thanks in advance.

P.S.: Forgot to add that im currently running 2.0.13.2 and 2.0.14
Votes:21 Average:4.29
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

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!