From 425f72c9cd31e4e48a75ddcaabc95a28630b022d Mon Sep 17 00:00:00 2001 From: Tobias Hopp Date: Mon, 6 Jul 2020 21:39:00 +0200 Subject: [PATCH] Adding exit function and bugfix Took 4 minutes --- karaoke-management.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/karaoke-management.php b/karaoke-management.php index ae3256f..13c22e6 100644 --- a/karaoke-management.php +++ b/karaoke-management.php @@ -38,7 +38,7 @@ function main() break; case 'downloadmusic': echo "This function has an old CLI! Opening CLI...\n-----------\n"; - $audiovideo = new AudioVideoHandler(); + new AudioVideoHandler(); echo "CLI exited. Continue with new CLI...\n"; break; case 'setsid': @@ -49,6 +49,9 @@ function main() } echo "Function not completed yet!\n"; break; + case 'exit': + echo "Have a nice dayyyy!!\n"; + exit(); default: echo "Unkown command. Use help for help.\n"; break;