'authentication' always to 'none' when in CLI mode.
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('agora', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('agora', array('cli' => true));
/* Open Agora database. */
$db_agora = $db_phorum = $injector->getInstance('Horde_Core_Factory_DbPear')->create();
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('agora', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('agora', array('cli' => true));
/* Open the database. */
$params = Horde::getDriverConfig('storage', 'sql');
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('agora', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('agora', array('cli' => true));
/* Make sure we have a forum id. */
list($forum_id, , $scope) = Agora::getAgoraId();
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('agora', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('agora', array('cli' => true));
$action_id = Horde_Util::getFormData('action_id', 'download');
$file_id = Horde_Util::getFormData('file_id');
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
/* Command line options */
$ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:f:',
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
// We accept the user name on the command-line.
$ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(),
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
// Default arguments.
$move = $verbose = false;
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
// We accept the user name on the command-line.
$ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:lc:g:a:d:o:k',
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
/* Command line options */
$ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:g:s:d:kr:zl',
exit;
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('folks', array('cli' => true));
try {
$db = $injector->getInstance('Horde_Core_Factory_DbPear')->create();
exit;
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('folks', array('cli' => true));
try {
$db = $injector->getInstance('Horde_Core_Factory_DbPear')->create();
}
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('folks', array('cli' => true));
// Read command-line parameters.
$info = array();
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true, 'no_compress' => true));
+Horde_Registry::appInit('folks', array('cli' => true, 'no_compress' => true));
// We accept the user name on the command-line.
$ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'h:u:p:dt:f:c:',
exit;
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('folks', array('cli' => true));
try {
$db = $injector->getInstance('Horde_Core_Factory_DbPear')->create();
* 'none' - Do not authenticate
* 'throw' - Authenticate; on no auth, throw a Horde_Exception
* [DEFAULT] - Authenticate; on no auth redirect to login screen
- * 'cli' - (boolean) Initialize a CLI interface.
+ * 'cli' - (boolean) Initialize a CLI interface. Setting this to true
+ * implicits setting 'authentication' to 'none' and 'admin' and
+ * 'nocompress' to true.
* DEFAULT: false
* 'nocompress' - (boolean) If set, the page will not be compressed.
* DEFAULT: false
$GLOBALS['cli'] = Horde_Cli::init();
$args['nocompress'] = true;
+ $args['authentication'] = 'none';
}
// Registry.
*/
require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/horde/lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
$conf['server']['name'] = 'localhost';
$conf['server']['port'] = 80;
/* Do Horde includes if test for horde backend: */
if ($syncml_backend_driver == 'Horde') {
require_once dirname(__FILE__) . '/../../../lib/Application.php';
- Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true, 'session_control' => 'none'));
+ Horde_Registry::appInit('horde', array('cli' => true, 'session_control' => 'none'));
}
if (!empty($testsetuponly)) {
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('horde', array('cli' => true, 'user_admin' => true));
$injector->getInstance('Horde_Alarm')->notify(null, true, false, array('notify', 'desktop'));
// End Configuration
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
// Get an instance of the cron scheduler.
$daemon = Horde_Scheduler::factory('Cron');
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
$c = new Console_Getopt();
$argv = $c->readPHPArgv();
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
// Read command line parameters.
if ($argc != 2) {
// Do CLI checks and environment setup first.
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
// Read command line parameters.
if ($argc != 2) {
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
require_once 'Horde/DataTree.php';
$datatree = DataTree::factory('sql',
/* Set up the CLI environment */
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
$config = $GLOBALS['conf']['sql'];
unset($config['charset']);
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
$g = Horde_Group::factory();
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
$p = Horde_Perms::factory('datatree');
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
$cManager = new Horde_Prefs_CategoryManager();
$apps = $registry->listApps(array('hidden', 'notoolbar', 'active', 'admin'));
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
$cli->writeln($cli->yellow("Beginning migration. This may take a very long time to complete."));
$cli->writeln();
<?php
require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
/* Create the fax information array. Set fax_type to 1 for outgoing. */
$info = array('fax_type' => 1);
<?php
require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
/* Create the fax information array. Set fax_type to 0 for incoming. */
$info = array('fax_type' => 0,
<?php
require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
/* Store the raw fax postscript data. */
$data = $cli->readStdin();
<?php
require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
/* Get the arguments. The first argument is the filename from which the job ID
* is obtained, in the format 'recvq/faxNNNNN.tif'. */
<?php
require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
/* The CUPS backend file. */
$hylafax_backend = file_get_contents(HYLAX_BASE . '/scripts/cups/hylafax');
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('imp', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('imp', array('cli' => true));
$c = new Console_Getopt();
$argv = $c->readPHPArgv();
*/
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('ingo', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ingo', array('cli' => true));
exit('Not updated');
/* Set up the CLI environment */
require_once dirname(__FILE__) . '/../../../lib/Application.php';
-Horde_Registry::appInit('ingo', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ingo', array('cli' => true));
$config = $GLOBALS['conf']['sql'];
unset($config['charset']);
*/
require_once dirname(__FILE__) . '/../../../lib/Application.php';
-Horde_Registry::appInit('ingo', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ingo', array('cli' => true));
/* Initialize storage backends. */
if ($conf['storage']['driver'] != 'sql') {
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('jonah', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('jonah', array('cli' => true));
if (empty($argv[1]) || !file_exists($argv[1])) {
exit("Need a valid filename.\n");
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
send_agendas();
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
// Read command line parameters.
$cli = Horde_Cli::singleton();
// Do CLI checks and environment setup first.
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true, 'user_admin' => true));
// Read command line parameters.
if ($argc != 2) {
/* Set up the CLI environment */
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
$config = $GLOBALS['conf']['sql'];
unset($config['charset']);
/* Set up the CLI environment */
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
require_once dirname(__FILE__) . '/../../migration/15_kronolith_upgrade_sqlng.php';
/* Set up the CLI environment. */
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
/* Prepare DB stuff. */
PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, create_function('$e', 'echo $e->toString()."\n";exit;'));
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('nag', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('nag', array('cli' => true));
// Read command line parameters.
if (count($argv) != 3) {
/* Set up the CLI environment */
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('nag', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('nag', array('cli' => true));
/* Grab what we need to steal the DB config */
require_once HORDE_BASE . '/config/conf.php';
// Do CLI checks and environment setup first.
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('nag', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('nag', array('cli' => true));
$history = $GLOBALS['injector']->getInstance('Horde_History');
// Do CLI checks and environment setup first.
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('turba', array('cli' => true, 'user_admin' => true));
// Read command line parameters.
if ($argc != 2) {
// Do CLI checks and environment setup first.
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('turba', array('cli' => true, 'user_admin' => true));
// Read command line parameters.
if ($argc != 2) {
// Do CLI checks and environment setup first.
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('turba', array('cli' => true));
// Read command line parameters.
if (count($argv) != 3) {
/* Set up the CLI environment */
require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('turba', array('cli' => true));
/* Grab what we need to steal the DB config */
require_once HORDE_BASE . '/config/conf.php';
// Load Horde and Turba enviroments
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('turba', array('cli' => true, 'user_admin' => true));
$CLI->writeln('This script will turn all entries in the SQL address book into a globally shared address book.');
$CLI->writeln('Make sure you read the script comments and be sure you know what you are doing.');
function setUp()
{
require_once dirname(__FILE__) . '/../Application.php';
- Horde_Registry::appInit('whups', array('authentication' => 'none', 'cli' => true));
+ Horde_Registry::appInit('whups', array('cli' => true));
}
/**
/* END CONFIGURATION */
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('whups', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('whups', array('cli' => true));
function sectionHeader($text)
{
}
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('whups', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('whups', array('cli' => true));
// Set server name.
$conf['server']['name'] = $conf['mail']['server_name'];
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('wicked', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('wicked', array('cli' => true));
// Create driver instance.
if ($conf['storage']['driver'] != 'sql') {
}
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('wicked', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('wicked', array('cli' => true));
$dateFormat = "F j, Y";
$keepHeaders = array('From', 'To', 'Subject', 'Cc', 'Date');
*/
require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('wicked', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('wicked', array('cli' => true));
$debug = false;
$out = 'screen';