alecpl
2010-05-26 874ff4d4be5a8744052f9bcd810f62ac1da1193b
bin/msgimport.sh
@@ -1,7 +1,10 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php
if (php_sapi_name() != 'cli') {
    die('Not on the "shell" (php-cli).');
}
define('INSTALL_PATH', preg_replace('/bin\/$/', '', getcwd()) . '/');
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
ini_set('memory_limit', -1);
require_once INSTALL_PATH.'program/include/iniset.php';
@@ -146,4 +149,4 @@
   print "IMAP login failed.\n";
}
?>
?>