Code

Added first pluign state update and some fixes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 11:21:02 +0000 (11:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 11:21:02 +0000 (11:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4204 594d385d-05f5-0310-b6e9-bd551577e9d8

html/index.php
include/class_plugin.inc
plugins/personal/posix/class_posixAccount.inc

index 3cd6509f0fff8aecc67a961d68269b652a1fc6ad..c5bea796f15b49532b4aa7366a9afe170bb65c0c 100644 (file)
@@ -299,7 +299,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){
               if (preg_match("/\bpassword\b/i",$value)){
                 $plug=$key;
                 gosa_log ("User \"$username\" password forced to change");
-                header ("Location: main.php?plug=$plug&reset=1");
+                header ("Location: main.php?plug=$plug&amp;reset=1");
                 exit;
               }
             }
index cf8682f84733233f952937e82085a93b19927c3b..670fa16f2c148b6ad680dddd1d12e9a5cf2d4367 100644 (file)
@@ -289,6 +289,9 @@ class plugin
           $data = "";  
         }
         $this->$val= $data;
+        echo "<font color='blue'>".$val."</font><br>";
+      }else{
+        echo "<font color='red'>".$val."</font><br>";
       }
     }
   }
@@ -1413,14 +1416,14 @@ echo "FIXME: remove_snapshot uses old acl's<br>";
   function acl_is_createable()
   {
     $ui= get_userinfo();
-    return preg_match('/c/', $ui->get_permissions($this->dn, get_class($this), 'dummy'));
+    return preg_match('/c/', $ui->get_permissions($this->dn, get_class($this), '0'));
   }
 
 
-  function acl_is_removable()
+  function acl_is_removeable()
   {
     $ui= get_userinfo();
-    return preg_match('/d/', $ui->get_permissions($this->dn, get_class($this), 'dummy'));
+    return preg_match('/d/', $ui->get_permissions($this->dn, get_class($this), '0'));
   }
 
 }
index 70ccf42cfe50776e55967900ee6b6eca5cb0a865..f5caade65c8295c20e7e081ff076f6b85af19790 100644 (file)
@@ -259,14 +259,14 @@ class posixAccount extends plugin
              in the moment, because I need to rely on unique
              uidNumbers. There'll be a better solution later
              on. */
-          $display= $this->show_header(_("Remove posix account"),
+          $display= $this->show_disable_header(_("Remove posix account"),
               _("This account has unix features enabled. To disable them, you'll need to remove the samba / environment account first."), TRUE);
         } else {
-          $display= $this->show_header(_("Remove posix account"),
+          $display= $this->show_disable_header(_("Remove posix account"),
               _("This account has posix features enabled. You can disable them by clicking below."));
         }
       } else {
-        $display= $this->show_header(_("Create posix account"),
+        $display= $this->show_enable_header(_("Create posix account"),
             _("This account has posix features disabled. You can enable them by clicking below."));
         return($display);
       }