| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /HostingSpaces/admin/247sms.com/wwwroot/adsense/ |
Upload File : |
<?php
include "connect.php";
function getURL( $id)
{
include "connect.php";
$query="select URL from links where id='". $id. "';";
//echo $query;
// $query ="select * from userlogin where email='". $memail ."' and domain='". $domain."'";
//echo $query;
$URL= "#";
if(!$result= mysqli_query($con,$query))
{
//echo mysqli_error($con);
echo "Database error please try again";
mysqli_close($con);
return $URL;
}
else
{
while($row = mysqli_fetch_array($result))
{
$URL = $row['URL'];
//$cnt="yes";
}
mysqli_close($con);
return $URL;
}
}
$id =$_GET["id"];
$id2 =$_GET["id2"];
$response = getURL($id);
//echo $response;
//exit(1);
if ($response !="#")
{
$query ="INSERT INTO linkscounter (id,cnt) VALUES ('". $id."',1)";
if(!$result= mysqli_query($con,$query))
{
//echo mysqli_error($con);
header('Location: error.php?err=2');
mysqli_close($con);
die();
}
if ($id2 != "")
{
$query ="update linksdetails set status ='1' where id= '$id' and id2 ='$1d' ";
if(!$result= mysqli_query($con,$query))
{
//echo mysqli_error($con);
header('Location: error.php?err=3');
mysqli_close($con);
die();
}
}
mysqli_close($con);
header('Location: '.$response);
exit();
}else
{
mysqli_close($con);
header('Location: errorredirecting.php?err=1');
exit();
}
?>