Skip to content

Commit

Permalink
If required, specify that this is the 'Admin' user - but not the actu…
Browse files Browse the repository at this point in the history
…al login id.
  • Loading branch information
John Horne committed Sep 5, 2017
1 parent b5f88ef commit a96cc13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions management.php
Expand Up @@ -165,7 +165,7 @@ function mgt_page($xerte_toolkits_site, $extra)

$_SESSION['toolkits_logon_id'] = "site_administrator";

$msg = "User logged in successfully from " . $_SERVER['REMOTE_ADDR'];
$msg = "Admin user logged in successfully from " . $_SERVER['REMOTE_ADDR'];
receive_message("", "SYSTEM", "MGMT", "Successful login", $msg);

$mysql_id = database_connect("management.php database connect success", "management.php database connect fail");
Expand Down Expand Up @@ -335,7 +335,7 @@ function mgt_page($xerte_toolkits_site, $extra)
*/

if ($_POST["login"] == $xerte_toolkits_site->admin_username) {
$msg = "User attempted to login from " . $_SERVER['REMOTE_ADDR'];
$msg = "Admin user attempted to login from " . $_SERVER['REMOTE_ADDR'];
}
else {
$uid = (empty($_POST["login"])) ? 'UNKNOWN' : $_POST["login"];
Expand Down

0 comments on commit a96cc13

Please sign in to comment.