summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 842f517)
raw | patch | inline | side by side (parent: 842f517)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 18 Jul 2006 11:21:02 +0000 (11:21 +0000) | ||
committer | hickert <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 | patch | blob | history | |
include/class_plugin.inc | patch | blob | history | |
plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/html/index.php b/html/index.php
index 3cd6509f0fff8aecc67a961d68269b652a1fc6ad..c5bea796f15b49532b4aa7366a9afe170bb65c0c 100644 (file)
--- a/html/index.php
+++ b/html/index.php
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&reset=1");
exit;
}
}
index cf8682f84733233f952937e82085a93b19927c3b..670fa16f2c148b6ad680dddd1d12e9a5cf2d4367 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
$data = "";
}
$this->$val= $data;
+ echo "<font color='blue'>".$val."</font><br>";
+ }else{
+ echo "<font color='red'>".$val."</font><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'));
}
}
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 70ccf42cfe50776e55967900ee6b6eca5cb0a865..f5caade65c8295c20e7e081ff076f6b85af19790 100644 (file)
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);
}