Patze
"myXOOPs"-Neuling
Gepostet am:24.03.2010 13:31
#12

) auch die anderen Module mal.
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://www.eventsbz.it');
define('XOOPS_URL', 'http://www.eventsbz.it');
// Shall be handled later, don't forget!
define("XOOPS_CHECK_PATH", 0);
// 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.");
| Forum | Thema | Antworten | Views | Letzter Beitrag |
|---|---|---|---|---|
| Modulentwicklung | New Xoops Xcreate Module | 0 | 5336 | 26.11.2025 15:22 efkan |
| Modulentwicklung | XOOPS Custom Field Module | 1 | 1822 | 24.11.2025 11:21 Goffy |