5
1
Fork 0
mirror of https://github.com/Anvilcraft/jensmemes synced 2024-11-12 13:01:30 +01:00
jensmemes/website-neu/incl/clientIP.php

13 lines
264 B
PHP
Raw Normal View History

2020-07-21 23:00:11 +02:00
<?php
include ('../dbcon.php');
$clientIP =$_SERVER['REMOTE_ADDR'];
$tk = $_COOKIE['token'];
$sql = "UPDATE `token` SET `latest-ip` = '$clientIP' WHERE `token` = '$tk';
";
if(!mysqli_query($con, $sql)){
echo "Err_ Sending Client IP".mysqli_error($con);
}
?>