<?php
	if (!empty($_SESSION["user_id"])){
		$obj = mysqli_fetch_object(mysqli_query(GetConexion(), "select id,login,email,coins,drs,status,web_admin from ".DB_ACCOUNT.".account where id =".$_SESSION["user_id"]." limit 1;"));
		$_SESSION["user_id"] = $obj->id;
		$_SESSION["user_login"] = $obj->login;
		$_SESSION["user_email"] = $obj->email;
		$_SESSION["user_coins"] = $obj->coins;
		$_SESSION["user_drs"] = $obj->drs;
		$_SESSION["user_status"] = $obj->status;
		$_SESSION["user_admin"] = $obj->web_admin;
		// mysqli_query(GetConexion(), "update account.account set last_conected = NOW(), web_ip ='".GetConexion()->real_escape_string($_SERVER['REMOTE_ADDR'])."' where id=".$_SESSION["user_id"]." limit 1;");
	}
?>