| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/public_html/ |
Upload File : |
<?php
session_start();
if(file_exists('inc/config.php')): require_once('inc/config.php'); else: die('Required file doesn\'t exist.'); endif;
$authCookieLogin = '_ap_user';
$authCookieToken = '_ap_token';
if(isset($_COOKIE[$authCookieLogin]) && isset($_COOKIE[$authCookieToken])):
$loggedInEmail = $_COOKIE[$authCookieLogin];
$loggedInEmail = base64_decode($loggedInEmail);
$loggedInToken = $_COOKIE[$authCookieToken];
$stmt = $mysqli->prepare("UPDATE customers SET logintoken = NULL WHERE (email = ? AND logintoken = ?) LIMIT 1") or die('An error occurred. Please contact '.$websitename.'.');
$stmt->bind_param('ss', $loggedInEmail, $loggedInToken);
$stmt->execute();
$stmt->close();
session_regenerate_id();
session_destroy();
setcookie($authCookieLogin, "", time() - 3600, "/");
setcookie($authCookieToken, "", time() - 3600, "/");
endif;
header('Location:'.$baseurl);
exit();
?>