require_once Util::getRootPath()."plugins/Cloud/Cloud.class.php"; require_once Util::getRootPath()."plugins/Cloud/mCloud.class.php"; $E = mCloud::getEnvironment(); }*/ $build = rand(1, 9999999); if (Phynx::build()) { #$xml = new SimpleXMLElement(file_get_contents(Util::getRootPath()."system/build.xml")); if (isset($_COOKIE["phynx_lastSeenBuild"]) and $_COOKIE["phynx_lastSeenBuild"] != Phynx::build()) { $isCloud = file_exists(Util::getRootPath() . "plugins/Cloud/Cloud.class.php"); header("Cache-Control: no-cache, must-revalidate"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); setcookie("phynx_lastSeenBuild", Phynx::build(), time() + 3600 * 24 * 365); //header("location: ". basename(__FILE__)); $button = "\n\t\t\t<div\n\t\t\t\tonclick=\"document.location.reload(true);\"\n\t\t\t\tonmouseover=\"this.style.backgroundColor = '#d7eac5';\"\n\t\t\t\tonmouseout=\"this.style.backgroundColor = 'transparent';\"\n\t\t\t\tstyle=\"width:120px;padding:10px;border:1px solid green;border-radius:5px;box-shadow:2px 2px 4px grey;margin-top:20px;cursor:pointer;font-weight:bold;\">\n\t\t\t\t\n\t\t\t\t<img src=\"./images/navi/navigation.png\" style=\"float:left;margin-top:-8px;margin-right:10px;\" />Weiter\n\t\t\t</div>"; emoFatalError(T::_("Diese Anwendung wurde aktualisiert"), "Der Administrator dieser Anwendung hat seit Ihrem letzten Besuch eine Aktualisierung eingespielt.</p>\n\t\t\t" . (!$isCloud ? "<p style=\"margin-left:80px;\">Bitte entscheiden Sie sich nun für eine der beiden Möglichkeiten,<br />abhängig davon, ob Sie diese Anwendung eingerichtet haben, oder eine andere Person:</p>" : "") . "\n\t\t\t<div style=\"width:800px;\">\n\t\t\t\t" . (!$isCloud ? "<div style=\"width:350px;float:right;\">\n\t\t\t\t\t<h2>Administrator</h2>\n\t\t\t\t\t<p>Wenn Sie diese Anwendung eingerichtet haben und das Admin-Passwort kennen, gehen Sie wie folgt vor, um die Aktualisierung abzuschließen:</p><ol><li>Melden Sie sich mit dem <strong>Admin-Benutzer</strong> am System an.</li><li>Aktualisieren Sie im <strong>Installation-Plugin</strong> die Tabellen mit dem Knopf <strong>\"alle Tabellen aktualisieren\"</strong>.</li><ol>\n\t\t\t\t\t{$button}\n\t\t\t\t</div>" : "") . "\n\t\t\t\t<div style=\"width:350px;\">\n\t\t\t\t\t<h2 style=\"clear:none;\">Benutzer</h2>\n\t\t\t\t\t<p>Wenn Sie ein Benutzer dieser Anwendung sind und sie nicht selbst eingerichtet haben, initialisiert sich das System nach einem Klick auf den nachfolgenden Knopf neu und Sie können normal weiterarbeiten.</p>\n\t\t\t\t\t{$button}\n\t\t\t\t</div>\n\t\t\t<div style=\"clear:both;\"></div>\n\t\t\t</div>", T::_("Diese Anwendung wurde aktualisiert"), false, "ok"); } elseif (!isset($_COOKIE["phynx_lastSeenBuild"])) { setcookie("phynx_lastSeenBuild", Phynx::build(), time() + 3600 * 24 * 365); } $build = Phynx::build(); } $validUntil = Environment::getS("validUntil", null); if ($_SESSION["S"]->checkIfUserLoggedIn() == false) { $_SESSION["CurrentAppPlugins"]->scanPlugins(); } $updateTitle = true; $title = Environment::getS("renameFramework", "phynx by Furtmeier Hard- und Software"); if (isset($_GET["title"]) and preg_match("/[a-zA-Z0-9 _-]*/", $_GET["title"])) { $title = $_GET["title"]; $updateTitle = false; }
$P->loadPlugin("poolPi", "Steuerung"); $P->loadPlugin("poolPi", "Anzeige"); $servers = ""; $AC = anyC::get("poolSteuerung"); try { while ($S = $AC->n()) { $servers .= ($servers != "" ? ",\n\t\t\t\t\t" : "") . $S->A("poolSteuerungTyp") . ": \"" . $S->A("poolSteuerungIP") . "\""; } } catch (NoDBUserDataException $e) { emoFatalError("poolPi kann leider keine Verbindung zur Datenbank herstellen", "Es wurden noch keine Datenbankzugangsdaten eingetragen.<br />Bitte benutzen Sie das Installations-Plugin im Admin-Bereich von <a href=\"./backend\">poolPi</a>", "poolPi"); } catch (TableDoesNotExistException $e) { emoFatalError("poolPi kann leider eine oder mehrere Tabellen nicht finden", "Die poolPi Datenbank-Tabellen wurden vermutlich nicht korrekt angelegt.<br />Bitte benutzen Sie das Installations-Plugin im Admin-Bereich von <a href=\"./backend\">poolPi</a>", "poolPi"); } catch (FieldDoesNotExistException $e) { die("Ein oder mehrere Felder wurden in der Datenbank nicht gefunden.<br>Bitte benutzen Sie das Installations-Plugin von <a href=\"{$phpFWPath}\">multiCMS</a>:" . $e->getErrorMessage()); } catch (Exception $e) { emoFatalError("Es ist leider ein unvorhergesehener Fehler aufgetreten", "Falls Ihnen folgender Fehler nichts sagt, wenden Sie sich bitte mit der Fehlermeldung an den Support:<h2>" . get_class($e) . "</h2><pre>" . $e->getTraceAsString() . "</pre>", "poolPi"); } $left = ""; $right = ""; $AC = anyC::get("poolAnzeige", "poolAnzeigeTyp", "row"); $AC->addOrderV3("poolAnzeigeOrder"); $AC->addOrderV3("poolAnzeigeID"); while ($A = $AC->n()) { $left .= poolPi::row($A); } $AC = anyC::get("poolAnzeige", "poolAnzeigeTyp", "col"); $AC->addOrderV3("poolAnzeigeOrder"); $AC->addOrderV3("poolAnzeigeID"); $A = $AC->n(); if ($A != null) { $right = poolPi::col($A);
} $GLOBALS["phynxLogPhpErrors"] = true; if (defined("PHYNX_QUERY_PARSER")) { $_GET = phynxParseStr($_SERVER["QUERY_STRING"]); } $physion = "default"; if (isset($_GET["physion"])) { $physion = $_GET["physion"]; } if (session_name() == get_cfg_var("session.name")) { session_name("phynx_" . sha1(__FILE__) . ($physion != "default" ? "_{$physion}" : "")); } spl_autoload_register("phynxAutoloader"); if (ini_get("open_basedir") == "" or ini_get("session.save_path") != "" and strpos(ini_get("open_basedir"), ini_get("session.save_path")) !== false) { if (!is_writable(session_save_path()) and (!file_exists(dirname(__FILE__) . "/session") or !is_writable(dirname(__FILE__) . "/session"))) { emoFatalError("Sitzungs-Erstellung fehlgeschlagen", "Das Sitzungs-Verzeichnis (" . session_save_path() . ") Ihres Webservers ist leider nicht beschreibbar.<br />Bitte melden Sie dies Ihrem Webhoster.<br /><br />Um das Problem ohne Webhoster zu lösen, erstellen Sie das Verzeichnis /system/session<br />im Verzeichnis dieser Anwendung und machen es durch den Webserver beschreibbar (mindestens Modus 755, eventuell ist auch 777 notwendig).<br />Stellen Sie dabei sicher, dass es von Außerhalb nicht erreichbar ist (zum Beispiel durch eine .htaccess-Datei).", "Sitzungs-Fehler", true); } if (!is_writable(session_save_path())) { session_save_path(dirname(__FILE__) . "/session"); } } if (isset($_POST["class"]) and isset($_POST["method"]) and $_POST["class"] == "Users" and $_POST["method"] == "doLogin" or isset($_GET["class"]) and isset($_GET["method"]) and $_GET["class"] == "Users" and $_GET["method"] == "doLogin") { unset($_COOKIE[ini_get("session.name")]); } if (!defined("PHYNX_NO_SESSION_RELOCATION") and ini_get("session.save_path") != "" and (ini_get("open_basedir") == "" or strpos(ini_get("open_basedir"), ini_get("session.save_path")) !== false) and isset($_COOKIE[ini_get("session.name")]) and !file_exists(ini_get("session.save_path") . "/sess_" . $_COOKIE[ini_get("session.name")]) and (!isset($_COOKIE["phynx_relocate"]) or time() - $_COOKIE["phynx_relocate"] >= 3) and file_exists(ini_get("session.save_path"))) { unset($_COOKIE[ini_get("session.name")]); session_start(); if (basename($_SERVER["SCRIPT_FILENAME"]) == "index.php") { setcookie("phynx_relocate", time(), time() + 600); $CH = Util::getCloudHost(); if ($CH and isset($CH->appPrefix) and isset($_GET["cloud"])) {
<?php #session_name("phim_".sha1(__FILE__)); define("PHYNX_NO_SESSION_RELOCATION", true); require "../../system/connect.php"; addClassPath(Util::getRootPath() . "ubiquitous/phim"); $username = filter_input(INPUT_GET, "username"); $password = sha1(filter_input(INPUT_GET, "password")); if (filter_input(INPUT_GET, "token")) { $AC = anyC::get("phimUser", "phimUserToken", filter_input(INPUT_GET, "token")); $AC->addAssocV3("phimUserActive", "=", "1"); $U = $AC->n(); if ($U != null) { $AnyUser = anyC::getFirst("User"); $Us = new Users(); $login = $Us->doLogin(array("loginUsername" => $AnyUser->A("username"), "loginSHAPassword" => $AnyUser->A("SHApassword"), "loginPWEncrypted" => 1)); $user = new User($U->A("phimUserUserID")); $user->loadMe(false); $username = $user->A("username"); $password = $user->A("SHApassword"); } } $U = new Users(); $login = $U->doLogin(array("loginUsername" => $username, "loginSHAPassword" => $password, "loginPWEncrypted" => 1, "anwendung" => "lightCRM")); if (!$login) { emoFatalError("Sorry, ich kenne dich nicht!", "Login fehlgeschlagen! Vermutlich sind die Zugangsdaten falsch.", "Login fehlgeschlagen", false); } $p = new mphimGUI(); $p->chatPopup("../");
} exit; } else { die("SESSION EXPIRED"); } } ini_set("zend.ze1_compatibility_mode", "Off"); ini_set("display_errors", "On"); header("Content-Type: text/html; charset=UTF-8"); error_reporting(E_ALL); set_error_handler("log_error"); if (function_exists('date_default_timezone_set')) { date_default_timezone_set('Europe/Berlin'); } if (!function_exists("array_fill_keys")) { emoFatalError("I'm sorry, but your PHP version is too old.", "You need at least PHP version 5.2.0 to run this program.<br />You are using " . phpversion() . ". Please talk to your provider about this.", "phynx"); } function log_error($errno, $errmsg, $filename, $linenum) { if (!$GLOBALS["phynxLogPhpErrors"]) { return; } #if(strpos($filename, "PortscanGUI.class.php") !== false AND strpos($errmsg,"fsockopen") !== false) return; $errortype = array(E_ERROR => 'Error', E_WARNING => 'Warning', E_PARSE => 'Parsing Error', E_NOTICE => 'Notice', E_CORE_ERROR => 'Core Error', E_CORE_WARNING => 'Core Warning', E_COMPILE_ERROR => 'Compile Error', E_COMPILE_WARNING => 'Compile Warning', E_USER_ERROR => 'User Error', E_USER_WARNING => 'User Warning', E_USER_NOTICE => 'User Notice', E_STRICT => 'Runtime Notice'); if (defined('E_RECOVERABLE_ERROR')) { $errortype[E_RECOVERABLE_ERROR] = 'Catchable Fatal Error'; } if (defined('E_DEPRECATED')) { $errortype[E_DEPRECATED] = 'Function Deprecated'; } if (!isset($_SESSION["phynx_errors"])) {
if (isset($_GET["getLink"]) and isset($_GET["fromPage"]) or isset($_GET["manualDL"])) { if (isset($_GET["manualDL"])) { $result = $RSF->download($_GET["manualDL"]); $dled = $_GET["manualDL"]; } else { $result = $Adapter->download($RSF, $_GET["getLink"], $_GET["fromPage"]); $dled = $_GET["getLink"]; } if ($result !== true) { $ILink = new HTMLInput("manualDL"); $ILink->id("manualDL"); $ILink->style("border:1px solid grey;width:400px;padding:2px;"); $IGo = new HTMLInput("go", "button", "Go"); $IGo->style("border:1px solid grey;margin-left:10px;padding:2px;"); $IGo->onclick("if(document.getElementById('manualDL').value != '') document.location.href='?RSSFilterID={$_GET['RSSFilterID']}&manualDL='+document.getElementById('manualDL').value; else alert('Please input a link!');"); $html = emoFatalError($result[0] . "</h1><p>Look for <b>" . basename($dled) . "</b></p><p>Please input the link here: " . $ILink . $IGo . "</p><h1>", $result[1], "trinityDB automatic downloader", false, false); $html = str_replace("<!-- MORE SPACE -->", "<iframe src=\"{$_GET['fromPage']}\" style=\"width:100%;border:0px;height:550px;margin-top:5px;\"></iframe>", $html); die($html); } else { echo "<!DOCTYPE html>\n\t\t<html lang=\"en\">\n\t\t\t<head>\n\t\t\t\t<meta charset=\"utf-8\" />\n\t\t\t\t<title>trinityDB automatic downloader</title>" . RSSFilter::getStyle() . "\n\t\t\t</head>\n\t\t\t<body>\n\t\t\t\t<div class=\"backgroundColor0\">\n\t\t\t\t\t<h1>Download OK</h1>\n\t\t\t\t\t<p>" . basename($dled) . "</p>\n\t\t\t\t\t<p>From <a href=\"{$_GET['fromPage']}\">{$_GET['fromPage']}</a></p>\n\t\t\t\t</div>\n\t\t\t</body>\n\t\t</html>"; } exit; } $tvdbUnavailable = false; $tvdb = new thetvdbcomAdapter(); $nonupdated = 0; try { $nonupdated = $tvdb->update(); } catch (Exception $ex) { $tvdbUnavailable = $ex->getMessage(); }
public function getCMSHTML() { $Template = new Template($this->A->TemplateID); if ($Template->getA() == null) { emoFatalError("multiCMS kann die Seite leider nicht erzeugen", "Das ausgewählte Domain-Template wurde nicht gefunden.<br />Bitte wählen Sie ein neues Template bei der Domain " . $this->A("url") . " (" . $this->A("title") . ") aus", "multiCMS", "./multiCMS"); } #die("The selected domain-template does not exist."); $html = $Template->getA()->html; $navi = new mNavigationGUI(); $Seite = new SeiteGUI($this->seite != 0 ? $this->seite : $this->A->startseite); #$Scripts = new ScriptsGUI(); $Seite->loadMe(); if ($Seite->A("permalink") != "" and !isset($_GET["permalink"]) and $this->A->startseite != $Seite->getID()) { $ex = explode("\n", $this->A("url")); header("HTTP/1.1 301 Moved Permanently"); header("Location: http" . ((isset($_SERVER["HTTPS"]) and $_SERVER["HTTPS"] == "on") ? "s" : "") . "://{$ex['0']}/" . $this->A("permalinkPrefix") . $Seite->A("permalink")); header("Connection: close"); exit; } if ($Seite->getA() == null) { header("HTTP/1.0 404 Not Found"); emoFatalError("Die gesuchte Seite kann leider nicht gefunden werden", "Die Seite, die Sie suchen, existiert nicht (mehr).<br />Vielleicht möchten Sie die Suche auf der <a href=\"/\">Startseite</a> fortsetzen.", "multiCMS", "./multiCMS"); } if (strpos($html, "%%%SEITE%%%") === false) { $html = str_replace("%%%PAGE%%%", $Seite->getCMSHTML($this->A->startseite, $this->ID), $html); } else { $html = str_replace("%%%SEITE%%%", $Seite->getCMSHTML($this->A->startseite, $this->ID), $html); } $metaTagDesc = $Seite->A("metaTagDescription"); if ($metaTagDesc == "") { $StartSeite = new Seite($this->A->startseite); $StartSeite->loadMe(); $metaTagDesc = $StartSeite->A("metaTagDescription"); } $html = str_replace("%%%NAVIGATION%%%", $navi->getCMSHTML(0, $this->seite != 0 ? $this->seite : $this->A->startseite, $this->ID), $html); $html = str_replace("%%%HEADER%%%", $this->A->header, $html); $html = str_replace("%%%TITLE%%%", ($this->A->title != "" ? $this->A->title . " - " : "") . $Seite->A("header"), $html); #$html = str_replace("%%%SCRIPTS%%%",$Scripts->getCMSHTML($this->ID), $html); $html = str_replace("%%%DESCRIPTION%%%", $metaTagDesc, $html); $html = SeiteGUI::replaceFunctionCalls($html, $this); if (isset($_GET["contentOnly"])) { echo $Seite->getCMSHTML($this->A->startseite, $this->ID); } else { echo $html; } }
header("HTTP/1.1 404 Not Found"); emoFatalError("Die gesuchte Seite kann leider nicht gefunden werden", "Die Seite, die Sie suchen, existiert nicht (mehr).<br />Vielleicht möchten Sie die Suche auf der <a href=\"/\">Startseite</a> fortsetzen.", "multiCMS", "./multiCMS"); #header("Connection: close"); #exit(); #die("Die gewünschte Seite existiert nicht!"); } $_GET["p"] = $resolvedPL->getID(); if ($ac->numLoaded() != 1) { die("der Permalink {$_GET['permalink']} ist nicht eindeutig und verweist auf " . $ac->numLoaded() . " Seiten!"); } } if (isset($_GET["p"])) { $domain->setSeite($_GET["p"]); } $domain->getCMSHTML(); } catch (Exception $e) { switch (get_class($e)) { case "NoDBUserDataException": emoFatalError("multiCMS kann leider keine Verbindung zur Datenbank herstellen", "Es wurden noch keine Datenbankzugangsdaten eingetragen.<br />Bitte benutzen Sie das Installations-Plugin im Admin-Bereich von <a href=\"{$phpFWPath}\">multiCMS</a>", "multiCMS", $phpFWPath); break; case "TableDoesNotExistException": emoFatalError("multiCMS kann leider eine oder mehrere Tabellen nicht finden", "Die multiCMS Datenbank-Tabellen wurden vermutlich nicht korrekt angelegt.<br />Bitte benutzen Sie das Installations-Plugin im Admin-Bereich von <a href=\"{$phpFWPath}\">multiCMS</a>", "multiCMS", $phpFWPath); break; case "FieldDoesNotExistException": die("Ein oder mehrere Felder wurden in der Datenbank nicht gefunden.<br />Bitte benutzen Sie das Installations-Plugin von <a href=\"{$phpFWPath}\">multiCMS</a>:" . $e->getErrorMessage()); break; default: emoFatalError("Es ist leider ein unvorhergesehener Fehler aufgetreten", "Falls Ihnen folgender Fehler nichts sagt, wenden Sie sich bitte mit der Fehlermeldung an das <a href=\"http://forum.phynx.de\">Support-Forum</a>:<h2>" . get_class($e) . "</h2><pre>" . $e->getTraceAsString() . "</pre>", "multiCMS", $phpFWPath); break; } }