summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-08-16 17:30:43 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-08-16 17:30:43 +0200
commitfdcead0d5cb071f2dd7c1659ae91dd4116809518 (patch)
tree3a97a3397a4db4cb180b6b1996e34ab85f25c40f
parentd789093de6b956be42145836023cc5d95d88f43b (diff)
Add help message when running file controller via CLI
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/controllers/file.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index a9e4406bc..90c73d844 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -57,6 +57,18 @@ class File extends CI_Controller {
function index()
{
+ if ($this->input->is_cli_request()) {
+ echo "php index.php file <function> [arguments]\n";
+ echo "\n";
+ echo "Functions:\n";
+ echo " cron Cronjob\n";
+ echo " nuke_id <ID> Nukes all IDs sharing the same hash\n";
+ echo "\n";
+ echo "Functions that shouldn't have to be run:\n";
+ echo " clean_stale_files Remove files without database entries\n";
+ echo " update_file_sizes Update filesize in database\n";
+ exit;
+ }
// Try to guess what the user would like to do.
$id = $this->uri->segment(1);
if(isset($_FILES['file'])) {