Code

Js check goFonConferenceOwner added
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Aug 2005 07:39:06 +0000 (07:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Aug 2005 07:39:06 +0000 (07:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1163 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/conference/class_phoneConferenceGeneric.inc

index 5fd4c0f5da28f77951d28d24a1c6d84615786a0e..604bb7a7646ab3914bf9e8503dc2019b1abde84b 100644 (file)
@@ -36,6 +36,8 @@ class conference extends plugin
   var $goFonConferenceOption_c         = "";   // Count User
   var $goFonConferenceOption_D         = "";   // Conference Type, no PIN/PIN
 
+  var $goFonConferenceOwner    = "";
+
   var $goFonConferenceOptionFormat             = "";
   var $goFonConferenceOptionLifetime   = "";
   var $telephoneNumber                 = "";
@@ -52,7 +54,7 @@ class conference extends plugin
   /* attribute list for save action */
   var $attributes= array("cn","base", "description", "goFonPIN","goFonConferenceOption_P","goFonConferenceOption_r",
                                                 "goFonConferenceOption_M","goFonConferenceOption_s","goFonConferenceOption_i","goFonConferenceOption_c",
-                                                "goFonConferenceOption_D","goFonConferenceOptionFormat","goFonConferenceOptionLifetime","telephoneNumber");
+                                                "goFonConferenceOption_D","goFonConferenceOptionFormat","goFonConferenceOptionLifetime","telephoneNumber","goFonConferenceOwner");
 
   var $objectclasses= array("top", "goFonConference");
 
@@ -77,6 +79,7 @@ class conference extends plugin
       $this->base= preg_replace ("/^[^,]+,/", "", $this->dn);
     }
 
+    $this->goFonConferenceOwner=$this->ui->dn;
 
     /* Parse Options ... 
      * Parameter|Lifetime|number
@@ -121,15 +124,16 @@ class conference extends plugin
                        $smarty->assign($val."CHK", " checked ");
                }
        }
-  if($this->goFonConferenceOption_P != "P"){
-    $smarty->assign("goFonPINACL"," disabled ");
-    $smarty->assign("goFonPIN","");
-  }
-  if($this->goFonConferenceOption_r != "r"){
-    $smarty->assign("goFonConferenceOptionFormatACL"," disabled ");
-  }
 
+  if($_SESSION['js']==1){
+    if($this->goFonConferenceOption_P != "P"){
+      $smarty->assign("goFonPINACL"," disabled ");
+      $smarty->assign("goFonPIN","");
+    }
+    if($this->goFonConferenceOption_r != "r"){
+      $smarty->assign("goFonConferenceOptionFormatACL"," disabled ");
+    }
+  }
        return($smarty->fetch (get_template_path('generic.tpl', TRUE)));
   }