mirror of
https://github.com/Anvilcraft/jensmemes
synced 2025-03-23 09:50:27 +01:00
update
This commit is contained in:
parent
b5194e5967
commit
e5283e36e7
1 changed files with 9 additions and 0 deletions
9
website/incl/clientIP.php
Normal file
9
website/incl/clientIP.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?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);
|
||||
}
|
||||
?>
|
Loading…
Add table
Reference in a new issue