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) {
}
$cli->message($u . ' ' . $p, 'cli.success');
-}
\ No newline at end of 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';
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';
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) {
}
$cli->message($u . ' ' . $p, 'cli.success');
-}
\ No newline at end of file
+}
*/
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);
}
/* 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);
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';
/* 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 */
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';
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);
* Ensure that the base parameters (especially SERVER_NAME) get set for the
* command line.
*/
-$cli = Horde_CLI::singleton();
+$cli = Horde_Cli::singleton();
$cli->init();
/**
--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';
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);
// 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.
// 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.
* 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 */
<?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. */