Commit d0dd6702 authored by Florian Schaal's avatar Florian Schaal

re-add missing code for last commit

parent 118ed211
......@@ -268,6 +268,16 @@ if(count($_POST) > 0) {
fwrite($authlog_handle, $authlog ."\n");
$app->db->query("INSERT INTO sys_login (`session_id`, `username`, `ip`, `login-time`) VALUES (?, ?, ?, CURRENT_TIMESTAMP) ON DUPLICATE KEY UPDATE `login-time`=CURRENT_TIMESTAMP", session_id(), $username, $_SERVER['REMOTE_ADDR']);
// get last IP used to login
$user_data = $app->db->queryOneRecord("SELECT last_login_ip,last_login_at FROM sys_user WHERE username = ?", $username);
$_SESSION['s']['last_login_ip'] = $user_data['last_login_ip'];
$_SESSION['s']['last_login_at'] = $user_data['last_login_at'];
if(!$loginAs) {
$app->db->query("UPDATE sys_user SET last_login_ip = ?, last_login_at = ? WHERE username = ?", $_SERVER['REMOTE_ADDR'], time(), $username);
* We need LOGIN_REDIRECT instead of HEADER_REDIRECT to load the
* new theme, if the logged-in user has another
  • I don't know if i can help a lot. But i have a fmcb with a code breaker.elf installed. It's basically a cheat engine came prelaoded with the mc i ordered and pay someone to write my essay. I bought it from a seller on ebay. I can send u the link if you still need a solution.

Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment