till
2009-01-09 d4847048a18b0f51107a078add14563ecadf4701
* let's not discriminate unix :) (= generalized paths)
* added checks so all scripts are only executable from CLI



4 files modified
28 ■■■■ changed files
bin/dumpschema.php 6 ●●●● patch | view | raw | blame | history
bin/msgexport.sh 7 ●●●● patch | view | raw | blame | history
bin/msgimport.sh 7 ●●●● patch | view | raw | blame | history
bin/update.sh 8 ●●●●● patch | view | raw | blame | history
bin/dumpschema.php
@@ -1,6 +1,6 @@
#!/usr/bin/env php
<?php
/*
 #!/usr/bin/php
 +-----------------------------------------------------------------------+
 | bin/dumpschema.php                                                    |
@@ -20,6 +20,10 @@
*/
if (php_sapi_name() != 'cli') {
    die('Not on the "shell" (php-cli).');
}
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
require INSTALL_PATH.'program/include/iniset.php';
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 @@
    vputs("IMAP login failed.\n");
}
?>
?>
bin/msgimport.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);
@@ -146,4 +149,4 @@
    print "IMAP login failed.\n";
}
?>
?>
bin/update.sh
@@ -1,6 +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__) . '/..') . '/' );
require_once INSTALL_PATH . 'program/include/iniset.php';
@@ -112,4 +114,4 @@
echo "\n";
?>
?>