| 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/www/tourismjournal.net/ |
Upload File : |
<?php
if(file_exists('inc/config.php')): require_once('inc/config.php'); else: die('Required file doesn\'t exist.'); endif;
$files_inc = array('encryptions.class', 'functions.class');
foreach($files_inc as $file_inc):
if(file_exists(MYF.$file_inc.'.php')): require_once(MYF.$file_inc.'.php'); else: die('Required file doesn\'t exist.'); endif;
endforeach;
$stmt = $mysqli->prepare("SELECT websitename, websiteemail, fromname, fromemail, replyname, replyemail, mailer, signature FROM settings ORDER BY settingsid DESC LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($websitename, $websiteemail, $fromname, $fromemail, $replyname, $replyemail, $mailer, $signature);
$stmt->fetch();
$stmt->close();
$notfound = '<div class="error"><h1>404</h1><h4>OOPS, SORRY WE CAN'T FIND THAT PAGE</h4><br clear="all"><p>Either something went wrong or the page doesn't exist anymore.</p><br clear="all"><a href="'.$baseurl.'" class="btn waves-effect waves-light blue">HOME PAGE</a></div>';
echo <<<EOJ
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="Robots" content="index, follow" />
<title>Buy Now</title>
EOJ;
?>
<link rel="shortcut icon" href="<?php echo $imageurl;?>favicon.ico" />
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/css/materialize.min.css">
<style type="text/css">
*{margin:0;box-sizing:border-box;outline:none}html,body{width:100%;height:100%}
body{background-color:#fff;color:#333;font-size:12px;font-family:'Roboto', sans-serif;overflow-y:scroll}
h1,h2,h3,h4{margin:0}
.error{padding-top:100px;font-family:'Cambria';text-align:center}
.error h4{margin-top:15px;font-size:14px;font-weight:bold}
.error p{font-size:14px}
</style>
</head>
<body>
<?php
$type = filter_input(INPUT_GET, 'type', FILTER_SANITIZE_STRING);
$type = strip_tags($fn->remaspace($fn->escape($type)));
$articleid = filter_input(INPUT_GET, 'articleid', FILTER_SANITIZE_STRING);
$articleid = strip_tags($fn->remaspace($fn->escape($articleid)));
$refnumber = filter_input(INPUT_GET, 'refnumber', FILTER_SANITIZE_STRING);
$refnumber = strip_tags($fn->remaspace($fn->escape($refnumber)));
if($type && $articleid && $refnumber):
$stmt = $mysqli->prepare("SELECT file, filestatus, supplementaryfile, views, downloads FROM archives WHERE (archivesid = ? AND refnumber = ?) LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->bind_param('is', $articleid, $refnumber);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->bind_result($file, $filestatus, $supplementaryfile, $views, $downloads);
$stmt->fetch();
$stmt->close();
if($type === 'view'):
if($count_rows == 1 && $file && file_exists($uploadpath.'archives/'.$file)):
if($filestatus === 'enabled'):
$newviews = $views + 1;
$newdownloads = $downloads + 1;
$stmt = $mysqli->prepare("UPDATE archives SET views = ?, downloads = ? WHERE (archivesid = ? AND refnumber = ?) LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->bind_param('iiis', $newviews, $newdownloads, $articleid, $refnumber);
$stmt->execute();
$stmt->close();
$mysqli->close();
$ext = strtolower(pathinfo($uploadurl.'archives/'.$file, PATHINFO_EXTENSION));
ob_clean();
header('Cache-Control: no-store');
header('Expires: 0');
header('Content-type: application/'.$ext);
header('Content-Disposition: inline; filename="'.$file.'"');
header('Content-Transfer-Encoding: binary');
header('Accept-Ranges: bytes');
@readfile($uploadpath.'archives/'.$file);
exit();
else:
echo $notfound;
endif;
else:
echo $notfound;
endif;
elseif($type === 'supplementaryfile'):
if($count_rows == 1 && $supplementaryfile && file_exists($uploadpath.'archives/'.$supplementaryfile)):
$newviews = $views + 1;
$newdownloads = $downloads + 1;
$stmt = $mysqli->prepare("UPDATE archives SET views = ?, downloads = ? WHERE (archivesid = ? AND refnumber = ?) LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->bind_param('iiis', $newviews, $newdownloads, $articleid, $refnumber);
$stmt->execute();
$stmt->close();
$mysqli->close();
$ext = strtolower(pathinfo($uploadurl.'archives/'.$supplementaryfile, PATHINFO_EXTENSION));
ob_clean();
header('Cache-Control: no-store');
header('Expires: 0');
header('Content-type: application/'.$ext);
header('Content-Disposition: inline; filename="'.$supplementaryfile.'"');
header('Content-Transfer-Encoding: binary');
header('Accept-Ranges: bytes');
@readfile($uploadpath.'archives/'.$supplementaryfile);
exit();
else:
echo $notfound;
endif;
else:
echo $notfound;
endif;
else:
echo $notfound;
endif;
?>
<script type="text/javascript" src="https://www.akinik.com/js/jquery.js" defer></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-rc.2/js/materialize.min.js" defer></script>
<script type="text/javascript">
function downloadJSAtOnload(){
var element = document.createElement('script');
element.src = '<?php echo $baseurl;?>js/script.js?<?php echo time();?>';
document.body.appendChild(element);
}
if(window.addEventListener)
window.addEventListener('load', downloadJSAtOnload, false);
else if(window.attachEvent)
window.attachEvent('onload', downloadJSAtOnload);
else window.onload = downloadJSAtOnload;
</script>
</body>
</html>