Commit e53b128f authored by Nico Schallehn's avatar Nico Schallehn

test

parent 8766fa03
<?php
class Media {
function __construct() {
;
}
}
\ No newline at end of file
<?php include './color.class.php'; <?php
include './color.class.php';
include './media.class.php';
$Console = new Console(); $Console = new Console();
$Media = new Media();
//echo "md5: ".$colors->getColoredString("Fehler!", "white", "red") .PHP_EOL;
//echo "md5: ".$colors->getColoredString("Erfolgreich!", "white", "green") .PHP_EOL;
/*
if(isset($argv[1])){
switch ($argv[1]){
case "filme":
echo $colors->getColoredString("Filme", "black", "light_gray") .PHP_EOL;
break;
default:
echo $colors->getColoredString("Fehler", "red", "light_gray") .PHP_EOL;
echo "Bitte ohne Parameter aufrufen für Hilfe!".PHP_EOL;
break;
}
}else{
echo $colors->getColoredString("Benutzung:", "black", "light_gray") .PHP_EOL;
echo " filme [Pfad zum einlesen] [Zielfestplatte]".PHP_EOL;
}
*/
$exit = false; $exit = false;
$Console->clearscreen();
do{ do{
echo "Bitte Befehl eingeben:"; $Console->clearscreen();
echo $Console->getColoredString("Benutzung:", "black", "light_gray") .PHP_EOL.PHP_EOL;
echo " filme Filme aus einen Verzeichnis zur DB hinzufgen".PHP_EOL;
echo " exit beendet das Programm".PHP_EOL.PHP_EOL;
echo "Bitte Befehl eingeben: ";
$name = trim(fgets(STDIN)); $name = trim(fgets(STDIN));
echo "Hallo $name \n"; echo "Hallo $name \n";
switch ($name){ switch ($name){
...@@ -41,10 +31,35 @@ do{ ...@@ -41,10 +31,35 @@ do{
echo $Console->getColoredString("Filme", "black", "light_gray") .PHP_EOL; echo $Console->getColoredString("Filme", "black", "light_gray") .PHP_EOL;
break; break;
default: default:
echo $Console->getColoredString("Benutzung:", "black", "light_gray") .PHP_EOL;
echo " filme [Pfad zum einlesen] [Zielfestplatte]".PHP_EOL;
break; break;
} }
}while(!$exit); }while(!$exit);
//echo "md5: ".$colors->getColoredString("Fehler!", "white", "red") .PHP_EOL;
//echo "md5: ".$colors->getColoredString("Erfolgreich!", "white", "green") .PHP_EOL;
/*
if(isset($argv[1])){
switch ($argv[1]){
case "filme":
echo $colors->getColoredString("Filme", "black", "light_gray") .PHP_EOL;
break;
default:
echo $colors->getColoredString("Fehler", "red", "light_gray") .PHP_EOL;
echo "Bitte ohne Parameter aufrufen für Hilfe!".PHP_EOL;
break;
}
}else{
echo $colors->getColoredString("Benutzung:", "black", "light_gray") .PHP_EOL;
echo " filme [Pfad zum einlesen] [Zielfestplatte]".PHP_EOL;
}
*/
?> ?>
\ No newline at end of file
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