2020-11-19 22:44:19 +01:00
|
|
|
<?php
|
|
|
|
// Datenbank-Verbindungsparameter
|
|
|
|
require_once ('dbutils.php');
|
|
|
|
require_once ('admin.php');
|
|
|
|
require_once ('queuecontent.php');
|
|
|
|
require_once ('products.php');
|
|
|
|
require_once ('roomtables.php');
|
|
|
|
require_once ('reports.php');
|
|
|
|
require_once ('bill.php');
|
|
|
|
require_once ('closing.php');
|
|
|
|
require_once ('printqueue.php');
|
|
|
|
require_once ('feedback.php');
|
2020-11-19 22:47:44 +01:00
|
|
|
require_once ('reservation.php');
|
|
|
|
require_once ('rating.php');
|
|
|
|
require_once ('utilities/Logger.php');
|
2020-11-19 22:44:19 +01:00
|
|
|
|
|
|
|
$module = $_GET["module"];
|
|
|
|
$command = $_GET["command"];
|
|
|
|
|
2020-11-19 22:47:44 +01:00
|
|
|
Logger::logcmd($module,$command,"");
|
|
|
|
|
2020-11-19 22:44:19 +01:00
|
|
|
if ($module == 'admin') {
|
|
|
|
$adminModule = new Admin;
|
|
|
|
$adminModule->handleCommand($command);
|
|
|
|
} else if ($module == 'queue') {
|
|
|
|
$queueContent = new QueueContent();
|
|
|
|
$queueContent->handleCommand($command);
|
|
|
|
} else if ($module == 'products') {
|
|
|
|
$products = new Products();
|
|
|
|
$products->handleCommand($command);
|
|
|
|
} else if ($module == 'roomtables') {
|
|
|
|
$roomtables = new Roomtables();
|
|
|
|
$roomtables->handleCommand($command);
|
|
|
|
} else if ($module == 'reports') {
|
|
|
|
$reports = new Reports();
|
|
|
|
$reports->handleCommand($command);
|
|
|
|
} else if ($module == 'bill') {
|
|
|
|
$reports = new Bill();
|
|
|
|
$reports->handleCommand($command);
|
|
|
|
} else if ($module == 'closing') {
|
|
|
|
$closingModule = new Closing();
|
|
|
|
$closingModule->handleCommand($command);
|
|
|
|
} else if ($module == 'printqueue') {
|
|
|
|
$printQueue = new PrintQueue();
|
|
|
|
$printQueue->handleCommand($command);
|
|
|
|
} else if ($module == 'feedback') {
|
|
|
|
$feedback = new Feedback();
|
|
|
|
$feedback->handleCommand($command);
|
2020-11-19 22:47:44 +01:00
|
|
|
} else if ($module == 'reservation') {
|
|
|
|
$reservation = new Reservation();
|
|
|
|
$reservation->handleCommand($command);
|
|
|
|
} else if ($module == 'rating') {
|
|
|
|
$rating = new Rating();
|
|
|
|
$rating->handleCommand($command);
|
2020-11-19 22:44:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|