| 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/microcircuitsjournal.com/ |
Upload File : |
<?php
require_once('inc/config.php');
$packagefiles = array('encryptions', 'functions');
foreach($packagefiles as $packagefile)
{
if(file_exists($package.$packagefile.'.php'))
{
require_once $package.$packagefile.'.php';
}
else
{
die('Required file doesn\'t exist.');
}
}
$archivesid = isset($_GET['archivesid']) ? $fn->escape($_GET['archivesid']) : '';
$file = isset($_GET['file']) ? $fn->escape($_GET['file']) : '';
if($archivesid && $file):
$stmt = $mysqli->prepare("SELECT views, downloads FROM archives WHERE archivesid = ? LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->bind_param('i', $archivesid);
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($views, $downloads);
$stmt->fetch();
$stmt->close();
$newviews = $views + 1;
$newdownloads = $downloads + 1;
$stmt = $mysqli->prepare("UPDATE archives SET views = ?, downloads = ? WHERE archivesid = ? LIMIT 1") or die('An error occurred. Please try after some time.');
$stmt->bind_param('iii', $newviews, $newdownloads, $archivesid);
$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:
header('Location:'.$baseurl); exit();
endif;
?>