diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-20 13:10:45 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-20 13:10:45 +0000 |
| commit | f511cf2acaa930100b121d70831fc6bd8d8cd699 (patch) | |
| tree | a86087f3b10adceb4f78aeb0bcd0096157a14dcc /roundcubemail/bin/cleandb.sh | |
| parent | 59d664c96d744dd56d9c9e32a796c0e7f756f31f (diff) | |
- Use clisetup.php where possible, remove redundant code
git-svn-id: https://svn.roundcube.net/trunk@4677 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/bin/cleandb.sh')
| -rwxr-xr-x | roundcubemail/bin/cleandb.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/roundcubemail/bin/cleandb.sh b/roundcubemail/bin/cleandb.sh index 98f52d0cf..978b17dfa 100755 --- a/roundcubemail/bin/cleandb.sh +++ b/roundcubemail/bin/cleandb.sh @@ -20,12 +20,9 @@ */ -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'; + +require INSTALL_PATH.'program/include/clisetup.php'; // mapping for table name => primary key $primary_keys = array( |
