]> git.donarmstrong.com Git - roundcube.git/blobdiff - bin/cleandb.sh
Imported Upstream version 0.6+dfsg
[roundcube.git] / bin / cleandb.sh
index 4d699cc6e1237833510cdaecd10a814a77f0aca1..a1b38d05526ab19c502765a917bb960b51060407 100755 (executable)
@@ -6,7 +6,7 @@
  | bin/cleandb.sh                                                        |
  |                                                                       |
  | This file is part of the Roundcube Webmail client                     |
- | Copyright (C) 2010, Roundcube Dev. - Switzerland                      |
+ | Copyright (C) 2010, The Roundcube Dev Team                            |
  | Licensed under the GNU GPL                                            |
  |                                                                       |
  | PURPOSE:                                                              |
  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
  +-----------------------------------------------------------------------+
 
- $Id: cleandb.sh 4164 2010-10-31 10:38:16Z thomasb $
+ $Id: cleandb.sh 4677 2011-04-20 13:10:45Z alec $
 
 */
 
-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(