Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBPythonScripte
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBPythonScripte
Commits
e53b128f
Commit
e53b128f
authored
Jan 25, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
8766fa03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
25 deletions
+47
-25
media.class.php
media.class.php
+7
-0
media.php
media.php
+40
-25
No files found.
media.class.php
0 → 100644
View file @
e53b128f
<?php
class
Media
{
function
__construct
()
{
;
}
}
\ No newline at end of file
media.php
View file @
e53b128f
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment