diff options
author | MaZderMind | 2016-12-11 19:56:22 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-11 20:38:12 +0100 |
commit | 4e85b423354d8b715d12540fbd2ac79a66de3399 (patch) | |
tree | 34da4c41c45c80502c00d02f8003a3ecbfde7a4c /index.php | |
parent | 895b7fa70883b60ad7ee15fefed6f908020310b9 (diff) |
add download-command cli interface & config
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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'])) { |