1
In mainfile.php
$xoopsScriptPath = debug_backtrace();
if ( !count($xoopsScriptPath) ) {
die("XOOPS path check: this file cannot be requested directly");
}
$xoopsScriptPath = $xoopsScriptPath[0]['file'];
Why does XOOPS not use __FILE__ directly?
$xoopsScriptPath = __FILE__;