$registry = Horde_Registry::singleton();
try {
- $registry->pushApp('babel', true);
+ $registry->pushApp('babel', array('logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('babel', $e);
}
// Registry
$registry = Horde_Registry::singleton();
try {
- $registry->pushApp('chora', true);
+ $registry->pushApp('chora', array('logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('chora', $e);
}
// Registry.
$registry = Horde_Registry::singleton();
try {
- $registry->pushApp('crumb', true);
+ $registry->pushApp('crumb', array('logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('crumb', $e);
}
}
try {
- $registry->pushApp('fima', true);
+ $registry->pushApp('fima', array('logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('fima', $e);
}
// Registry.
$registry = Horde_Registry::singleton();
-$authentication = Horde_Util::nonInputVar('folks_authentication');
try {
- $registry->pushApp('folks', ($authentication != 'none'));
+ $registry->pushApp('folks', array('check_perms' => (Horde_Util::nonInputVar('folks_authentication') != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('folks', $e);
}
}
try {
- $registry->pushApp('imp', ($authentication != 'none'));
+ $registry->pushApp('imp', array('check_perms' => ($authentication != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
if ($e->getCode() == Horde_Registry::AUTH_FAILURE) {
if ($authentication == 'throw') {
// Registry.
$registry = Horde_Registry::singleton();
-$authentication = Horde_Util::nonInputVar('ingo_authentication');
try {
- $registry->pushApp('ingo', ($authentication != 'none'));
+ $registry->pushApp('ingo', array('check_perms' => (Horde_Util::nonInputVar('ingo_authentication') != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('ingo', $e);
}
// Registry.
$registry = Horde_Registry::singleton();
try {
- $registry->pushApp('jeta', true);
+ $registry->pushApp('jeta', array('logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('jeta', $e);
}
// Registry.
$registry = Horde_Registry::singleton();
try {
- $registry->pushApp('kastalia', true);
+ $registry->pushApp('kastalia', array('logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('kastalia', $e);
}
// Registry.
$registry = Horde_Registry::singleton();
try {
- $registry->pushApp('kastalia', true);
+ $registry->pushApp('kastalia', array('logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('kastalia', $e);
}
}
$registry = Horde_Registry::singleton($s_ctrl);
-$authentication = Horde_Util::nonInputVar('kronolith_authentication');
try {
- $registry->pushApp('kronolith', ($authentication != 'none'));
+ $registry->pushApp('kronolith', array('check_perms' => (Horde_Util::nonInputVar('kronolith_authentication') != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('kronolith', $e);
}
// Registry.
$registry = Horde_Registry::singleton();
-$authentication = Horde_Util::nonInputVar('news_authentication');
try {
- $registry->pushApp('news', ($authentication != 'none'));
+ $registry->pushApp('news', array('check_perms' => (Horde_Util::nonInputVar('news_authentication') != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('news', $e);
}
// Registry.
$registry = Horde_Registry::singleton();
-$authentication = Horde_Util::nonInputVar('skoli_authentication');
try {
- $registry->pushApp('skoli', ($authentication != 'none'));
+ $registry->pushApp('skoli', array('check_perms' => (Horde_Util::nonInputVar('skoli_authentication') != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('skoli', $e);
}
}
try {
- $registry->pushApp('timeobjects', true);
+ $registry->pushApp('timeobjects', array('logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('timeobjects', $e);
}
// Registry.
$registry = Horde_Registry::singleton();
-$authentication = Horde_Util::nonInputVar('turba_authentication');
try {
- $registry->pushApp('turba', ($authentication != 'none'));
+ $registry->pushApp('turba', array('check_perms' => (Horde_Util::nonInputVar('turba_authentication') != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
Horde_Auth::authenticationFailureRedirect('turba', $e);
}
/* HACK: ensure we've included this so that it won't get included
* again, then override the globals it provides. */
try {
- $pushed = $registry->pushApp('turba', false);
+ $pushed = $registry->pushApp('turba', array('check_perms' => false));
} catch (Horde_Exception $e) {
return;
}
function getPage()
{
- $this->_pageParams['registry']->pushApp('turba', false);
+ $this->_pageParams['registry']->pushApp('turba', array('check_perms' => false));
$this->fakeAuth();
$page = new Turba_BrowsePage($this->_pageParams);
$this->_output = Horde_Util::bufferOutput(array($page, 'run'));
$this->assertTrue($world['auth']->authenticate('wrobel@example.org',
array('password' => 'none')));
- // TODO: Disable maintenance
- $GLOBALS['registry']->pushApp('turba');
-
- // Find the base file path of Turba.
- if (!defined('TURBA_BASE')) {
- define('TURBA_BASE', dirname(__FILE__) . '/../..');
- }
+ $GLOBALS['registry']->pushApp('turba', array('check_perms' => false));
// Turba base libraries.
+ require_once dirname(__FILE__) . '/../../lib/base.load.php';
require_once TURBA_BASE . '/lib/Turba.php';
require_once TURBA_BASE . '/lib/Driver.php';
require_once TURBA_BASE . '/lib/Object.php';
$GLOBALS['cfgSources'] = Turba::getConfigFromShares($cfgSources);
}
-
function provideServerName() {
return 'localhost.localdomain';
}
function provideHordeBase() {
- return dirname(__FILE__) . '/../../../';
+ require_once dirname(__FILE__) . '/../../lib/base.load.php';
+ return HORDE_BASE;
}
}
function getPage()
{
- $this->_pageParams['registry']->pushApp('turba', false);
+ $this->_pageParams['registry']->pushApp('turba', array('check_perms' => false));
$this->fakeAuth();
$page = new Turba_View_Browse($this->_pageParams);
$this->_output = Horde_Util::bufferOutput(array($page, 'run'));