summaryrefslogtreecommitdiff
path: root/bin/msgexport.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/msgexport.sh')
-rwxr-xr-xbin/msgexport.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/msgexport.sh b/bin/msgexport.sh
index b15da1feb..7dd56e9ea 100755
--- a/bin/msgexport.sh
+++ b/bin/msgexport.sh
@@ -1,5 +1,8 @@
-#!/usr/bin/php
+#!/usr/bin/env php
<?php
+if (php_sapi_name() != 'cli') {
+ die('Not on the "shell" (php-cli).');
+}
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
ini_set('memory_limit', -1);
@@ -169,4 +172,4 @@ else
vputs("IMAP login failed.\n");
}
-?> \ No newline at end of file
+?>