summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de1afb5)
raw | patch | inline | side by side (parent: de1afb5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 4 Oct 2010 08:25:28 +0000 (08:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 4 Oct 2010 08:25:28 +0000 (08:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19901 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/index.php | patch | blob | history |
index 0510543652829fd9b0cfe308e7a854408df569a6..99d5954528a9d2981b4ae7f42b20a692d0c0a5a5 100644 (file)
--- a/gosa-core/html/index.php
+++ b/gosa-core/html/index.php
/* Fill template with required values */
$username = "";
if(isset($_POST["username"])){
- $username= $_POST["username"];
+ $username= get_post("username");
}
$smarty->assign ('date', gmdate("D, d M Y H:i:s"));
$smarty->assign ('username', $username);
/* Generate server list */
$servers= array();
if (isset($_POST['server'])){
- $selected= validate($_POST['server']);
+ $selected= get_post('server');
} else {
$selected= $config->data['MAIN']['DEFAULT'];
}
@@ -244,7 +244,7 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
}
if (!$htaccess_authenticated){
- $server= validate($_POST["server"]);
+ $server= get_post("server");
}
$config->set_current($server);
@@ -294,11 +294,11 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
/* Check for valid input */
$ok= true;
if (!$htaccess_authenticated){
- $username= $_POST["username"];
+ $username= get_post("username");
if (!preg_match("/^[@A-Za-z0-9_.-]+$/", $username)){
$message= _("Please specify a valid username!");
$ok= false;
- } elseif (mb_strlen($_POST["password"], 'UTF-8') == 0){
+ } elseif (mb_strlen(get_post("password"), 'UTF-8') == 0){
$message= _("Please specify your password!");
$smarty->assign ('nextfield', 'password');
$ok= false;
@@ -315,7 +315,7 @@ if (($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])) || $htacces
exit;
}
} else {
- $ui= ldap_login_user($username, $_POST["password"]);
+ $ui= ldap_login_user($username, get_post("password"));
}
if ($ui === NULL || !$ui){
$message= _("Please check the username/password combination.");
@@ -414,7 +414,7 @@ $smarty->assign ("cookies", "<b>"._("Warning").":<\/b> "._("Your browser has coo
/* Generate server list */
$servers= array();
if (isset($_POST['server'])){
- $selected= validate($_POST['server']);
+ $selected= get_post('server');
} else {
$selected= $config->data['MAIN']['DEFAULT'];
}