Temp added vars session_ip and session_user_agent to validate_api_key so IP and User agent is logged with the new logAction function

This commit is contained in:
johnnyq 2024-11-14 17:55:35 -05:00
parent ba5e2b216b
commit bfffec7363
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@ $_POST = json_decode(file_get_contents('php://input'), true);
$ip = sanitizeInput(getIP());
$user_agent = sanitizeInput($_SERVER['HTTP_USER_AGENT']);
// Temp Added this to work with the new logAction function
$session_ip = $ip;
$session_user_agent = $user_agent;
// Setup return array
$return_arr = array();