Horde_CLI:: -> Horde_Cli::
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Jun 2009 19:41:38 +0000 (13:41 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Jun 2009 19:41:38 +0000 (13:41 -0600)
16 files changed:
folks/scripts/activity.php
folks/scripts/mail-filter.php
folks/scripts/mail.php
folks/scripts/popularity.php
imp/scripts/bounce_spam.php
ingo/scripts/ingo-postfix-policyd
ingo/scripts/upgrades/convert_datatree_shares_to_sql.php
ingo/scripts/upgrades/convert_prefs_to_sql.php
koward/lib/Koward.php
koward/script/Koward/koward.php
kronolith/lib/tests/toicalendar.phpt
kronolith/scripts/agenda.php
kronolith/scripts/import_icals.php
kronolith/scripts/import_squirrelmail_calendar.php
kronolith/scripts/upgrades/convert_datatree_shares_to_sql.php
kronolith/scripts/upgrades/convert_to_utc.php

index 4c6a632..160f644 100644 (file)
@@ -18,17 +18,14 @@ exit;
 define('AUTH_HANDLER', true);
 require_once dirname(__FILE__) . '/../lib/base.php';
 
-// Do CLI checks and environment setup first.
-require_once 'Horde/CLI.php';
-
 // Make sure no one runs this from the web.
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
 
 // Load the CLI environment.
-Horde_CLI::init();
-$cli = &Horde_CLI::singleton();
+Horde_Cli::init();
+$cli = &Horde_Cli::singleton();
 
 $db = DB::connect($conf['sql']);
 if ($db instanceof PEAR_Error) {
@@ -140,4 +137,4 @@ while (list($u,$v) = each($users)) {
     }
 
     $cli->message($u . ' ' . $p, 'cli.success');
-}
\ No newline at end of file
+}
index 10de438..bf0b4c5 100644 (file)
@@ -42,17 +42,17 @@ define('HORDE_BASE', dirname(__FILE__) . '/../..');
 
 // Do CLI checks and environment setup first.
 require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/CLI.php';
+require_once 'Horde/Cli.php';
 
 // Make sure no one runs this from the web.
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
 
 // Load the CLI environment - make sure there's no time limit, init some
 // variables, etc.
-Horde_CLI::init();
-$cli = &Horde_CLI::singleton();
+Horde_Cli::init();
+$cli = &Horde_Cli::singleton();
 
 require_once dirname(__FILE__) . '/../lib/base.php';
 require_once 'Console/Getopt.php';
index 2aed62b..3d59137 100644 (file)
@@ -18,16 +18,16 @@ define('AUTH_HANDLER', true);
 define('FOLKS_BASE', dirname(__FILE__) . '/..');
 
 // Do CLI checks and environment setup first.
-require_once 'Horde/CLI.php';
+require_once 'Horde/Cli.php';
 
 // Make sure no one runs this from the web.
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
 
 // Load the CLI environment.
-Horde_CLI::init();
-$cli = &Horde_CLI::singleton();
+Horde_Cli::init();
+$cli = &Horde_Cli::singleton();
 
 // Load Folks.
 require_once FOLKS_BASE . '/lib/base.php';
index c452a4a..f16b855 100644 (file)
@@ -18,17 +18,14 @@ exit;
 define('AUTH_HANDLER', true);
 require_once dirname(__FILE__) . '/../lib/base.php';
 
-// Do CLI checks and environment setup first.
-require_once 'Horde/CLI.php';
-
 // Make sure no one runs this from the web.
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
 
 // Load the CLI environment.
-Horde_CLI::init();
-$cli = &Horde_CLI::singleton();
+Horde_Cli::init();
+$cli = &Horde_Cli::singleton();
 
 $db = DB::connect($conf['sql']);
 if ($db instanceof PEAR_Error) {
@@ -123,4 +120,4 @@ while ( list($u,$v) = each($users) ) {
     }
 
     $cli->message($u . ' ' . $p, 'cli.success');
-}
\ No newline at end of file
+}
index f3c7c6b..189cb19 100755 (executable)
  */
 
 define('IMP_CONFIG', dirname(__FILE__) . '/../config');
-require_once 'Horde/CLI.php';
+require_once 'Horde/Cli.php';
 
 /* Make sure no one runs this from the web. */
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     fwrite(STDERR, "Must be run from the command line\n");
     exit(1);
 }
@@ -32,10 +32,10 @@ if (!file_exists(IMP_CONFIG . '/bounce.txt')) {
 
 /* Load the CLI environment - make sure there's no time limit, init some
  * variables, etc. */
-Horde_CLI::init();
+Horde_Cli::init();
 
 /* Read the message content. */
-$data = Horde_CLI::readStdin();
+$data = Horde_Cli::readStdin();
 
 /* Who's the spammer? */
 preg_match('/return-path: <(.*?)>\r?\n/i', $data, $matches);
index 278fe02..1969347 100755 (executable)
 require_once HORDE_BASE . '/lib/core.php';
 
 // Make sure no one runs this from the web.
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     exit(1);
 }
 
 // Load the CLI environment - make sure there's no time limit, init some
 // variables, etc.
-Horde_CLI::init();
+Horde_Cli::init();
 
 // Include needed libraries.
 require_once dirname(dirname(__FILE__)) . '/lib/base.php';
index 820ae1e..73ad514 100755 (executable)
 
 /* Set up the CLI environment */
 require_once HORDE_BASE . '/lib/core.php';
