403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.216.231
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/Civil/control/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/Civil/control//thumb_selector.php
<?
session_start();

require_once('../includes/DbConnector.php');
require_once('../includes/SystemComponent.php');
require_once('../includes/Translator.php');
require_once('../includes/Photogalleries.php');

$connector = new DbConnector;
$system = new SystemComponent($connector);
$translator = new Translator($connector);

require_once("../includes/RegisterGlobals.php");
require_once("header.php")
?>
<style>
	body {background: #FFFFFF none;}
	.thumbnail_item {float: left; margin: 3px;}
	.thumbnail_item a {display: block; padding: 3px; border: 1px solid #CCCCCC;}
	.thumbnail_item a:hover {background-color: #FFFFAA}
</style>

<body>
	<?
	$galleries = new Photogalleries($connector, $system, $translator);
	$parent_category = $galleries->getCategoryById($category_id);
	$photos_array = $galleries->getPhotosByParentCategory($parent_category["id"], $galleries->photogalleries_settings["photosordering"]);

	echo '<h3 class="textleft">Κατηγορία: <strong>'.$parent_category["title"]."</strong></h3>";

	if (empty($photos_array) or count($photos_array)==0)
		echo '<p>Καμία φωτογραφία δεν βρέθηκε σ\' αυτή την κατηγορία</p>';

	$i=0;
	foreach ($photos_array as $photo)
	{
		if ($i%5==0)
			echo '<div>';
		++$i;
		echo '<div class="thumbnail_item"><a href="javascript:;" title="'.$photo["filename"].'" onClick="updateFields('.'\''.$photo["filename"].'\''.'); parent.$.fancybox.close();"><img src="../'.$galleries->photogalleries_path.'/thumbnails/'.$parent_category["catpath"].'/'.$photo["filename"].'"></a></div>';
		if ($i%5==0)
			echo '<div class="clear"></div></div>';
	}
	?>
	
	<div class="clear"><br/></div>
	
	<?
	require_once("footer.php")
	?>

<script type="text/javascript">
	function updateFields(filename)
	{
		parent.document.inserteditform.catimage.value = filename;
		parent.document.thumb_preview.src = "<?='../'.$galleries->photogalleries_path.'/thumbnails/'.$parent_category['catpath'].'/'?>" + filename;
		parent.document.getElementById("clear_thumb").style.display = "";
	}
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit