Code

Updated logging
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 May 2007 09:34:08 +0000 (09:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 May 2007 09:34:08 +0000 (09:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6505 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/logview/class_gosa_logview.inc

index 62092ec017273b98c1ad42fd1bd5d5c264e6b8fa..0e84cbcb8bf9726ba9a612f3b46cad45db20038f 100644 (file)
@@ -77,8 +77,8 @@ class gosa_logview extends plugin
     $smarty->assign("ruleset_image", get_template_path('images/edit.png'));
     $smarty->assign("launchimage", get_template_path('images/launch.png'));
     $smarty->assign("date_select", $date_select);
-    $smarty->assign("servers", array());
     $smarty->assign("actions", array());
+    $smarty->assign("direction", "up");
     $smarty->assign("mode0", "");
     $smarty->assign("mode1", "");
     $smarty->assign("mode2", "");
@@ -111,6 +111,7 @@ class gosa_logview extends plugin
     foreach($list_of_servers as $servername => $data){
       $servers[$servername] = $servername;
     }
+    $smarty->assign("servers", $servers);
     
     /* Set a default server, if there is currently no valid server selected */
     if(empty($this->server) || !in_array($this->server,$servers)){
@@ -155,7 +156,7 @@ class gosa_logview extends plugin
     $ui = get_userinfo();
     $dn = $list_of_servers[$this->server]['DN'];
     $acls = $ui->get_permissions($dn,"server/gosaLogServer","viewEntries");
-   
+    
     if(!preg_match("/r/",$acls)){
       $res = "<tr>
         <td colspan=4>