mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-14 22:11:45 +01:00
12 lines
264 B
PHP
12 lines
264 B
PHP
<?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);
|
|
}
|
|
?>
|