aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2016-12-11 19:56:22 +0100
committerMaZderMind2016-12-11 20:38:12 +0100
commit4e85b423354d8b715d12540fbd2ac79a66de3399 (patch)
tree34da4c41c45c80502c00d02f8003a3ecbfde7a4c /index.php
parent895b7fa70883b60ad7ee15fefed6f908020310b9 (diff)
add download-command cli interface & config
Diffstat (limited to 'index.php')
-rw-r--r--index.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/index.php b/index.php
index 6c62e34..9b4689c 100644
--- a/index.php
+++ b/index.php
@@ -27,6 +27,22 @@ require_once('model/Upcoming.php');
ob_start();
+if(isset($argv) && isset($argv[1]))
+{
+ require('lib/command-helper.php');
+
+ switch($argv[1])
+ {
+ case 'download':
+ require('command/download.php');
+ exit(0);
+ }
+
+ stderr("Unknown Command: %s", $argv[1]);
+ exit(1);
+}
+
+
try {
if(isset($_GET['htaccess']))
{