diff options
author | 2010-01-05 00:58:40 +0000 | |
---|---|---|
committer | 2010-01-05 00:58:40 +0000 | |
commit | 1f3d0d986cba7e95129e71d9c4f2fe8524907dcb (patch) | |
tree | 47bd048b2cac8a99b8c9c74e59e0f59a01dba935 | |
parent | no verbosity by default (diff) | |
download | znurt-org-backend-1f3d0d986cba7e95129e71d9c4f2fe8524907dcb.tar.gz znurt-org-backend-1f3d0d986cba7e95129e71d9c4f2fe8524907dcb.tar.bz2 znurt-org-backend-1f3d0d986cba7e95129e71d9c4f2fe8524907dcb.zip |
check for cron job
git-svn-id: file:///var/svn/portage@62 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
-rw-r--r-- | import.all.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/import.all.php b/import.all.php index afefe40..f77760b 100644 --- a/import.all.php +++ b/import.all.php @@ -8,7 +8,12 @@ ini_set('memory_limit', -1); $verbose = true; - + + if(in_array("-cron", $argv)) + $verbose = false; + +// print_r($argv); die; + $base = true; $packages = true; $ebuilds = true; @@ -27,7 +32,7 @@ foreach($arr_import as $key => $arr) { if($$key) { foreach($arr as $file) { -// if($verbose) + if($verbose) echo "[import] $file\n"; include "import.$file.php"; } |