", "$webyep_sHeadHTML", $sIn):$sIn; } // in case config can't be found $webyep_sAdminName = (string)mt_rand(10000, 99999); $webyep_sAdminPassword = (string)mt_rand(10000, 99999); $webyep_sBaseURL = ""; $webyep_bUseTablesForMenus = false; $webyep_bUseJavaScriptMenus = false; $webyep_bUseTablesForGalleries = true; $webyep_bAutoCloseMenus = false; $webyep_bRememberOpenMenus = true; $webyep_sHTMLStandard = "auto"; if (isset($_GET['webyep_sIncludePath']) || isset($_POST['webyep_sIncludePath']) || isset($_COOKIE['webyep_sIncludePath']) || isset($_SESSION['webyep_sIncludePath'])) exit(-1); if (strpos($webyep_sIncludePath, ":") !== false) exit(-1); if (!file_exists(webyep_sConfigValue("webyep_sIncludePath"))) exit(-1); include_once(webyep_sConfigValue("webyep_sIncludePath") . "/lib/foundation.php"); $webyep_bTesting = isset($_SERVER['HTTP_HOST']) && (webyep_str_murks($_SERVER['HTTP_HOST'])=="jrolrc.ubzr" || webyep_str_murks($_SERVER['HTTP_HOST'])=="gevyyvna.ybpny"); // if ($webyep_bTesting) $webyep_bDebug = true; // for CKFinder: We need to be able to include webyep.php from within a function global $webyep_sAdminName; global $webyep_sAdminPassword; $sConfigFilePath = webyep_sConfigValue("webyep_sIncludePath") . "/../config-inc.php"; if (!@include_once($sConfigFilePath)) { $sConfigFilePath = webyep_sConfigValue("webyep_sIncludePath") . "/../konfiguration.php"; if (!@include_once($sConfigFilePath)) $goApp->log("could not find config file"); } // backward compatibility with pre 1.2.2 config if (!isset($webyep_sMenuType)) $webyep_sMenuType = "div"; if ($webyep_sMenuType == "list") { $webyep_bUseListsForMenus = true; $webyep_bUseJavaScriptMenus = false; } else if ($webyep_sMenuType == "listJS") { $webyep_bUseListsForMenus = true; $webyep_bUseJavaScriptMenus = true; } else { $webyep_bUseListsForMenus = false; $webyep_bUseJavaScriptMenus = false; } // if ($webyep_bTesting) $webyep_sCharset = "iso-8859-2"; // if ($webyep_bTesting) $webyep_iForcedLanguageID = 0; if ($webyep_bDebug) { error_reporting(E_ALL & ~E_NOTICE); ini_set("display_errors", "On"); } if ($webyep_bLiveDemo) { if (isset($_SERVER["REDIRECT_URL"])) { $_SERVER["PHP_SELF"] = $_SERVER["REDIRECT_URL"]; $_SERVER["SCRIPT_NAME"] = $_SERVER["REDIRECT_URL"]; } // get live demo slot ID $sURI = $_SERVER['REQUEST_URI']; if (preg_match('|.*/' . WEBYEP_DEMOSLOT_PREFIX . '([end]{2})([0-9]+)/.*|', $sURI, $aReg)) { $webyep_sLiveDemoSlotID = $aReg[2]; if ($aReg[1] == "en") $webyep_iForcedLanguageID = 0; if ($aReg[1] == "de") $webyep_iForcedLanguageID = 1; } else $webyep_sLiveDemoSlotID = ""; } include_once(webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYApplication.php"); include_once(webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYLanguage.php"); include_once(webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYHTMLEntities.php"); // backward compatibility with 1.0.x if ( isset($webyep_sAdminPasswort) && !isset($webyep_sAdminPassword) ) { $webyep_sAdminPassword = $webyep_sAdminPasswort; } // backward compatibility with pre 1.2.2 config if (!isset($webyep_bOpenFullURLsInNewWindow)) $webyep_bOpenFullURLsInNewWindow = false; // backward compatibility with early pre releases of 1.2.2 if (isset($webyep_bOpenLongTextFullURLsInNewWindow)) $webyep_bOpenFullURLsInNewWindow = $webyep_bOpenLongTextFullURLsInNewWindow; $webyep_sVersionPostfix = ""; $_wy_sIncludePath = webyep_sConfigValue("webyep_sIncludePath"); include_once("$_wy_sIncludePath/elements/WYShortTextElement.php"); include_once("$_wy_sIncludePath/elements/WYLongTextElement.php"); include_once("$_wy_sIncludePath/elements/WYImageElement.php"); include_once("$_wy_sIncludePath/elements/WYMenuElement.php"); include_once("$_wy_sIncludePath/elements/WYLoopElement.php"); include_once("$_wy_sIncludePath/elements/WYLogonButtonElement.php"); include_once("$_wy_sIncludePath/elements/WYAttachmentElement.php"); if (file_exists("$_wy_sIncludePath/elements/WYRichTextElement.php")) include_once("$_wy_sIncludePath/elements/WYRichTextElement.php"); if (file_exists("$_wy_sIncludePath/elements/WYGalleryElement.php")) include_once("$_wy_sIncludePath/elements/WYGalleryElement.php"); if (file_exists("$_wy_sIncludePath/elements/WYAudioElement.php")) include_once("$_wy_sIncludePath/elements/WYAudioElement.php"); if (file_exists("$_wy_sIncludePath/elements/WYGuestbookElement.php")) include_once("$_wy_sIncludePath/elements/WYGuestbookElement.php"); if ($webyep_sBaseURL) { $goApp->oProgramURL->sPath = "$webyep_sBaseURL/" . (strpos($goApp->oProgramURL->sPath, "webyep-system/programm") !== false ? "programm":"program"); $goApp->oDataURL->sPath = "$webyep_sBaseURL/" . (strpos($goApp->oDataURL->sPath, "webyep-system/daten") !== false ? "daten":"data"); $goApp->oImageURL = od_clone($this->oProgramURL); $goApp->oImageURL->addComponent("images"); } // public API function webyep_bIsEditMode() { global $goApp; return $goApp->bEditMode; } // ---------- if (!function_exists("version_compare") || version_compare(PHP_VERSION, "4.2.0") < 0) { list($fUSec, $fSec) = explode(' ', microtime()); mt_srand($fSec + ((float)$fUSec * 100000)); } if (!headers_sent()) { if ($goApp->bShouldAvoidCaching()) { header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); } else { header("Last-Modified: " . gmdate("D, d M Y H:i:s", filemtime($goApp->oDataPath->sPath)) . " GMT"); } } // headers should not be sent at this point if (headers_sent() && $webyep_bDocumentPage && !preg_match("|webyep-system/.*/notice.php|", $_SERVER['PHP_SELF']) && !preg_match("|webyep-system/.*/logon.php|", $_SERVER['PHP_SELF'])) { echo $goApp->sNoticeWindowJS("HeaderProblemTitle", "HeaderProblemMessage"); } $goApp->outputWarningPanels(); if ($goApp->bEditMode && !$goApp->bAuthCheck() && !preg_match("|webyep-system/.*/logon.php|", $_SERVER['PHP_SELF']) && !preg_match("|webyep-system/.*/notice.php|", $_SERVER['PHP_SELF'])) { if ($webyep_bDocumentPage) { echo "\n"; } $goApp->bEditMode = false; } if ($webyep_bShowLogoNotice && $webyep_bDocumentPage && !preg_match("|webyep-system/.*/logon.php|", $_SERVER['PHP_SELF']) && !preg_match("|webyep-system/.*/notice.php|", $_SERVER['PHP_SELF'])) { echo $goApp->sNoticeWindowJS("LogoProblemTitle", "LogoProblemMessage"); } if ($webyep_bDocumentPage) { ob_start("webyep_outputFilter"); // LightBox --------------------------- $webyep_bUseLightBox = false; $sLightBoxSub = "opt/lightbox"; $oLightBoxPath = od_clone($goApp->oProgramPath); $oLightBoxPath->addComponent($sLightBoxSub); if ($oLightBoxPath->bExists()) { $webyep_bUseLightBox = true; $oLightBoxURL = od_clone($goApp->oProgramURL); $oLightBoxURL->addComponent($sLightBoxSub); $sLightBoxURL = $oLightBoxURL->sEURL(); $webyep_sHeadHTML .= "\n"; $webyep_sHeadHTML .= "\n"; $webyep_sHeadHTML .= "\n"; $webyep_sHeadHTML .= "\n"; $webyep_sHeadHTML .= "\n"; } // ------------------------------------ } $oExtPath = od_clone($goApp->oProgramPath); $oExtPath->removeLastComponent(); $oExtPath->removeLastComponent(); $oExtPath->addComponent("webyep-system-extensions.inc.php"); if ($oExtPath->bExists()) include_once($oExtPath->sPath); ?>