fixed some PHP notices
This commit is contained in:
parent
dca3b6b81f
commit
5599a47fc4
|
@ -55,7 +55,7 @@ if (!isset($_SESSION['loggedIn'])) {
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
//load account
|
//load account
|
||||||
if ($_GET['DN']) {
|
if (isset($_GET['DN'])) {
|
||||||
$DN = str_replace("\'", '', $_GET['DN']);
|
$DN = str_replace("\'", '', $_GET['DN']);
|
||||||
$type = str_replace("\'", '', $_GET['type']);
|
$type = str_replace("\'", '', $_GET['type']);
|
||||||
if ($_GET['type'] == $type) $type = str_replace("'", '',$_GET['type']);
|
if ($_GET['type'] == $type) $type = str_replace("'", '',$_GET['type']);
|
||||||
|
|
|
@ -286,7 +286,7 @@ function display_LoginPage($config_object) {
|
||||||
<td style="border-style:none" height="30"><b>
|
<td style="border-style:none" height="30"><b>
|
||||||
<?php
|
<?php
|
||||||
echo _("Configuration profile") . ": ";
|
echo _("Configuration profile") . ": ";
|
||||||
if(!$_POST['profileChange']) {
|
if(empty($_POST['profileChange'])) {
|
||||||
$_POST['profile'] = $_SESSION['config']->file;
|
$_POST['profile'] = $_SESSION['config']->file;
|
||||||
}
|
}
|
||||||
?></b>
|
?></b>
|
||||||
|
@ -330,7 +330,7 @@ function display_LoginPage($config_object) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// checking if the submitted username/password is correct.
|
// checking if the submitted username/password is correct.
|
||||||
if($_POST['checklogin'])
|
if(!empty($_POST['checklogin']))
|
||||||
{
|
{
|
||||||
$_SESSION['lampath'] = realpath('../') . "/"; // Save full path to lam in session
|
$_SESSION['lampath'] = realpath('../') . "/"; // Save full path to lam in session
|
||||||
|
|
||||||
|
@ -389,7 +389,7 @@ if($_POST['checklogin'])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Reload loginpage after a profile change
|
// Reload loginpage after a profile change
|
||||||
elseif($_POST['profileChange']) {
|
elseif(!empty($_POST['profileChange'])) {
|
||||||
$_SESSION['config'] = new Config($_POST['profile']); // Recreate the config object with the submited
|
$_SESSION['config'] = new Config($_POST['profile']); // Recreate the config object with the submited
|
||||||
display_LoginPage($_SESSION['config']); // Load login page
|
display_LoginPage($_SESSION['config']); // Load login page
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue