$notification->attach('status');
/* Registry. */
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('babel', array('logintasks' => true));
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('beatnik', array('check_perms' => (Horde_Util::nonInputVar('beatnik_authentication') != 'none')));
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('crumb', array('logintasks' => true));
} catch (Horde_Exception $e) {
// Registry.
$session_control = Horde_Util::nonInputVar('session_control');
if ($session_control == 'none') {
- $registry = Horde_Registry::singleton(HORDE_SESSION_NONE);
+ $registry = new Horde_Registry(HORDE_SESSION_NONE);
} elseif ($session_control == 'readonly') {
- $registry = Horde_Registry::singleton(HORDE_SESSION_READONLY);
+ $registry = new Horde_Registry(HORDE_SESSION_READONLY);
} else {
- $registry = Horde_Registry::singleton();
+ $registry = new Horde_Registry();
}
try {
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('folks', array('check_perms' => (Horde_Util::nonInputVar('folks_authentication') != 'none')));
} catch (Horde_Exception $e) {
$qstring .= '/' . $key . '=' . rawurlencode($val);
}
- $registry = Horde_Registry::singleton();
- return Horde::url($registry->get('webroot', 'horde') . '/services/imple.php?' . $qstring, $full);
+ return Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/imple.php?' . $qstring, $full);
}
/**
static public function removeUserData($userId)
{
$errApps = array();
- $registry = Horde_Registry::singleton();
- foreach ($registry->listApps(array('notoolbar', 'hidden', 'active', 'admin')) as $app) {
+ foreach ($GLOBALS['registry']->listApps(array('notoolbar', 'hidden', 'active', 'admin')) as $app) {
try {
- $registry->callByPackage($app, 'removeUserData', array($userId));
+ $GLOBALS['registry']->callByPackage($app, 'removeUserData', array($userId));
} catch (Horde_Auth_Exception $e) {
Horde::logMessage($e, __FILE__, __LINE__, PEAR_LOG_ERR);
$errApps[] = $app;
*/
static public function getLogoutUrl($options = array())
{
- $registry = Horde_Registry::singleton();
-
if (!isset($options['reason'])) {
$options['reason'] = self::getAuthError();
}
}
}
- return Horde_Util::addParameter(Horde::url($registry->get('webroot', 'horde') . '/login.php', true), $params, null, false);
+ return Horde::getServiceLink('login', 'horde')->add($params)->setRaw(true);
}
/**
);
/* Reload preferences for the new user. */
- $registry = Horde_Registry::singleton();
- $registry->loadPrefs();
+ $GLOBALS['registry']->loadPrefs();
Horde_Nls::setLang($GLOBALS['prefs']->getValue('language'));
if (!empty($options['nologin'])) {
unset($_SESSION['horde_auth']);
/* Remove the user's cached preferences if they are present. */
- $registry = Horde_Registry::singleton();
- $registry->unloadPrefs();
+ $GLOBALS['registry']->unloadPrefs();
}
/**
if (!in_array($capability, $this->_loaded) &&
isset($this->_apiMethods[$capability])) {
- $registry = Horde_Registry::singleton();
- $this->_capabilities[$capability] = $registry->hasAppMethod($this->_app, $this->_apiMethods[$capability]);
+ $this->_capabilities[$capability] = $GLOBALS['registry']->hasAppMethod($this->_app, $this->_apiMethods[$capability]);
$this->_loaded[] = $capability;
}
throw new Horde_Auth_Exception($this->_app . ' does not provide an authenticate() method.');
}
- $registry = Horde_Registry::singleton();
-
$credentials['auth_ob'] = $this;
try {
- $result = $registry->callAppMethod($this->_app, $this->_apiMethods['authenticate'], array('args' => array($userId, $credentials), 'noperms' => true));
+ $result = $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['authenticate'], array('args' => array($userId, $credentials), 'noperms' => true));
} catch (Horde_Auth_Exception $e) {
throw new Horde_Auth_Exception('', Horde_Auth::REASON_BADLOGIN);
}
public function listUsers()
{
if ($this->hasCapability('list')) {
- $registry = Horde_Registry::singleton();
- return $registry->callAppMethod($this->_app, $this->_apiMethods['list']);
+ return $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['list']);
} else {
return parent::listUsers();
}
public function exists($userId)
{
if ($this->hasCapability('exists')) {
- $registry = Horde_Registry::singleton();
- return $registry->callAppMethod($this->_app, $this->_apiMethods['exists'], array('args' => array($userId)));
+ return $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['exists'], array('args' => array($userId)));
} else {
return parent::exists($userId);
}
public function addUser($userId, $credentials)
{
if ($this->hasCapability('add')) {
- $registry = Horde_Registry::singleton();
- $registry->callAppMethod($this->_app, $this->_apiMethods['add'], array('args' => array($userId, $credentials)));
+ $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['add'], array('args' => array($userId, $credentials)));
} else {
parent::addUser($userId, $credentials);
}
public function updateUser($oldID, $newID, $credentials)
{
if ($this->hasCapability('update')) {
- $registry = Horde_Registry::singleton();
- $registry->callAppMethod($this->_app, $this->_apiMethods['update'], array('args' => array($oldID, $newID, $credentials)));
+ $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['update'], array('args' => array($oldID, $newID, $credentials)));
} else {
parent::updateUser($userId, $credentials);
}
public function resetPassword($userId)
{
if ($this->hasCapability('resetpassword')) {
- $registry = Horde_Registry::singleton();
- return $registry->callAppMethod($this->_app, $this->_apiMethods['resetpassword'], array('args' => array($userId)));
+ return $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['resetpassword'], array('args' => array($userId)));
}
return parent::resetPassword();
public function removeUser($userId)
{
if ($this->hasCapability('remove')) {
- $registry = Horde_Registry::singleton();
- $registry->callAppMethod($this->_app, $this->_apiMethods['remove'], array('args' => array($userId)));
+ $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['remove'], array('args' => array($userId)));
Horde_Auth::removeUserData($userId);
} else {
parent::removeUser($userId);
!$this->hasCapability('authenticate'));
}
- $registry = Horde_Registry::singleton();
- return $registry->callAppMethod($this->_app, $this->_apiMethods['transparent'], array('args' => array($this), 'noperms' => true));
+ return $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['transparent'], array('args' => array($this), 'noperms' => true));
}
/**
return parent::getLoginParams();
}
- $registry = Horde_Registry::singleton();
- return $registry->callAppMethod($this->_app, $this->_apiMethods['loginparams'], array('noperms' => true));
+ return $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['loginparams'], array('noperms' => true));
}
/**
protected function _authCallback()
{
if ($this->hasCapability('authenticatecallback')) {
- $registry = Horde_Registry::singleton();
- $registry->callAppMethod($this->_app, $this->_apiMethods['authenticatecallback'], array('noperms' => true));
+ $GLOBALS['registry']->callAppMethod($this->_app, $this->_apiMethods['authenticatecallback'], array('noperms' => true));
}
}
switch ($cache_type) {
case 'filesystem':
$css_filename = '/static/' . $sig . '.css';
- $css_path = $GLOBALS['registry']->get('fileroot', 'horde') . $css_filename;
- $css_url = $GLOBALS['registry']->get('webroot', 'horde') . $css_filename;
+ $css_path = $registry->get('fileroot', 'horde') . $css_filename;
+ $css_url = $registry->get('webroot', 'horde') . $css_filename;
$exists = file_exists($css_path);
break;
*/
static public function getCacheUrl($type, $params = array())
{
- $registry = Horde_Registry::singleton();
- $url = Horde_Util::addParameter(self::getserviceLink('cache', 'horde'), array('cache' => $type));
+ $url = self::getserviceLink('cache', 'horde')->add('cache', $type);
foreach ($params as $key => $val) {
$url .= '/' . $key . '=' . rawurlencode(strval($val));
}
*/
static public function appInit($app, $args = array())
{
+ if (isset($GLOBALS['registry'])) {
+ $this->init();
+ return $GLOBALS['registry']->getApiInstance($app, 'application');
+ }
+
$args = array_merge(array(
'admin' => false,
'authentication' => null,
break;
}
- $GLOBALS['registry'] = self::singleton($s_ctrl);
+ $classname = __CLASS__;
+ $GLOBALS['registry'] = new $classname($s_ctrl);
+
$appob = $GLOBALS['registry']->getApiInstance($app, 'application');
$appob->initParams = $args;
}
/**
- * Returns a reference to the global Horde_Registry object, only creating
- * it if it doesn't already exist.
- *
- * This method must be invoked as:
- * $registry = Horde_Registry::singleton()
- *
- * @param integer $session_flags Any session flags.
- *
- * @return Horde_Registry The Horde_Registry instance.
- * @throws Horde_Exception
- */
- static public function singleton($session_flags = 0)
- {
- if (!isset(self::$_instance)) {
- self::$_instance = new self($session_flags);
- }
-
- return self::$_instance;
- }
-
- /**
* Create a new Horde_Registry instance.
*
* @param integer $session_flags Any session flags.
$injector->addBinder('Horde_Template', new Horde_Core_Binder_Template());
$injector->addBinder('Net_DNS_Resolver', new Horde_Core_Binder_Dns());
+ $injector->setInstance('Horde_Registry', $this);
+
/* Initialize browser object. */
$GLOBALS['browser'] = Horde_Browser::singleton();
+ $injector->setInstance('Horde_Browser', $GLOBALS['browser']);
/* Import and global Horde's configuration values. Almost a chicken
* and egg issue - since loadConfiguration() uses registry in certain
}
/** Provide the horde registry */
- $GLOBALS['registry'] = Horde_Registry::singleton();
+ $GLOBALS['registry'] = new Horde_Registry();
$GLOBALS['notification'] = Horde_Notification::singleton();
$this->prepareFixedConfiguration();
*/
static public function generateNavigationCell($app, $group)
{
- $registry = Horde_Registry::singleton();
-
// Search for previous and next groups.
$first = $last = $next = $previous = null;
$finish = $found = false;
}
echo '<ul><li>' .
- Horde::link(Horde_Util::addParameter(Horde::url($registry->get('webroot', 'horde') . '/services/prefs.php'), array('app' => $app, 'group' => $previous), _("Previous options"))) .
+ Horde::link(Horde_Util::addParameter(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs.php'), array('app' => $app, 'group' => $previous), _("Previous options"))) .
'<< ' . $prefGroups[$previous]['label'] .
'</a> | ' .
- Horde::link(Horde_Util::addParameter(Horde::url($registry->get('webroot', 'horde') . '/services/prefs.php'), array('app' => $app, 'group' => $next), _("Next options"))) .
+ Horde::link(Horde_Util::addParameter(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs.php'), array('app' => $app, 'group' => $next), _("Next options"))) .
$prefGroups[$next]['label'] . ' >>' .
'</a></li></ul>';
}
/eix
EOR;
- if (class_exists('Horde_Registry')) {
- $registry = Horde_Registry::singleton();
- }
-
- if (isset($registry) &&
- $registry->hasMethod('mail/compose') &&
+ if (isset($GLOBALS['registry']) &&
+ $GLOBALS['registry']->hasMethod('mail/compose') &&
!$this->_params['always_mailto']) {
/* If we have a mail/compose registry method, use it. */
$replacement = 'Horde_Text_Filter_Emails::callback(\'registry\', \''
parse_str($args, $extra);
try {
- $registry = Horde_Registry::singleton();
- $url = $registry->call('mail/compose',
- array(array('to' => $email),
- $extra));
+ $url = $GLOBALS['registry']->call('mail/compose', array(array('to' => $email), $extra));
} catch (Horde_Exception $e) {
$url = 'mailto:' . urlencode($email);
}
Horde_Registry::appInit('horde');
// Create the Registry object.
- $this->_registry = Horde_Registry::singleton();
+ $this->_registry = $GLOBALS['registry'];
}
function _connect()
*/
function size($path, $name)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
return PEAR::raiseError(_("Not supported."));
}
*/
function read($path, $name)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
-
if (substr($path, 0, 1) == '/') {
$path = substr($path, 1);
}
*/
function write($path, $name, $tmpFile, $autocreate = false)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
return PEAR::raiseError(_("Not supported."));
}
*/
function writeData($path, $name, $data, $autocreate = false)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
return PEAR::raiseError(_("Not supported."));
}
*/
function move($path, $name, $dest)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
return PEAR::raiseError(_("Not supported."));
}
*/
function copy($path, $name, $dest)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
return PEAR::raiseError(_("Not supported."));
}
*/
function deleteFile($path, $name)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
return PEAR::raiseError(_("Not supported."));
}
*/
function rename($oldpath, $oldname, $newpath, $newname)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
return PEAR::raiseError(_("Not supported."));
}
function _listFolder($path, $filter = null, $dotfiles = true,
$dironly = false)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
$list = array();
if ($path == '/') {
$apps = $this->_registry->listApps(null, false, Horde_Perms::READ);
*/
function listFolders($path = '', $filter = null, $dotfolders = true)
{
- if (is_a($this->_registry, 'PEAR_Error')) {
- return $this->_registry;
- }
return PEAR::raiseError(_("Not supported."));
}
$lang = getenv('LANG');
}
- $registry = Horde_Registry::singleton(Horde_Registry::SESSION_NONE);
+ $registry = new Horde_Registry(Horde_Registry::SESSION_NONE);
for ($i = 0; $i < count($dirs); $i++) {
if (!empty($module) && $module != $apps[$i]) {
if (empty($args['app'])) {
exit;
}
- $registry = Horde_Registry::singleton();
try {
$result = $registry->callAppMethod($args['app'], 'cacheOutput', array('args' => array($args)));
$data = $result['data'];
$impleargs = $impleName;
if (isset($args['impleApp'])) {
- $registry = Horde_Registry::singleton();
$registry->pushApp($args['impleApp']);
$impleargs = array($args['impleApp'], $impleName);
}
<?php
-$registry = Horde_Registry::singleton();
$rtl = isset(Horde_Nls::$config['rtl'][$GLOBALS['language']]);
$sidebar_width = isset($GLOBALS['prefs']) ? $GLOBALS['prefs']->getValue('sidebar_width') : 150;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">
<html>
<head>
- <link rel="SHORTCUT ICON" href="<?php echo $registry->getImageDir() ?>/favicon.ico" />
- <title><?php echo htmlspecialchars($registry->get('name')) ?></title>
+ <link rel="SHORTCUT ICON" href="<?php echo $GLOBALS['registry']->getImageDir() ?>/favicon.ico" />
+ <title><?php echo htmlspecialchars($GLOBALS['registry']->get('name')) ?></title>
</head>
<frameset id="hf" cols="<?php echo ($rtl ? '*,' : '') . $sidebar_width . ($rtl ? '' : ',*') ?>" framespacing="0" frameborder="0">
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('imp', array('tz' => true));
+Horde_Registry::appInit('imp');
+
+Horde_Nls::setTimeZone();
/* Determine if compose mode is disabled. */
$compose_disable = !IMP::canCompose();
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('imp', array('tz' => true));
+Horde_Registry::appInit('imp');
+
+Horde_Nls::setTimeZone();
/* The message text and headers. */
$expand = array();
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('imp', array('session_control' => 'netscape', 'tz' => true));
+Horde_Registry::appInit('imp', array('session_control' => 'netscape'));
+
+Horde_Nls::setTimeZone();
/* The message headers and text. */
$header = array();
*/
protected function _init()
{
- if (!empty($this->initParams['tz'])) {
- Horde_Nls::setTimeZone();
- }
-
$GLOBALS['injector']->addBinder('IMP_Imap_Tree', new IMP_Injector_Binder_Imaptree());
// Initialize global $imp_imap object.
{
self::$prefsCache['sourceselect'] = array();
- $registry = Horde_Registry::singleton();
- if (!$registry->hasMethod('contacts/sources') ||
+ if (!$GLOBALS['registry']->hasMethod('contacts/sources') ||
$GLOBALS['prefs']->isLocked('search_sources')) {
return;
}
$readable = $search_fields = $prefSelect = $writeable = $writeSelect = array();
try {
- $readable = $registry->call('contacts/sources');
+ $readable = $GLOBALS['registry']->call('contacts/sources');
} catch (Horde_Exception $e) {}
try {
- $writeable = $registry->call('contacts/sources', array(true));
+ $writeable = $GLOBALS['registry']->call('contacts/sources', array(true));
} catch (Horde_Exception $e) {}
$search = IMP_Compose::getAddressSearchParams();
$search_fields[$source_count][] = $source;
try {
- foreach ($registry->call('contacts/fields', array($source)) as $field) {
+ foreach ($GLOBALS['registry']->call('contacts/fields', array($source)) as $field) {
if ($field['search']) {
$search_fields[$source_count][] = array($field['name'], $field['label'], isset($search['fields'][$source]) && in_array($field['name'], $search['fields'][$source]));
}
$sess['file_upload'] = $GLOBALS['browser']->allowFileUploads();
/* Is the 'mail/canApplyFilters' API call available? */
- $registry = Horde_Registry::singleton();
try {
- if ($registry->call('mail/canApplyFilters')) {
+ if ($GLOBALS['registry']->call('mail/canApplyFilters')) {
$sess['filteravail'] = true;
}
} catch (Horde_Exception $e) {}
/* Is the 'tasks/listTasklists' call available? */
if ($conf['tasklist']['use_tasklist'] &&
- $registry->hasMethod('tasks/listTasklists')) {
+ $GLOBALS['registry']->hasMethod('tasks/listTasklists')) {
$sess['tasklistavail'] = true;
}
/* Is the 'notes/listNotepads' call available? */
if ($conf['notepad']['use_notepad'] &&
- $registry->hasMethod('notes/listNotepads')) {
+ $GLOBALS['registry']->hasMethod('notes/listNotepads')) {
$sess['notepadavail'] = true;
}
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('imp', array('tz' => true));
+Horde_Registry::appInit('imp');
+
+Horde_Nls::setTimeZone();
/* Determine if mailbox is readonly. */
$readonly = $imp_imap->isReadOnly($imp_mbox['mailbox']);
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('imp', array('tz' => true));
+Horde_Registry::appInit('imp');
+
+Horde_Nls::setTimeZone();
/* Call the mailbox redirection hook, if requested. */
try {
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('imp', array('tz' => true));
+Horde_Registry::appInit('imp');
+
+Horde_Nls::setTimeZone();
/* Make sure we have a valid index. */
$imp_mailbox = IMP_Mailbox::singleton($imp_mbox['mailbox'], $imp_mbox['uid'] . IMP::IDX_SEP . $imp_mbox['thismailbox']);
}
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('imp', array('tz' => true));
+Horde_Registry::appInit('imp');
+
+Horde_Nls::setTimeZone();
/* We know we are going to be exclusively dealing with this mailbox, so
* select it on the IMAP server (saves some STATUS calls). Open R/W to clear
*/
require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('imp', array('tz' => true));
+Horde_Registry::appInit('imp');
+
+Horde_Nls::setTimeZone();
/* What mode are we in?
* DEFAULT/'thread' - Thread mode
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('kastalia', array('logintasks' => true));
} catch (Horde_Exception $e) {
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('kastalia', array('logintasks' => true));
} catch (Horde_Exception $e) {
{
global $registry, $notification, $browser;
- $registry = Horde_Registry::singleton();
-
$notification = Horde_Notification::singleton();
$notification->attach('status');
$nocss = true;
}
- /* Load the registry with no session control */
- $registry = Horde_Registry::singleton(Horde_Registry::SESSION_NONE);
-
-
/* Build the block parameters */
$params = array(
'calendar' => $calendar,
);
/* Call the Horde_Block api to get the calendar HTML */
- $title = $registry->call('horde/blockTitle', array('kronolith', $view, $params));
- $results = $registry->call('horde/blockContent', array('kronolith', $view, $params));
+ $title = $GLOBALS['registry']->call('horde/blockTitle', array('kronolith', $view, $params));
+ $results = $GLOBALS['registry']->call('horde/blockContent', array('kronolith', $view, $params));
/* Some needed paths */
- $js_path = $registry->get('jsuri', 'kronolith');
+ $js_path = $GLOBALS['registry']->get('jsuri', 'kronolith');
/* Local js */
$jsurl = Horde::url($js_path . '/embed.js', true);
/* Horde's js */
- $hjs_path = $registry->get('jsuri', 'horde');
+ $hjs_path = $GLOBALS['registry']->get('jsuri', 'horde');
$hjsurl = Horde::url($hjs_path . '/tooltips.js', true);
$pturl = Horde::url($hjs_path . '/prototype.js', true);
/* CSS */
if (empty($nocss)) {
- $cssurl = Horde::url($registry->get('themesuri', 'kronolith') . '/embed.css', true);
- $hcssurl = Horde::url($registry->get('themesuri', 'horde') . '/embed.css', true);
+ $cssurl = Horde::url($GLOBALS['registry']->get('themesuri', 'kronolith') . '/embed.css', true);
+ $hcssurl = Horde::url($GLOBALS['registry']->get('themesuri', 'horde') . '/embed.css', true);
} else {
$cssurl= '';
}
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('news', array('check_perms' => (Horde_Util::nonInputVar('news_authentication') != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('skoli', array('check_perms' => (Horde_Util::nonInputVar('skoli_authentication') != 'none'), 'logintasks' => true));
} catch (Horde_Exception $e) {
/* Registry. */
$session_control = Horde_Util::nonInputVar('session_control');
if ($session_control == 'none') {
- $registry = Horde_Registry::singleton(Horde_Registry::SESSION_NONE);
+ $registry = new Horde_Registry(Horde_Registry::SESSION_NONE);
} elseif ($session_control == 'readonly') {
- $registry = Horde_Registry::singleton(Horde_Registry::SESSION_READONLY);
+ $registry = new Horde_Registry(Horde_Registry::SESSION_READONLY);
} else {
- $registry = Horde_Registry::singleton();
+ $registry = new Horde_Registry();
}
try {
require_once HORDE_BASE . '/lib/core.php';
/* Registry. */
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
try {
$registry->pushApp('vilma', !defined('AUTH_HANDLER'));
} catch (Horde_Exception $e) {
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
$registry->pushApp('whups');
// Url.
/* Load the Whups libraries. */
require_once HORDE_BASE . '/lib/core.php';
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
$registry->pushApp('whups', false);
$conf = &$GLOBALS['conf'];
/* Load the Whups libraries. */
require_once HORDE_BASE . '/lib/core.php';
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
$registry->pushApp('whups', false);
$conf = &$GLOBALS['conf'];
require_once HORDE_BASE . '/lib/core.php';
// Registry.
-$registry = Horde_Registry::singleton();
+$registry = new Horde_Registry();
$registry->pushApp('wicked');
// Url.