Commit efa49523 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 786239d5
......@@ -49,9 +49,6 @@ class Media {
}
}
public function config_show(){
}
public function config($Action){
switch ($Action){
......
......@@ -3,30 +3,21 @@ include './color.class.php';
include './media.class.php';
include './imdb.class.php';
$Console = new Console();
$Console->clearscreen();
$Media = new Media("config.json");
$exit = false;
do{
echo $Console->getColoredString("Benutzung:", "black", "light_gray") .PHP_EOL.PHP_EOL;
echo " filme Filme aus einen Verzeichnis zur DB hinzufügen".PHP_EOL;
echo " config show Zeigt die Konfiguration an!".PHP_EOL;
echo " config save Speichert die Konfiguration!".PHP_EOL;
echo " exit beendet das Programm".PHP_EOL.PHP_EOL;
echo "Bitte Befehl eingeben: ";
$name = trim(fgets(STDIN));
$Console->clearscreen();
//echo "Hallo $name \n";
$nameArr = explode(" ", $name);
switch ($nameArr[0]){
case "filme":
echo $Media->filme();
break;
......@@ -40,16 +31,12 @@ do{
echo $Console->getColoredString("Ungülter Befehl!", "red", "light_gray") .PHP_EOL;
break;
}
//echo "Weiter mit (ENTER)".PHP_EOL;
//trim(fgets(STDIN));
}while(!$exit);
//echo "md5: ".$colors->getColoredString("Fehler!", "white", "red") .PHP_EOL;
//echo "md5: ".$colors->getColoredString("Erfolgreich!", "white", "green") .PHP_EOL;
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment