From: hickert Date: Tue, 4 Apr 2006 12:07:48 +0000 (+0000) Subject: Fixed copy & paste (attribute_mail) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7f8abaa9ca47f0e83c0c00537c565f32d52d158b;p=gosa.git Fixed copy & paste (attribute_mail) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2980 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/main.php b/html/main.php index 8471e3eea..149839745 100644 --- a/html/main.php +++ b/html/main.php @@ -39,6 +39,12 @@ session_set_cookie_params(24*60*60); /* Remember everything we did after the last click */ session_start (); +if(file_exists("../../Lab/GosaStuff/TimeTest/TimeTest.php")){ + require_once("../../Lab/GosaStuff/TimeTest/TimeTest.php"); + $_SESSION['TT'] = new TimeTest(); + $_SESSION['TT'] -> AddPoint("Main"); +} + if ($_SERVER["REQUEST_METHOD"] == "POST"){ @DEBUG (DEBUG_POST, __LINE__, __FUNCTION__, __FILE__, $_POST, "_POST"); @@ -366,6 +372,11 @@ if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->d tidy_clean_repair($display); } +if(isset($_SESSION['TT'])){ + $_SESSION['TT']->AddPoint("Ende"); + echo $_SESSION['TT']->Draw(); +} + /* Show page... */ echo $display; diff --git a/include/class_tabs.inc b/include/class_tabs.inc index cda88a02c..689d89268 100644 --- a/include/class_tabs.inc +++ b/include/class_tabs.inc @@ -272,7 +272,7 @@ class tabs $this->SubDialog = true; return($tmp['string']); }else{ - $ret .= "
".$tmp['string']; + $ret .= $tmp['string']; } } } diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 693ee6d05..6d2c229e2 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -35,7 +35,7 @@ class phoneAccount extends plugin /* attribute list for save action */ var $CopyPasteVars = array("phoneNumbers"); - var $attributes = array("goFonDeliveryMode", "goFonFormat","uid","cn","mail", + var $attributes = array("goFonDeliveryMode", "goFonFormat","uid","cn", "goFonHardware","goFonPIN","goFonVoicemailPIN","telephoneNumber", "goFonMacro","macro"); var $objectclasses= array("goFonAccount"); @@ -1015,7 +1015,7 @@ $ldap->modify ($this->attrs); function remove_from_parent() { foreach($this->attributes as $key=>$val){ - if(in_array($val,array("uid","cn","mail"))){ + if(in_array($val,array("uid","cn"))){ unset($this->attributes[$key]); unset($this->$val); } diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index 045d4fe84..2da4db13c 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -669,8 +669,8 @@ $ldap->modify ($this->attrs); /* Save data to LDAP */ $ldap->cd($this->dn); $this->cleanup(); -$ldap->modify ($this->attrs); - + $ldap->modify ($this->attrs); + show_ldap_error($ldap->get_error()); /* Only do IMAP actions if we are not a template */