[kronolith] Weird problem with kronolith...
David J. Weller-Fahy
lists at weller-fahy.com
Sun Dec 8 21:37:17 2002
* David J. Weller-Fahy <lists@weller-fahy.com> [2002-12-08 12:30]:
> * David J. Weller-Fahy <lists@weller-fahy.com> [2002-12-07 13:45]:
> Looks like the libraries were being loaded after the Auth call which
> required them. Hmmm... Here's a diff of the original (release) base.php
> and the modified one. It no longer gives the error, however after
> login (horde using imp to authenticate) if I click on Calendar, then on
> a task, it makes me login again. (?) This, I assume, is not the
> intended behavior.
Forgot the diff, it's attached.
Regards,
dave
-------------- next part --------------
--- /root/hcvs/horde/kronolith/lib/base.php Sun Nov 10 13:50:00 2002
+++ base.php Sun Dec 8 12:19:03 2002
@@ -40,13 +40,6 @@
require_once HORDE_BASE . '/lib/Horde.php';
require_once HORDE_BASE . '/lib/Auth.php';
-// Don't allow access unless there is a Horde login
-if (!Auth::getAuth()) {
- $url = Horde::url($registry->getParam('webroot', 'horde') . '/login.php', true);
- header('Location: ' . Kronolith::addParameter($url, 'url=' . urlencode($_SERVER['PHP_SELF'])));
- exit;
-}
-
// Kronolith base library
require_once KRONOLITH_BASE . '/lib/Kronolith.php';
@@ -62,6 +55,13 @@
// PEAR Date_Calc
require_once 'Date/Calc.php';
+// Don't allow access unless there is a Horde login
+if (!Auth::getAuth()) {
+ $url = Horde::url($registry->getParam('webroot', 'horde') . '/login.php', true);
+ header('Location: ' . Kronolith::addParameter($url, 'url=' . urlencode($_SERVER['PHP_SELF'])));
+ exit;
+}
+
// Set the timezone variable, if available.
$timezone = $GLOBALS['prefs']->getValue('timezone');
if (!empty($timezone)) {
@@ -71,3 +71,4 @@
// Open the users calendar
$GLOBALS['calendar'] = &Kronolith_Driver::factory($conf['calendar']['driver'], $conf['calendar']['params']);
$GLOBALS['calendar']->open(Auth::getAuth());
+?>
More information about the kronolith
mailing list