function getCMSHTML() { $key = substr(Util::eK(), 0, 5); if (!isset($_GET["key"]) or $key != $_GET["key"]) { return "<span style=\"color:red;\">Bitte geben Sie den richtigen Schlüssel zum Aufrufen der Seite in der Adresszeile an.</span>"; } registerClassPath("Einkaufszettel", Util::getRootPath() . "fheME/Einkaufszettel/Einkaufszettel.class.php"); /* registerClassPath("GSRaumgruppe", Util::getRootPath()."FCalc/GSRaumgruppe/GSRaumgruppe.class.php"); registerClassPath("ObjektL", Util::getRootPath()."personalKartei/ObjekteL/ObjektL.class.php"); registerClassPath("mGSTaetigkeitGUI", Util::getRootPath()."FCalc/GSTaetigkeit/mGSTaetigkeitGUI.class.php"); registerClassPath("GSTaetigkeit", Util::getRootPath()."FCalc/GSTaetigkeit/GSTaetigkeit.class.php"); * */ $AC = anyC::get("Einkaufszettel"); $AC->addAssocV3("EinkaufszettelBought", "=", "0"); $AC->addOrderV3("EinkaufszettelName"); $html = "<style type=\"text/css\">\n\t\t\t\tbody {\n\t\t\t\t\tmargin:0px;\n\t\t\t\t\tmargin-top:10px;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.entry {\n\t\t\t\t\tpadding:10px;\n\t\t\t\t\tborder-top-width:1px;\n\t\t\t\t\tborder-top-style:solid;\n\t\t\t\t\tborder-bottom-width:1px;\n\t\t\t\t\tborder-bottom-style:solid;\n\t\t\t\t\tfont-size:2em;\n\t\t\t\t\tmargin-bottom:10px;\n\t\t\t\t\tcursor:pointer;\n\t\t\t\t\t-webkit-touch-callout: none;\n\t\t\t\t\t-webkit-user-select: none;\n\t\t\t\t\t-khtml-user-select: none;\n\t\t\t\t\t-moz-user-select: none;\n\t\t\t\t\t-ms-user-select: none;\n\t\t\t\t\tuser-select: none;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.entryTouch {\n\t\t\t\t\tbackground-color: #c5d674;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<div id=\"einkaufsliste\">"; while ($E = $AC->getNextEntry()) { $html .= "<div id=\"entry" . $E->getID() . "\" onclick=\"CustomerPage.rme('setBought', [" . $E->getID() . "], function(){ \$('#entry" . $E->getID() . "').remove(); if(\$('#einkaufsliste .nonEmpty').length == 0) \$('#emptyEntry').show(); });\" class=\"nonEmpty entry backgroundColor1 borderColor1\">" . ($E->A("EinkaufszettelMenge") > 1 ? $E->A("EinkaufszettelMenge") . " x " : "") . $E->A("EinkaufszettelName") . ($E->A("EinkaufszettelNameDetails") != "" ? "<br /><small style=\"color:grey;\">" . $E->A("EinkaufszettelNameDetails") . "</small>" : "") . "</div>"; } $html .= "<div style=\"" . ($AC->numLoaded() == 0 ? "" : "display:none;") . "\" class=\"entry backgroundColor1 borderColor1\" id=\"emptyEntry\">Die Einkaufsliste enthält keine Einträge.<br /><small style=\"color:grey;\">" . Util::CLDateParser(time()) . "</small></div>"; $html .= "</div>"; return $html . OnEvent::script("\$('.entry').hammer().on('touch', function(){ \$(this).addClass('entryTouch'); }); \$('.entry').hammer().on('release', function(){ \$(this).removeClass('entryTouch'); });"); }
function getCMSHTML() { $key = substr(Util::eK(), 0, 5); if (!isset($_GET["key"]) or $key != $_GET["key"]) { return "<span style=\"color:red;\">Bitte geben Sie den richtigen Schlüssel zum Aufrufen der Seite in der Adresszeile an.</span>"; } registerClassPath("Einkaufszettel", Util::getRootPath() . "fheME/Einkaufszettel/Einkaufszettel.class.php"); /* registerClassPath("GSRaumgruppe", Util::getRootPath()."FCalc/GSRaumgruppe/GSRaumgruppe.class.php"); registerClassPath("ObjektL", Util::getRootPath()."personalKartei/ObjekteL/ObjektL.class.php"); registerClassPath("mGSTaetigkeitGUI", Util::getRootPath()."FCalc/GSTaetigkeit/mGSTaetigkeitGUI.class.php"); registerClassPath("GSTaetigkeit", Util::getRootPath()."FCalc/GSTaetigkeit/GSTaetigkeit.class.php"); * */ $AC = anyC::get("Einkaufszettel"); $AC->addAssocV3("EinkaufszettelBought", "=", "0"); $AC->addJoinV3("EinkaufszettelKategorie", "EinkaufszettelEinkaufszettelKategorieID", "=", "EinkaufszettelKategorieID"); $AC->addOrderV3("EinkaufszettelKategorieName"); $AC->addOrderV3("EinkaufszettelName"); $html = "<style type=\"text/css\">\n\t\t\t\tbody {\n\t\t\t\t\tmargin:0px;\n\t\t\t\t\tmargin-top:10px;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@media only screen and (max-width: 360px) {\n\t\t\t\t\thtml {\n\t\t\t\t\t\tzoom: .8;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t.entry {\n\t\t\t\t\tpadding:10px;\n\t\t\t\t\tborder-top-width:1px;\n\t\t\t\t\tborder-top-style:solid;\n\t\t\t\t\tborder-bottom-width:1px;\n\t\t\t\t\tborder-bottom-style:solid;\n\t\t\t\t\tfont-size:2em;\n\t\t\t\t\tmargin-bottom:10px;\n\t\t\t\t\tcursor:pointer;\n\t\t\t\t\t-webkit-touch-callout: none;\n\t\t\t\t\t-webkit-user-select: none;\n\t\t\t\t\t-khtml-user-select: none;\n\t\t\t\t\t-moz-user-select: none;\n\t\t\t\t\t-ms-user-select: none;\n\t\t\t\t\tuser-select: none;\n\t\t\t\t\t-webkit-tap-highlight-color:rgba(255,255,255,0);\n\t\t\t\t\twidth:100%;\n\t\t\t\t\tbox-sizing:border-box;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.entryRestore {\n\t\t\t\t\tborder-top-width:1px;\n\t\t\t\t\tborder-top-style:solid;\n\t\t\t\t\tborder-bottom-width:1px;\n\t\t\t\t\tborder-bottom-style:solid;\n\t\t\t\t\tpadding:10px;\n\t\t\t\t\tfont-size:2em;\n\t\t\t\t\tmargin-bottom:10px;\n\t\t\t\t\tcursor:pointer;\n\t\t\t\t\t-webkit-touch-callout: none;\n\t\t\t\t\t-webkit-user-select: none;\n\t\t\t\t\t-khtml-user-select: none;\n\t\t\t\t\t-moz-user-select: none;\n\t\t\t\t\t-ms-user-select: none;\n\t\t\t\t\tuser-select: none;\n\t\t\t\t\tcolor:#444;\n\t\t\t\t\t-webkit-tap-highlight-color:rgba(255,255,255,0);\n\t\t\t\t\twidth:100%;\n\t\t\t\t\tbox-sizing:border-box;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.backgroundColor4 {\n\t\t\t\t\tbackground-color: #eee;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.entryTouch {\n\t\t\t\t\tbackground-color: #c5d674;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.borderColor0 {\n\t\t\t\t\tborder-color:white;\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t<div id=\"einkaufsliste\">"; $B = new Button("Wiederherstellen", "undo", "iconicL"); $last = null; while ($E = $AC->getNextEntry()) { if ($last != $E->A("EinkaufszettelKategorieName") and $last !== null) { $html .= "<h1 style=\"padding-left:10px;padding-top:15px;padding-bottom:7px;\">" . $E->A("EinkaufszettelKategorieName") . "</h1>"; } $html .= "\n\t\t\t\t<div\n\t\t\t\t\tid=\"entry" . $E->getID() . "\"\n\t\t\t\t\tontouchend=\"if(Touch.cancelNext) return; CustomerPage.rme('setBought', [" . $E->getID() . "], function(){ \$('#entry" . $E->getID() . "').hide(); \$('#restoreEntry" . $E->getID() . "').show(); \$('#emptyEntry').hide(); if(\$('#einkaufsliste .nonEmpty').length == 0) \$('#emptyEntry').show(); });\"\n\t\t\t\t\tclass=\"nonEmpty entry backgroundColor1 borderColor1\">\n\t\t\t\t\t\n\t\t\t\t\t" . ($E->A("EinkaufszettelMenge") > 1 ? $E->A("EinkaufszettelMenge") . " x " : "") . $E->A("EinkaufszettelName") . ($E->A("EinkaufszettelNameDetails") != "" ? "<br /><small style=\"color:grey;\">" . $E->A("EinkaufszettelNameDetails") . "</small>" : "") . "\n\t\t\t\t</div>\n\t\t\t\t<div \n\t\t\t\t\tclass=\"nonEmpty entryRestore backgroundColor4 borderColor0\"\n\t\t\t\t\tontouchend=\"if(Touch.cancelNext) return; CustomerPage.rme('setUnBought', [" . $E->getID() . "], function(){ \$('#entry" . $E->getID() . "').show(); \$('#restoreEntry" . $E->getID() . "').hide(); \$('#emptyEntry').hide(); if(\$('#einkaufsliste .nonEmpty').length == 0) \$('#emptyEntry').show(); });\"\n\t\t\t\t\tid=\"restoreEntry" . $E->getID() . "\" style=\"display:none;\">" . $E->A("EinkaufszettelName") . " {$B}</div>"; $last = $E->A("EinkaufszettelKategorieName"); } $html .= "<div style=\"" . ($AC->numLoaded() == 0 ? "" : "display:none;") . "\" class=\"entry backgroundColor1 borderColor1\" id=\"emptyEntry\">Die Einkaufsliste enthält keine Einträge.<br /><small style=\"color:grey;\">" . Util::CLDateParser(time()) . "</small></div>"; $html .= "</div>"; return $html . OnEvent::script("\n\t\tvar Touch = {};\n\t\t\n\t\t\$(document).on('touchstart mousedown', '[ontouchend]', function(ev){\n\t\t\t\$(this).addClass('entryTouch'); \n\t\t\t\n\t\t\tTouch.startPos = [ev.clientX, ev.clientY];\n\t\t\tTouch.cancelNext = false;\n\t\t\tTouch.inAction = this;\n\t\t\n\t\t}); \n\t\t\n\t\t\$(document).on('touchend mouseup', '[ontouchend]', function(ev){\n\t\t\t\$(this).removeClass('entryTouch');\n\t\t\tTouch.inAction = false;\n\t\t});\n\t\t\t\n\t\t\$(document).on('touchmove mousemove', '[ontouchend]', function(ev){\n\t\t\tif(!Touch.inAction)\n\t\t\t\treturn;\n\n\t\t\tif(Math.abs(ev.clientX - Touch.startPos[0]) < 15 && Math.abs(ev.clientY - Touch.startPos[1]) < 15)\n\t\t\t\treturn;\n\n\t\t\tTouch.cancelNext = true;\n\t\t\t\$('.entryTouch').removeClass('entryTouch');\n\t\t\t\n\t\t\t//\$(ev.target).trigger('touchend');\n\t\t});\n\t"); }
function classes() { registerClassPath("Adresse", Util::getRootPath() . "open3A/Adressen/Adresse.class.php"); registerClassPath("AdresseAdapter", Util::getRootPath() . "open3A/Adressen/AdresseAdapter.class.php"); registerClassPath("Kunden", Util::getRootPath() . "open3A/Kunden/Kunden.class.php"); registerClassPath("Kappendix", Util::getRootPath() . "open3A/Kunden/Kappendix.class.php"); registerClassPath("mKappendix", Util::getRootPath() . "open3A/Kunden/mKappendix.class.php"); registerClassPath("mKappendixGUI", Util::getRootPath() . "open3A/Kunden/mKappendixGUI.class.php"); registerClassPath("Auftrag", Util::getRootPath() . "open3A/Auftraege/Auftrag.class.php"); registerClassPath("PDFixUser", Util::getRootPath() . "open3A/PDFix/PDFixUser.class.php"); registerClassPath("PDFixUserDB", Util::getRootPath() . "open3A/PDFix/PDFixUserDB.class.php"); }
function classes() { #registerClassPath("Seminar", Util::getRootPath()."MMDB/Seminare/Seminar.class.php"); #registerClassPath("SeminarGUI", Util::getRootPath()."MMDB/Seminare/SeminarGUI.class.php"); #registerClassPath("STeilnehmer", Util::getRootPath()."MMDB/Seminare/STeilnehmer.class.php"); registerClassPath("Bestellung", Util::getRootPath() . "ubiquitous/Bestellungen/Bestellung.class.php"); addClassPath(Util::getRootPath() . "MMDB/Seminare/"); addClassPath(Util::getRootPath() . "open3A/Adressen/"); addClassPath(Util::getRootPath() . "open3A/Kunden/"); addClassPath(Util::getRootPath() . "open3A/Auftraege/"); addClassPath(Util::getRootPath() . "open3A/Stammdaten/"); addClassPath(Util::getRootPath() . "open3A/Textbausteine/"); addClassPath(Util::getRootPath() . "open3A/Kategorien/"); addClassPath(Util::getRootPath() . "open3A/Brief/"); }
function addClassPath($absolutePath) { $dir = new DirectoryIterator($absolutePath); if ($absolutePath[strlen($absolutePath) - 1] != "/") { $absolutePath .= "/"; } foreach ($dir as $fileinfo) { if ($fileinfo->isDot()) { continue; } if (strpos($fileinfo->getFilename(), ".class.php") === false) { continue; } registerClassPath(str_replace(".class.php", "", $fileinfo->getFilename()), $fileinfo->getPathname()); } }
function findClass($class_name) { if (strpos($class_name, 'PHPExcel') === 0) { return false; } $root = str_replace("system" . DIRECTORY_SEPARATOR . "basics.php", "", __FILE__); if (isset($_SESSION["classPaths"][$class_name])) { $path = $_SESSION["classPaths"][$class_name]; if (file_exists($path)) { require_once $path; } else { throw new ClassNotFoundException($class_name); } return 1; } $standardPaths = array(); $standardPaths[] = $root . "classes/backend/"; $standardPaths[] = $root . "classes/frontend/"; $standardPaths[] = $root . "classes/toolbox/"; $standardPaths[] = $root . "classes/interfaces/"; $standardPaths[] = $root . "libraries/"; $standardPaths[] = $root . "libraries/fpdf/"; $standardPaths[] = $root . "libraries/iban/"; $standardPaths[] = $root . "customizer/"; //first look here for customizers! $standardPaths[] = $root . "specifics/"; $standardPaths[] = $root . "classes/exceptions/"; $standardPaths[] = $root . "libraries/geshi/"; if (isset($_SESSION["phynx_addClassPaths"])) { $standardPaths = array_merge($standardPaths, $_SESSION["phynx_addClassPaths"]); } foreach ($standardPaths as $k => $v) { $path = "{$v}" . $class_name . '.class.php'; if (is_file($path)) { require_once $path; registerClassPath($class_name, $path); return 1; } } if (isset($_SESSION["CurrentAppPlugins"]) and count($_SESSION["CurrentAppPlugins"]->getFolders()) > 0) { foreach ($_SESSION["CurrentAppPlugins"]->getFolders() as $key => $value) { $path = $root . "plugins/{$value}/{$class_name}.class.php"; if (is_file($path)) { require_once $path; registerClassPath($class_name, $path); return 1; } if ($_SESSION["applications"]->getActiveApplication() != "nil") { $path = $root . "" . $_SESSION["applications"]->getActiveApplication() . "/{$value}/{$class_name}.class.php"; if (is_file($path)) { require_once $path; registerClassPath($class_name, $path); return 1; } } } } else { $fp = opendir($root . "plugins/"); while (($file = readdir($fp)) !== false) { if ($file == "." or $file == "..") { continue; } if (is_dir($root . "plugins/{$file}")) { $fp2 = opendir($root . "plugins/{$file}/"); while (($file2 = readdir($fp2)) !== false) { if (!is_dir($root . "plugins/{$file}/{$file2}")) { continue; } $path = $root . "plugins/{$file}/{$file2}/{$class_name}.class.php"; if (is_file($path)) { require_once $path; registerClassPath($class_name, $path); return 1; } } } } } if ($class_name == "FPDF") { require_once $root . "libraries/fpdf/fpdf.php"; return 1; } if ($class_name == "htmlMimeMail5") { require_once $root . "libraries/mailer/htmlMimeMail5.php"; return 1; } if ($class_name == "PHPMailer") { require_once $root . "libraries/mailer/PHPMailer.class.php"; return 1; } if (preg_match("/^i[A-Z].*/", $class_name)) { $_SESSION["messages"]->addMessage("Warning: Creating interface {$class_name}"); eval('interface ' . $class_name . ' { } '); } else { eval('class ' . $class_name . ' { ' . ' public function __construct() { ' . ' throw new ClassNotFoundException("' . $class_name . '"); ' . ' } ' . '} '); } }
function getCMSHTML() { registerClassPath("GSRaumgruppe", Util::getRootPath() . "FCalc/GSRaumgruppe/GSRaumgruppe.class.php"); registerClassPath("GSRaumgruppe", Util::getRootPath() . "FCalc/GSRaumgruppe/GSRaumgruppe.class.php"); registerClassPath("ObjektL", Util::getRootPath() . "personalKartei/ObjekteL/ObjektL.class.php"); registerClassPath("mGSTaetigkeitGUI", Util::getRootPath() . "FCalc/GSTaetigkeit/mGSTaetigkeitGUI.class.php"); registerClassPath("GSTaetigkeit", Util::getRootPath() . "FCalc/GSTaetigkeit/GSTaetigkeit.class.php"); registerClassPath("GSQMPruefer", Util::getRootPath() . "FCalc/GSQM/GSQMPruefer.class.php"); $html = "\n\t\t<script src=\"./lib/jquery.signaturepad.min.js\"></script>\n\t\t<style type=\"text/css\">\n\t\t\th3 {\n\t\t\t\tpadding:7px;\n\t\t\t\tmargin-top:30px;\n\t\t\t\tclear:both;\n\t\t\t\tborder-bottom:1px solid #97a652;\n\t\t\t\tmargin-left:-10px;\n\t\t\t\tmargin-right:-10px;\n\t\t\t\tbackground-color:rgb(" . mGSTaetigkeitGUI::$fillColor[0] . ", " . mGSTaetigkeitGUI::$fillColor[1] . ", " . mGSTaetigkeitGUI::$fillColor[2] . ");\n\t\t\t}\n\t\t\t\n\t\t\t.backgroundColor1 {\n\t\t\t\tbackground-color:rgb(" . mGSTaetigkeitGUI::$fillColor[0] . ", " . mGSTaetigkeitGUI::$fillColor[1] . ", " . mGSTaetigkeitGUI::$fillColor[2] . ");\n\t\t\t}\n\t\t\t\n\t\t\th4 {\n\t\t\t\tpadding-top:15px;\n\t\t\t\tpadding-bottom:15px;\n\t\t\t}\n\t\t\t\n\t\t\t.frameRight td {\n\t\t\t\tpadding-left:3px;\n\t\t\t\tpadding-top:3px;\n\t\t\t\tpadding-bottom:3px;\n\t\t\t\tcursor:pointer;\n\t\t\t}\n\t\t\t\n\t\t\t.frameRight tr:hover {\n\t\t\t\tbackground-color:rgb(" . mGSTaetigkeitGUI::$fillColor[0] . ", " . mGSTaetigkeitGUI::$fillColor[1] . ", " . mGSTaetigkeitGUI::$fillColor[2] . ");\n\t\t\t}\n\t\t\t\n\t\t\t.frameRight {\n\t\t\t\tborder-left:1px solid #97a652;\n\t\t\t\tpadding-left:10px;\n\t\t\t}\n\t\t\t\n\t\t\t.frameLeft td {\n\t\t\t\tpadding-top:3px;\n\t\t\t\tpadding-bottom:3px;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@media print { \n\t\t\t\t.frameRight {\n\t\t\t\t\tdisplay:none;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\th3 {\n\t\t\t\t\tpage-break-before:always;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\th2 + h3 {\n\t\t\t\t\t page-break-before:avoid;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t.buttonQuestion {\n\t\t\t\tfont-size:30px;\n\t\t\t\tpadding-top:40px;\n\t\t\t\tpadding-bottom:40px;\n\t\t\t\ttext-align:center;\n\t\t\t\twidth:120px;\n\t\t\t\tmargin-right:20px;\n\t\t\t}\n\t\t\t\n\t\t\t.box {\n\t\t\t\tmargin-top:20px;\n\t\t\t\twidth:420px;\n\t\t\t\tpadding:30px;\n\t\t\t\tborder-width:1px;\n\t\t\t\tborder-style:solid;\n\t\t\t\tborder-radius:5px;\n\t\t\t\tbox-shadow:2px 2px 2px #bbb;\n\t\t\t\tmargin-left:10px;\n\t\t\t\tmargin-bottom:20px;\n\t\t\t}\n\t\t\t\n\t\t\t#headerStep1 span, #headerStep2 span, #headerStep3 span, #headerStep4 span {\n\t\t\t\t/*-webkit-transform: translate(15px,200px) rotate(270deg);\n\t\t\t\t-moz-transform: translate(15px,200px) rotate(270deg);\n\t\t\t\t-o-transform: translate(15px,200px) rotate(270deg);\n\t\t\t\t-ms-transform: translate(15px,200px) rotate(270deg);\n\t\t\t\t-moz-transform-origin: top left;\n\t\t\t\t-webkit-transform-origin: top left;\n\t\t\t\t-o-transform-origin: top left;\n\t\t\t\t-ms-transform-origin: top left;*/\n\t\t\t}\n\t\t\t\n\t\t\t#headerStep1, #headerStep2, #headerStep3, #headerStep4 {\n\t\t\t\tborder-bottom-width:0px;\n\t\t\t\tborder-right-width:1px;\n\t\t\t\tborder-right-style:solid;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\twidth:30px;\n\t\t\t\theight:450px;\n\t\t\t\tmargin-right:20px;\n\t\t\t}\n\t\t\t\n\t\t\t#step1, #step2, #step3, #step4 {\n\t\t\t\twidth:600px;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\tmargin-top:40px;\n\t\t\t\tvertical-align: top;\n\t\t\t}\n\t\t\t\n\t\t\t#selectPruefer {\n\t\t\t\tlist-style-type: none;\n\t\t\t}\n\n\t\t\t#selectPruefer li, #selectCategories li {\n\t\t\t\tfont-size:15px;\n\t\t\t\tpadding:10px;\n\t\t\t}\n\t\t</style>\n\t\t<script type=\"text/javascript\">\n\t\t\tvar CP_LV = {\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tvar CP_QM = {\n\t\t\t\tquestions: null,\n\t\t\t\tRaumGruppen: new Array(),\n\t\t\t\tqCounter: -1,\n\t\t\t\tcCounter: 0,\n\t\t\t\tcategories: null,\n\t\t\t\tanswers: {},\n\t\t\t\tauthor: null,\n\t\t\t\t\n\t\t\t\taddRaumGruppe: function(RaumGruppeID){\n\t\t\t\t\tif(\$.inArray(RaumGruppeID, CP_QM.RaumGruppen) >= 0){\n\t\t\t\t\t\tCP_QM.RaumGruppen.splice( \$.inArray(RaumGruppeID, CP_QM.RaumGruppen), 1 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tCP_QM.RaumGruppen.push(RaumGruppeID);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.updateOrderDisplay();\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tupdateOrderDisplay: function(){\n\t\t\t\t\t\$('.orderDisplay').html(' ');\n\t\t\t\t\t\n\t\t\t\t\tfor(var i = 0; i < CP_QM.RaumGruppen.length; i++){\n\t\t\t\t\t\t\$('#orderDisplay'+CP_QM.RaumGruppen[i]).html(i + 1);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tdoQuestionsAgain: function(){\n\t\t\t\t\t\$('#step3').show();\n\t\t\t\t\t\$('#step4').hide();\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.qCounter = 0;\n\t\t\t\t\tCP_QM.cCounter = 0;\n\t\t\t\t\tCP_QM.answers = {};\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.showQuestion();\n\t\t\t\t\t\n\t\t\t\t\t\$('#headerStep4').css('background-color', 'white');\n\t\t\t\t\t\$('#headerStep3').css('background-color', '');\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tsave: function(){\n\t\t\t\t\tvar value = \$.jStorage.get('QM');\n\t\t\t\t\tif(!value){\n\t\t\t\t\t\t\$.jStorage.set('QM', [{ 'answers': CP_QM.answers, 'signature' : \$('.sigPad input[name=output]').val(), 'author' : CP_QM.author, 'timestamp' : Math.round(+new Date()/1000) }])\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvalue.push({ 'answers': CP_QM.answers, 'signature' : \$('.sigPad input[name=output]').val(), 'author' : CP_QM.author, 'timestamp' : Math.round(+new Date()/1000) });\n\t\t\t\t\t\t\$.jStorage.set('QM', value)\n\t\t\t\t\t}\n\t\t\t\t\tCP_QM.view();\n\t\t\t\t\t//console.log(\$.jStorage.get('QM'));\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tupload: function(){\n\t\t\t\t\t\$.ajax({url: './index.php?CC=FCalc&M=checkConnection', success: function(transport){\n\t\t\t\t\t\tif(transport != '1')\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tCustomerPage.rme('saveData', 'data='+JSON.stringify(\$.jStorage.get('QM')), function(){ /*\$.jStorage.deleteKey('QM');*/ });\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t\n\t\t\t\t\terror: function(XMLHttpRequest, textStatus, errorThrown) {\n\t\t\t\t\t\tif(textStatus == 'timeout')\n\t\t\t\t\t\t\talert('Keine Verbindung zum Server!');\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t\n\t\t\t\t\ttype: 'GET'});\n\t\t\t\t\t\t\n/*\n\n\t\t\t\t\tvar value = \$.jStorage.get('QM');\n\t\t\t\t\tif(!value){\n\t\t\t\t\t\t\$('#view').html('Es wurden keine Prüfungen gespeichert');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor(var i = 0; i < value.length; i++){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tview: function(){\n\t\t\t\t\tvar value = \$.jStorage.get('QM');\n\t\t\t\t\tif(!value){\n\t\t\t\t\t\t\$('#view').html('Es wurden keine Prüfungen gespeichert');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar s = '<ul>';\n\t\t\t\t\t\t\n\t\t\t\t\t\tconsole.log(value);\n\t\t\t\t\t\tfor(var i = 0; i < value.length; i++){\n\t\t\t\t\t\t\tvar date = new Date(value[i].timestamp*1000);\n\t\t\t\t\t\t\tvar hours = date.getHours();\n\t\t\t\t\t\t\tvar minutes = date.getMinutes();\n\t\t\t\t\t\t\t//var seconds = date.getSeconds();\n\t\t\t\t\t\t\tvar year = date.getFullYear();\n\t\t\t\t\t\t\tvar month = date.getMonth();\n\t\t\t\t\t\t\tvar day = date.getDate();\n\n\n\t\t\t\t\t\t\ts += '<li>Prüfung vom '+day+'.'+month+'.'+year+', '+hours+':'+minutes+' Uhr</li>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ts += '</ul>';\n\t\t\t\t\t\t\n\t\t\t\t\t\t\$('#view').html(s);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tnew: function(){\n\t\t\t\t\t\$('#step1').show();\n\t\t\t\t\t\$('#step4').hide();\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.qCounter = -1;\n\t\t\t\t\tCP_QM.cCounter = 0;\n\t\t\t\t\tCP_QM.answers = {};\n\t\t\t\t\t\n\t\t\t\t\t//CP_QM.showQuestion();\n\n\t\t\t\t\t\$('#headerStep4').css('background-color', 'white');\n\t\t\t\t\t\$('#headerStep1').css('background-color', '');\n\t\t\t\t},\n\n\t\t\t\tstep2: function(authorID){\n\t\t\t\t\t\$('#step1').hide();\n\t\t\t\t\t\$('#step2').show();\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.author = authorID;\n\t\t\t\t\t\n\t\t\t\t\t\$('#headerStep1').css('background-color', 'white');\n\t\t\t\t\t\$('#headerStep2').css('background-color', '');\n\t\t\t\t\t\n\t\t\t\t},\n\n\t\t\t\tstep3: function(){\n\t\t\t\t\t\$('#step1').hide();\n\t\t\t\t\t\$('#step2').hide();\n\t\t\t\t\t\$('#step3').show();\n\t\t\t\t\t\n\t\t\t\t\t\$('#headerStep2').css('background-color', 'white');\n\t\t\t\t\t\$('#headerStep3').css('background-color', '');\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.nextQuestion();\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tstep4: function(){\n\t\t\t\t\t\$('#step3').hide();\n\t\t\t\t\t\$('#step4').show();\n\t\t\t\t\t\n\t\t\t\t\t\$('#headerStep3').css('background-color', 'white');\n\t\t\t\t\t\$('#headerStep4').css('background-color', '');\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.view();\n\t\t\t\t\t\n\t\t\t\t\t//console.log(CP_QM.answers);\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tanswerQuestion: function(answer){\n\t\t\t\t\tif(typeof CP_QM.answers[CP_QM.cCounter] == 'undefined')\n\t\t\t\t\t\tCP_QM.answers[CP_QM.cCounter] = {};\n\t\t\t\t\t\t\n\t\t\t\t\tvar current = CP_QM.questions[CP_QM.RaumGruppen[CP_QM.cCounter]][CP_QM.qCounter];\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.answers[CP_QM.cCounter][CP_QM.qCounter] = {'answer' : answer, 'object' : current };\n\t\t\t\t\t\n\t\t\t\t\t//console.log(CP_QM.answers);\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.nextQuestion();\n\t\t\t\t},\n\n\t\t\t\tnextQuestion: function(){\n\t\t\t\t\tCP_QM.qCounter++;\n\t\t\t\t\t\n\t\t\t\t\tif(CP_QM.qCounter >= CP_QM.questions[CP_QM.RaumGruppen[CP_QM.cCounter]].length) {\n\t\t\t\t\t\tCP_QM.qCounter = 0;\n\t\t\t\t\t\tCP_QM.cCounter++;\n\t\t\t\t\t\tCP_QM.showCategoryBox();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(CP_QM.cCounter >= CP_QM.RaumGruppen.length){\n\t\t\t\t\t\tCP_QM.step4();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.showQuestion();\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tpreviousQuestion: function(){\n\t\t\t\t\tCP_QM.qCounter--;\n\t\t\t\t\t\n\t\t\t\t\tif(CP_QM.qCounter == -1) {\n\t\t\t\t\t\tCP_QM.cCounter--;\n\t\t\t\t\t\tCP_QM.qCounter = CP_QM.questions[CP_QM.RaumGruppen[CP_QM.cCounter]].length - 1;\n\t\t\t\t\t\tCP_QM.showCategoryBox();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(CP_QM.cCounter == -1){\n\t\t\t\t\t\t//CP_QM.step4();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.showQuestion();\n\n\t\t\t\t\t\n\t\t\t\t},\n\n\t\t\t\tshowQuestion: function(){\n\t\t\t\t\t\$('#buttonPreviousQuestion').removeAttr('disabled');\n\t\t\t\t\t\$('.buttonQuestion').css('background-color', '');\n\t\t\t\t\t\n\t\t\t\t\tif(CP_QM.qCounter == 0 && CP_QM.cCounter == 0)\n\t\t\t\t\t\t\$('#buttonPreviousQuestion').attr('disabled', 'disabled');\n\n\t\t\t\t\tif(typeof CP_QM.answers[CP_QM.cCounter] != 'undefined' && CP_QM.answers[CP_QM.cCounter][CP_QM.qCounter] != undefined){\n\t\t\t\t\t\tvar B = 'Nein';\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(CP_QM.answers[CP_QM.cCounter][CP_QM.qCounter] == 1)\n\t\t\t\t\t\t\tB = 'Teils';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(CP_QM.answers[CP_QM.cCounter][CP_QM.qCounter] == 2)\n\t\t\t\t\t\t\tB = 'Ja';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\$('#button'+B).css('background-color', '#F5FFC5');\n\t\t\t\t\t}\n\n\t\t\t\t\t\$('#category').html(CP_QM.categories[CP_QM.RaumGruppen[CP_QM.cCounter]]);\n\t\t\t\t\t\$('#categoryInfo').html(CP_QM.categories[CP_QM.RaumGruppen[CP_QM.cCounter]]);\n\t\t\t\t\t\n\t\t\t\t\tvar current = CP_QM.questions[CP_QM.RaumGruppen[CP_QM.cCounter]][CP_QM.qCounter];\n\t\t\t\t\tvar q = current.label;\n\t\t\t\t\tif(current.turnusWoechentlich > 0)\n\t\t\t\t\t\tq += ' '+current.turnusWoechentlich+'xW';\n\t\t\t\t\t\t\n\t\t\t\t\tif(current.turnusMonatlich > 0)\n\t\t\t\t\t\tq += ' '+current.turnusMonatlich+'xM';\n\t\t\t\t\t\t\n\t\t\t\t\tif(current.turnusJaehrlich > 0)\n\t\t\t\t\t\tq += ' '+current.turnusJaehrlich+'xJ';\n\t\t\t\t\t\t\n\t\t\t\t\t\$('#question').html(q);\n\t\t\t\t\t\n\t\t\t\t\t\$('#qCounter').html((CP_QM.qCounter + 1)+'/'+CP_QM.questions[CP_QM.RaumGruppen[CP_QM.cCounter]].length);\n\t\t\t\t\t\$('#cCounter').html((CP_QM.cCounter + 1)+'/'+CP_QM.RaumGruppen.length);\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tcloseCategoryBox: function(){\n\t\t\t\t\t\$('#categoryBox').hide();\n\t\t\t\t\t\$('#questionBox').show();\n\t\t\t\t},\n\t\t\t\t\n\t\t\t\tshowCategoryBox: function(){\n\t\t\t\t\t\$('#categoryBox').show();\n\t\t\t\t\t\$('#questionBox').hide();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\$(document).ready(function(){\n\t\t\t\t\$('#selectPruefer').attr('size', 10);\n\t\t\t});\n\t\t</script>"; $OID = $_GET["OBJ"] / GSRaumgruppe::$mult; $O = new ObjektL($OID); switch ($_GET["A"]) { case "LV": if (file_exists(Util::getRootPath() . "specifics/CPLogo.png")) { $html .= "<img src=\"../../specifics/CPLogo.png\" style=\"float:right;\" />"; } $html .= "<h1>Leistungsverzeichnis</h1>\n\t\t\t\t\t<h2>für " . $O->A("objektName") . "</h2>"; $GSR = anyC::get("GSRaumgruppe", "GSRaumgruppeObjektLID", $OID); $GSR->addOrderV3("GSRaumgruppeKuerzel"); while ($R = $GSR->getNextEntry()) { $html .= "<h3>" . $R->A("GSRaumgruppeKuerzel") . " (" . $R->A("GSRaumgruppeName") . ")</h3>\n\t\t\t\t\t\t<div style=\"max-width:1200px;\">"; $leftFrame = "<div style=\"width:490px;float:left;\" class=\"frameLeft\" id=\"frameLeft" . $R->getID() . "\">" . $this->leftFrame($R) . "</div>"; $rightFrame = "<div style=\"float:right;width:490px;margin-bottom:20px;\" class=\"frameRight\" id=\"frameRight" . $R->getID() . "\">" . $this->rightFrame($R) . "</div>"; $html .= "{$rightFrame}{$leftFrame}<div style=\"clear:both;\"></div></div>"; } break; case "QM": $html .= "<h1>Qualitätsmanagement</h1>\n\t\t\t\t\t<h2>für " . $O->A("objektName") . "</h2>"; $html .= "<h3 id=\"headerStep1\" class=\"borderColor1\"><span>" . $this->getStringImage("Prüfer") . "</span></h3><div id=\"step1\">\n\t\t\t\t\t<p>Bitte wählen Sie den Prüfer:</p>"; $L = new HTMLList(); $L->setListID("selectPruefer"); #$pruefer = array(0 => "bitte auswählen..."); #$Users = Users::getUsers(); $ACP = anyC::get("GSQMPruefer"); $ACP->addJoinV3("Personal", "GSQMPrueferPersonalID", "=", "PersonalID"); $ACP->addOrderV3("nachname"); $ACP->addOrderV3("vorname"); while ($U = $ACP->getNextEntry()) { $L->addItem("<a href=\"#\" onclick=\"CP_QM.step2(" . $U->getID() . "); return false;\">" . $U->A("nachname") . " " . $U->A("vorname") . "</a>"); } #$pruefer[$U->getID()] = $U->A("name"); #$IU = new HTMLInput("pruefer", "select", "0", $pruefer); #$IU->onchange("if(this.value > 0) CP_QM.step2();"); #$IU->id("selectPruefer"); #$IU->style("width:400px;"); $html .= $L; $html .= "</div>\n\t\t\t\t\t<h3 id=\"headerStep2\" style=\"background-color:white;\" class=\"borderColor1\"><span>" . $this->getStringImage("Kategorienauswahl") . "</span></h3>\n\t\t\t\t\t<div id=\"step2\" style=\"display:none;\">\n\t\t\t\t\t\n\t\t\t\t\t<p>Bitte wählen Sie die Kategorien in der Reihenfolge, in der Sie prüfen möchten:</p>\n\t\t\t\t\t<ul style=\"list-style-type:none;\" id=\"selectCategories\">"; $GSR = anyC::get("GSRaumgruppe", "GSRaumgruppeObjektLID", $OID); $GSR->addOrderV3("GSRaumgruppeKuerzel"); $data = array(); $categories = array(); while ($R = $GSR->getNextEntry()) { $html .= "\n\t\t\t\t\t\t<li style=\"margin-bottom:10px;\">\n\t\t\t\t\t\t\t<div style=\"width:30px;float:left;margin-right:10px;text-align:right;font-weight:bold;\" class=\"orderDisplay\" id=\"orderDisplay" . $R->getID() . "\"> </div>\n\t\t\t\t\t\t\t<div style=\"margin-left:40px;\"><a href=\"#\" onclick=\"CP_QM.addRaumGruppe(" . $R->getID() . "); return false;\">" . $R->A("GSRaumgruppeKuerzel") . "\n\t\t\t\t\t\t\t<span style=\"color:grey;\">(" . $R->A("GSRaumgruppeName") . ")</span></div></a>\n\t\t\t\t\t\t</li>"; $data[$R->getID()] = json_encode($R->getQuestions()); $categories[$R->getID()] = $R->A("GSRaumgruppeName"); } $GSR->resetPointer(); $BOK = new Button("Weiter", ""); $BOK->onclick("CP_QM.step3();"); $html .= "\n\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\tCP_QM.questions = {"; foreach ($data as $RGID => $D) { $html .= "\n" . $RGID . ": {$D},"; } $html .= "\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tCP_QM.categories = " . json_encode($categories) . ";\n\t\t\t\t</script>"; $html .= "</ul>\n\t\t\t\t\t{$BOK}\n\t\t\t\t\t</div>"; $BJa = new Button("Ja"); $BJa->onclick("CP_QM.answerQuestion(2);"); $BJa->id("buttonJa"); $BJa->className("buttonQuestion"); $BTeils = new Button("Teils"); $BTeils->onclick("CP_QM.answerQuestion(1);"); $BTeils->id("buttonTeils"); $BTeils->className("buttonQuestion"); $BNein = new Button("Nein"); $BNein->onclick("CP_QM.answerQuestion(0);"); $BNein->id("buttonNein"); $BNein->className("buttonQuestion"); $BP = new Button("vorherige Frage"); $BP->onclick("CP_QM.previousQuestion(0);"); $BP->id("buttonPreviousQuestion"); $BN = new Button("nächste Frage"); $BN->onclick("CP_QM.nextQuestion(0);"); $BN->id("buttonNextQuestion"); $BW = new Button("Weiter"); $BW->onclick("CP_QM.closeCategoryBox();"); $BW->style("float:right;"); $html .= "\n\t\t\t\t\t\t<h3 id=\"headerStep3\" class=\"borderColor1\" style=\"background-color:white;\"><span>" . $this->getStringImage("Prüfen") . "</span></h3>\n\t\t\t\t\t\t<div id=\"step3\" style=\"display:none;\">\n\t\t\t\t\t\t<div id=\"questionBox\" style=\"display:none;\">\n\t\t\t\t\t\t\t<p>{$BP} {$BN}</p>\n\t\t\t\t\t\t\t<div class=\"box borderColor1\">\n\t\t\t\t\t\t\t\t<p style=\"\">Kategorie: <span id=\"category\"></span></p>\n\t\t\t\t\t\t\t\t<p style=\"font-size:20px;font-weight:bold;\" id=\"question\"></p>\n\t\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>{$BJa}</td>\n\t\t\t\t\t\t\t\t\t\t<td>{$BTeils}</td>\n\t\t\t\t\t\t\t\t\t\t<td>{$BNein}</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"borderColor1 box\" id=\"categoryBox\">\n\t\t\t\t\t\t\t<span style=\"font-size:30px;\">Kategorie:</span><br/><br/><span id=\"categoryInfo\" style=\"font-size:15px;\"></span><br /><br/>\n\t\t\t\t\t\t\t{$BW}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p>Fragen in dieser Kategorie: <span id=\"qCounter\"></span></p>\n\t\t\t\t\t\t<p>Kategorien: <span id=\"cCounter\"></span></p>\n\t\t\t\t\t</div>"; $BNochmal = new Button("Fragen erneut\nausfüllen"); $BNochmal->onclick("CP_QM.doQuestionsAgain();"); $BSave = new Button("Prüfung\nspeichern"); $BSave->onclick("CP_QM.save();"); $BNew = new Button("Neue\nPrüfung"); $BNew->onclick("CP_QM.new();"); $BUpload = new Button("Daten\nhochladen"); $BUpload->onclick("CP_QM.upload();"); $html .= "\n\t\t\t\t\t<h3 id=\"headerStep4\" class=\"borderColor1\" style=\"background-color:white;\"><span>" . $this->getStringImage("Abschluss") . "</span></h3>\n\t\t\t\t\t<div id=\"step4\" style=\"display:none;\">\n\t\t\t\t\t\t<div class=\"backgroundColor1\" style=\"height:450px;width:290px;float:right;\">\n\t\t\t\t\t\t\t<div id=\"view\"></div>\n\t\t\t\t\t\t\t{$BUpload}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{$BNochmal}\n\t\t\t\t\n\t\t\t\t\t\t<div class=\"sigPad\" style=\"margin-top:20px;\">\n\t\t\t\t\t\t\t<p>Unterschrift des Kunden:</p>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<canvas style=\"border-width:1px;border-style:solid;width:300px;height:150px;\" class=\"pad borderColor1\"></canvas>\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"output\" class=\"output\">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{$BSave}\n\t\t\t\t\t\t\t<!--<a href=\"#clear\">Leeren</a>-->\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t{$BNew}\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t\t<script type=\"text/javascript\">\$(document).ready(function() { \$('.sigPad').signaturePad({drawOnly:true}); });</script>"; break; } return $html; }
$I = new $C(); if (isset($_POET["M"])) { $M = $_POET["M"]; unset($_POET["M"]); unset($_POET["CC"]); die($I->{$M}($_POET)); } if (method_exists($I, "getTitle")) { $pageTitle = $I->getTitle(); } $content = $I->getCMSHTML(); } if (isset($_POET["D"])) { $ex = explode("/", $_POET["D"]); $C = "CC" . $ex[1]; registerClassPath($C, Util::getRootPath() . "{$_POET['D']}/{$C}.class.php"); $I = new $C(); if (isset($_POET["M"])) { $M = $_POET["M"]; unset($_POET["M"]); unset($_POET["CC"]); die($I->{$M}($_POET)); } if (method_exists($I, "getTitle")) { $pageTitle = $I->getTitle(); } $content = $I->getCMSHTML(); } $styles = ""; $script = ""; $styleFiles = "";
function classes() { registerClassPath("Bestellung", Util::getRootPath() . "ubiquitous/Bestellungen/Bestellung.class.php"); addClassPath(Util::getRootPath() . "MMDB/Seminare/"); }
<?php if (isset($argv[1])) { $_GET["cloud"] = $argv[1]; } if (isset($argv[2])) { $_SERVER["HTTP_HOST"] = $argv[2]; } session_name("ExtConnUPnPServer"); require_once realpath(dirname(__FILE__) . "/../../system/connect.php"); registerClassPath("phpUPnP", dirname(__FILE__) . "/phpUPnP.class.php"); $S = new phpUPnP(); $S->mServer();