diff --git a/plugins/admin/systems/class_servService.inc b/plugins/admin/systems/class_servService.inc
index 850a9551550e61b9f2ae218bd37b010e3bdb3c7f..2ee9fc90b1c99d0822027d216ca59339839ef690 100644 (file)
var $goXdmcpIsEnabled = "";
var $goFontPath = "";
var $goNTPServer = "";
- var $goShareServer = "";
+ var $goShareServer = false;
var $goLdapServer = "";
var $goTerminalServer = "";
var $goSyslogServer = "";
$tmp =array();
$tmp2=array();
- unset($this->attrs['goExportEntry']['count']);
- if((isset($this->attrs['goExportEntry']))&&(isset($this->attrs['goExportEntry']))){
- foreach($this->attrs['goExportEntry'] as $entry){
- $tmp2= split("\|",$entry);
- $tmp[$tmp2[0]]= $entry;
+ if(isset($this->attrs['goExportEntry'])){
+ unset($this->attrs['goExportEntry']['count']);
+ if((isset($this->attrs['goExportEntry']))&&(isset($this->attrs['goExportEntry']))){
+ foreach($this->attrs['goExportEntry'] as $entry){
+ $tmp2= split("\|",$entry);
+ $tmp[$tmp2[0]]= $entry;
+ }
}
}
$this->goExportEntry = $tmp;
/* Always is account... */
$this->is_account= TRUE;
+
+ if(is_array($this->attrs['objectClass'])){
+ if(in_array("goShareServer",$this->attrs['objectClass'])){
+ $this->goShareServer = true;
+ }
+ }
}
function addToList($entry){
}
}
- if(!count($this->goExportEntry)){
+ if(!$this->goShareServer){
$smarty->assign("goShareServerState", " disabled ");
+ $smarty->assign("goExportEntryACL", " disabled ");
+ }else{
+ $smarty->assign("goShareServerState", " ");
+ $smarty->assign("goExportEntryACL", " ");
}
/* Different handling for checkbox */
$this->goXdmcpIsEnabled= "false";
}
+ /* Save xdmcp is enabled flag */
+ if (isset($_POST['goShareServer'])){
+ $this->goShareServer = true;
+ } else {
+ $this->goShareServer = false;
+ }
}
}