Remove unused variables.
authorJan Schneider <jan@horde.org>
Tue, 3 Nov 2009 16:27:04 +0000 (17:27 +0100)
committerJan Schneider <jan@horde.org>
Tue, 3 Nov 2009 16:27:04 +0000 (17:27 +0100)
kronolith/index.php

index e43e958..9aa5053 100644 (file)
@@ -15,8 +15,6 @@ if (!$prefs->getValue('dynamic_view') || !$browser->hasFeature('xmlhttpreq')) {
 }
 
 /* Load Ajax interface. */
-require_once 'Horde/Identity.php';
-$identity = Identity::factory();
 $logout_link = Horde::getServiceLink('logout', 'kronolith');
 if ($logout_link) {
     $logout_link = Horde::widget($logout_link, _("_Logout"), 'logout');
@@ -26,17 +24,6 @@ if ($help_link) {
     $help_link = Horde::widget($help_link, _("Help"), 'helplink', 'help', Horde::popupJs($help_link, array('urlencode' => true)) . 'return false;');
 }
 $today = Kronolith::currentDate();
-$remote_calendars = @unserialize($prefs->getValue('remote_cals'));
-$current_user = Horde_Auth::getAuth();
-$my_calendars = array();
-$shared_calendars = array();
-foreach (Kronolith::listCalendars() as $id => $cal) {
-    if ($cal->get('owner') == $current_user) {
-        $my_calendars[$id] = $cal;
-    } else {
-        $shared_calendars[$id] = $cal;
-    }
-}
 $_SESSION['horde_prefs']['nomenu'] = true;
 
 $datejs = str_replace('_', '-', $language) . '.js';