summaryrefslogtreecommitdiff
path: root/bin/msgexport.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/msgexport.sh')
-rwxr-xr-xbin/msgexport.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/msgexport.sh b/bin/msgexport.sh
index 616895561..890d48a06 100755
--- a/bin/msgexport.sh
+++ b/bin/msgexport.sh
@@ -1,14 +1,10 @@
#!/usr/bin/php -qC
<?php
-$CWD = $INSTALL_PATH = preg_replace('/bin\/$/', '', getcwd() . '/');
-ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . $CWD.'program/');
+define('INSTALL_PATH', preg_replace('/bin\/$/', '', getcwd()) . '/');
ini_set('memory_limit', -1);
-require_once('include/rcube_shared.inc');
-require_once('include/rcube_imap.inc');
-require_once('include/main.inc');
-require_once('include/bugs.inc');
+require_once INSTALL_PATH.'program/include/iniset.php';
/**
* Parse commandline arguments into a hash array