-if (!Horde_CLI::runningFromCli()) {
+if (!Horde_Cli::runningFromCli()) {
     exit("Must be run from the command line\n");
 }
-$cli = &Horde_CLI::singleton();
+$cli = &Horde_Cli::singleton();
 $cli->init();
 
 /* Grab what we need to steal the DB config */
index a7fd44e..0569249 100755 (executable)
 require_once HORDE_BASE . '/lib/core.php';
 
 /* Make sure no one runs this from the web. */
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
 
 /* Load the CLI environment - make sure there's no time limit, init some
  * variables, etc. */
-Horde_CLI::init();
-$cli = &Horde_CLI::singleton();
+Horde_Cli::init();
+$cli = &Horde_Cli::singleton();
 
 /* Initialize the needed libraries. */
 require_once dirname(dirname(dirname(__FILE__))) . '/lib/base.php';
index 9426158..7c325ea 100644 (file)
@@ -202,7 +202,7 @@ class Koward {
                 if (!empty($session->user_uid)) {
                     $user = $this->getObject($session->user_uid);
                     if (get_class($user) == $this->conf['koward']['cli_admin']
-                        && Horde_CLI::runningFromCLI()) {
+                        && Horde_Cli::runningFromCLI()) {
                         return true;
                     }
                     $type = $this->getType($user);
index e73ed96..8df9d86 100644 (file)
@@ -34,7 +34,7 @@ if (!$opts->base) {
  * Ensure that the base parameters (especially SERVER_NAME) get set for the
  * command line.
  */
-$cli = Horde_CLI::singleton();
+$cli = Horde_Cli::singleton();
 $cli->init();
 
 /**
index 2c26f7f..a5a5b6a 100644 (file)
@@ -3,8 +3,8 @@ Kronolith_Event::toiCalendar() test.
 --FILE--
 <?php
 
-require 'Horde/CLI.php';
-Horde_CLI::init();
+require 'Horde/Cli.php';
+Horde_Cli::init();
 define('AUTH_HANDLER', true);
 require dirname(__FILE__) . '/../base.php';
 require 'Horde/iCalendar.php';
index 9909403..052a099 100755 (executable)
 
 define('AUTH_HANDLER', true);
 require_once dirname(__FILE__) . '/../lib/base.php';
-require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/CLI.php';
 require_once 'Horde/Identity.php';
 
 // Make sure no one runs this from the web.
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
 
 // Load the CLI environment - make sure there's no time limit, init
 // some variables, etc.
-Horde_CLI::init();
+Horde_Cli::init();
 
 send_agendas();
 exit(0);
index d99bb4c..3c26b51 100755 (executable)
 
 // Do CLI checks and environment setup first.
 require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/CLI.php';
+require_once 'Horde/Cli.php';
 
 // Make sure no one runs this from the web.
-if (!Horde_CLI::runningFromCLI()) {
+if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
 
 // Load the CLI environment - make sure there's no time limit, init some
 // variables, etc.
-$cli = &Horde_CLI::singleton();
+$cli = &Horde_Cli::singleton();
 $cli->init();
 
 // Read command line parameters.
index 374bb00..e3996aa 100755 (executable)
 
 // Do CLI checks and environment setup first.
 require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/CLI.php';
+require_once 'Horde/Cli.php';
 
 // Makre sure no one runs this from the web.
-if (!Horde_CLI::runningFromCli()) {
+if (!Horde_Cli::runningFromCli()) {
     exit("Must be run from the command line\n");
 }
 
 // Load the CLI environment - make sure there's no time limit, init some
 // variables, etc.
-$cli = &Horde_CLI::singleton();
+$cli = &Horde_Cli::singleton();
 $cli->init();
 
 // Read command line parameters.
index ee552d0..7db3b0d 100755 (executable)
@@ -4,8 +4,6 @@
  * This script migrates Kronolith's share data from the datatree Horde_Share
  * driver to the new SQL Horde_Share driver. You should run the appropriate
  * 2.1_to_2.2.sql upgrade script for your RDBMS before executing this script.
- *
- * $Horde: kronolith/scripts/upgrades/convert_datatree_shares_to_sql.php,v 1.7 2008/10/23 15:45:05 jan Exp $
  */
 
 @define('AUTH_HANDLER', true);
 
 /* Set up the CLI environment */
 require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/CLI.php';
-if (!Horde_CLI::runningFromCli()) {
+require_once 'Horde/Cli.php';
+if (!Horde_Cli::runningFromCli()) {
     exit("Must be run from the command line\n");
 }
-$cli = &Horde_CLI::singleton();
+$cli = &Horde_Cli::singleton();
 $cli->init();
 
 /* Grab what we need to steal the DB config */
index 9fa8de2..980be7d 100755 (executable)
@@ -2,8 +2,6 @@
 <?php
 /**
  * This script converts all dates from the user's timezone to UTC.
- *
- * $Horde: kronolith/scripts/upgrades/convert_to_utc.php,v 1.2 2008/10/23 10:18:10 jan Exp $
  */
 
 @define('AUTH_HANDLER', true);
 
 /* Set up the CLI environment. */
 require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/CLI.php';
-if (!Horde_CLI::runningFromCLI()) {
+require_once 'Horde/Cli.php';
+if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
-$cli = &Horde_CLI::singleton();
+$cli = &Horde_Cli::singleton();
 $cli->init();
 
 /* Load required libraries. */