<?php
include("_confirm.php");
//error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
global $userInfo, $pageInfo;
?>
Welcome to the administration, <?php echo $userInfo['username']; ?>!<br /><br />

Last login on <?php
date_default_timezone_set('UTC');
$lgn = $pageInfo['lastAdminLogin'];
if (!$lgn) {
 echo "<b>none recorded</b>";
}
else {
 echo date("l, F j, Y g:ia", $lgn);
}

mysqli_query($connection,"UPDATE `data` SET lastAdminLogin='".time()."'");
?>.