phpide-d10
authorMichael Wagner <info@wagnertech.de>
Wed, 3 Jun 2020 10:01:27 +0000 (12:01 +0200)
committerMichael Wagner <info@wagnertech.de>
Wed, 3 Jun 2020 10:01:27 +0000 (12:01 +0200)
verleihnix/Verleihnix/VNAdministration.php [new file with mode: 0644]
verleihnix/Verleihnix/impl/.dummy [new file with mode: 0644]
verleihnix/gui/ConfigurationData.php [new file with mode: 0644]
verleihnix/gui/index.php [new symlink]
verleihnix/gui/mKrimiGui.php [new file with mode: 0644]
verleihnix/gui/name_map.php [new file with mode: 0644]
verleihnix/gui/view/.dummy [new file with mode: 0644]

diff --git a/verleihnix/Verleihnix/VNAdministration.php b/verleihnix/Verleihnix/VNAdministration.php
new file mode 100644 (file)
index 0000000..458edc2
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+// imports
+require_once 'GenericAdmin/GenericAdmin.php';
+require_once 'util/Config.php';
+
+class VNAdministration extends GenericAdmin {
+
+       function VNAdministration() {
+               // Generic Administration configuration data
+               include 'Verleihnix/impl/GenadData.php';
+               parent::setDscrData($mocd_tab, $atdc_tab);
+       }
+}
diff --git a/verleihnix/Verleihnix/impl/.dummy b/verleihnix/Verleihnix/impl/.dummy
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/verleihnix/gui/ConfigurationData.php b/verleihnix/gui/ConfigurationData.php
new file mode 100644 (file)
index 0000000..d9249d5
--- /dev/null
@@ -0,0 +1,8 @@
+<?php
+$configurationData = array (
+
+       "gui::applications" => array ("Verleihnix"), 
+       "autoloader" => array ("ClassLoader", "autoload"),
+       "Verleihnix::InterfaceClass" => "VNAdministration",
+       "PropelClassPath"       => "Verleihnix/impl/data/build"
+       );
diff --git a/verleihnix/gui/index.php b/verleihnix/gui/index.php
new file mode 120000 (symlink)
index 0000000..4469e92
--- /dev/null
@@ -0,0 +1 @@
+mKrimiGui.php
\ No newline at end of file
diff --git a/verleihnix/gui/mKrimiGui.php b/verleihnix/gui/mKrimiGui.php
new file mode 100644 (file)
index 0000000..a1abc94
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+//phpinfo();
+
+// define user
+$user = getenv("USER");
+if ($user == "") putenv("USER=gui");
+
+// includes
+$path = preg_replace("/mKrimi.*/", "mKrimi", __FILE__);
+set_include_path($path . PATH_SEPARATOR . get_include_path());
+require_once 'util/Logger.php';
+require_once 'util/Config.php';
+require_once 'GenericAdmin/gui/control/GenadControl.php';
+
+// load configuration + class loader
+include 'gui/ConfigurationData.php';
+Config::setConfiguration($configurationData);
+
+// Logging
+$logger = Logger::getInstance();
+$requestMethod = $_SERVER["REQUEST_METHOD"];
+$logger->log(__FILE__, $requestMethod);
+$logger->log(__FILE__, "GET-Variabeles:");
+while ( list($key, $value) = each($_GET) ) {
+       $logger->log(__FILE__, $key . " : " . $value);;
+}
+$logger->log(__FILE__, "POST-Variabeles:");
+while ( list($key, $value) = each($_POST) ) {
+       $logger->log(__FILE__, $key . " : " . $value);;
+}
+$logger->log(__FILE__,"Redirect-URL:".$_SERVER["REDIRECT_URL"]);
+
+// call implementation
+try {
+       $control = new GenadControl();
+       $control->doIt();
+}
+catch (Exception $e) {
+       $logger->logException(__FILE__, $e);    
+       echo "<html><body>Error occurred!</body></html>";
+}
+
diff --git a/verleihnix/gui/name_map.php b/verleihnix/gui/name_map.php
new file mode 100644 (file)
index 0000000..54afac8
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+$this->nameMap = array (
+       "Back" => "Zurück",
+       "Class Selection" => "Typ",
+       "Create" => "Anlegen",
+       "List" => "Liste",
+       "Select" => "Auswählen",
+       "Submit changes" => "Änderungen speichern",
+       "zur_Zeit_bei" => "zur Zeit bei"
+);
diff --git a/verleihnix/gui/view/.dummy b/verleihnix/gui/view/.dummy
new file mode 100644 (file)
index 0000000..e69de29