summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2910a7)
raw | patch | inline | side by side (parent: e2910a7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Sep 2007 15:27:07 +0000 (15:27 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Sep 2007 15:27:07 +0000 (15:27 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7336 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/mail/class_mailAccount.inc | patch | blob | history | |
plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index c66caf4bb838c24941c7d1711650367446c0cad7..9d3e07510eeaf0b4806ed8bd505625a08f85efa0 100644 (file)
'dn' from LDAP */
function mailAccount (&$config, $dn= NULL)
{
+ global $class_mapping;
+
/* Load bases attributes */
plugin::plugin($config, $dn);
/* Set mailMethod to the one defined in gosa.conf */
if (isset($this->config->current['MAILMETHOD'])){
$method= $this->config->current['MAILMETHOD'];
- __autoload("mailMethod$method");
- if (class_exists("mailMethod$method")){
+ if (isset($class_mapping["mailMethod$method"])){
$this->method= "mailMethod$method";
} else {
print_red(sprintf(_("There is no mail method '%s' specified in your gosa.conf available."), $method));
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index cbdfbee15285bfb4b2897c3307cc917c4e482e0a..427b4a433313ca43e972f3ee8fe051b7f21d85a5 100644 (file)
$ldap= $this->config->get_ldap_link();
- if ($dn != NULL){
+ if ($dn !== NULL){
/* Correct is_account. shadowAccount is not required. */
if (isset($this->attrs['objectClass']) &&
}
/* Do we represent a valid posixAccount? */
- if (!$this->is_account && $this->parent == NULL ){
+ if (!$this->is_account && $this->parent === NULL ){
$display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This account has no unix extensions.")."</b>";
$display.= back_to_main();
/* Show tab dialog headers */
- if ($this->parent != NULL){
+ if ($this->parent !== NULL){
if ($this->is_account){
if (isset($this->parent->by_object['sambaAccount'])){
$obj= $this->parent->by_object['sambaAccount'];
}
/* Fill gecos */
- if (isset($this->parent) && $this->parent != NULL){
+ if (isset($this->parent) && $this->parent !== NULL){
$this->gecos= rewrite($this->parent->by_object['user']->cn);
if (!preg_match('/^[a-z0-9 -]+$/i', $this->gecos)){
$this->gecos= "";