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
efa49523
Commit
efa49523
authored
Jan 26, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
786239d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
media.class.php
media.class.php
+0
-3
media.php
media.php
+0
-13
No files found.
media.class.php
View file @
efa49523
...
...
@@ -49,9 +49,6 @@ class Media {
}
}
public
function
config_show
(){
}
public
function
config
(
$Action
){
switch
(
$Action
){
...
...
media.php
View file @
efa49523
...
...
@@ -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;
/*
...
...
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