summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db94ec0)
raw | patch | inline | side by side (parent: db94ec0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 May 2010 10:03:31 +0000 (10:03 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 5 May 2010 10:03:31 +0000 (10:03 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18104 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/password.php | patch | blob | history |
index 93fbadb96bff6bf786bd57d0bd86623b160833a2..07e919d4ec515830dd3eb26476480596cf7234b1 100644 (file)
/* Parse configuration file */
$config= new config(CONFIG_DIR."/".CONFIG_FILE, $BASE_DIR);
-session::global_set('debugLevel', $config->get_cfg_value("debugLevel"));
+session::global_set('debugLevel', $config->get_cfg_value("core","debugLevel"));
if ($_SERVER["REQUEST_METHOD"] != "POST") {
@DEBUG(
DEBUG_CONFIG, __LINE__, __FUNCTION__, __FILE__, $config->data, "config"
}
/* Set template compile directory */
-$smarty->compile_dir= $config->get_cfg_value(
+$smarty->compile_dir= $config->get_cfg_value("core",
"templateCompileDirectory", '/var/spool/gosa'
);
clean_smarty_compile_dir($smarty->compile_dir);
/* Language setup */
-if ($config->get_cfg_value("language") == "") {
+if ($config->get_cfg_value("core","language") == "") {
$lang= get_browser_language();
} else {
- $lang= $config->get_cfg_value("language");
+ $lang= $config->get_cfg_value("core","language");
}
$lang.=".UTF-8";
putenv("LANGUAGE=");
}
/* If SSL is forced, just forward to the SSL enabled site */
-if ($config->get_cfg_value("forceSSL") == 'true' && $ssl != '') {
+if ($config->get_cfg_value("core","forceSSL") == 'true' && $ssl != '') {
header("Location: $ssl");
exit;
}
/* Check for selected password method */
-$method= $config->get_cfg_value("passwordDefaultHash", "crypt/md5");
+$method= $config->get_cfg_value("core","passwordDefaultHash", "crypt/md5");
if (isset($_GET['method'])) {
$method= validate($_GET['method']);
$tmp = new passwordMethod($config);
}
/* Password policy fulfilled? */
- if ($config->get_cfg_value("passwordMinDiffer") != "") {
- $l= $config->get_cfg_value("passwordMinDiffer");
+ if ($config->get_cfg_value("core","passwordMinDiffer") != "") {
+ $l= $config->get_cfg_value("core","passwordMinDiffer");
if (substr($_POST['current_password'], 0, $l) ==
substr($_POST['new_password'], 0, $l)) {
$message[]= _("The password used as new and current are too similar!");
}
}
- if ($config->get_cfg_value("passwordMinLength") != "") {
+ if ($config->get_cfg_value("core","passwordMinLength") != "") {
if (strlen($_POST['new_password']) <
- $config->get_cfg_value("passwordMinLength")) {
+ $config->get_cfg_value("core","passwordMinLength")) {
$message[]= _("The password used as new is to short!");
}
}
/* Passed quality check, just try to change the password now */
$output= "";
- if ($config->get_cfg_value("passwordHook") != "") {
+ if ($config->get_cfg_value("core","passwordHook") != "") {
exec(
- $config->get_cfg_value("passwordHook")." ".$ui->username." ".
+ $config->get_cfg_value("core","passwordHook")." ".$ui->username." ".
$_POST['current_password']." ".$_POST['new_password'],
$resarr
);
$smarty->assign('password_img', get_template_path('images/password.png'));
/* Displasy SSL mode warning? */
-if ($ssl != "" && $config->get_cfg_value("warnSSL") == 'true') {
+if ($ssl != "" && $config->get_cfg_value("core","warnSSL") == 'true') {
$smarty->assign(
"ssl",
"<b>"._("Warning").":</b> "._("Session will not be encrypted.").