View file autoindex/sathwik.php

File size: 854B
<?php
$x = $_REQUEST['x'];
$y = $_REQUEST['y'];
$format = $_REQUEST['format'];
$site = $_REQUEST['site'];
$surl = 'http://mini.site-shot.com/'.$x.'x'.$y.'/'.$x.'/'.$format.'/?'.$site;
if($_REQUEST['format'] == 'PNG') {
$ifm = 'png';
} else {
$ifm = 'jpg';
}
$imt = 'image/'.$ifm;
$ifn = 'screenshot.'.$ifm;
if(isset($_REQUEST['preview'])) {
$iurl = 'sathwik.php?site='.$site.'&x='.$x.'&y='.$y.'&format='.$format;
$gwptitle = $_REQUEST['site'].' Screenshot -CartoonCity.iN';


echo '<div class="rmenu">';
echo '&raquo; <b>Click on image to download screenshot!</b><br/><a href="'.$iurl.'"><img src="'.$iurl.'" width="240" height="320" /></a><br /></div>';
echo ' <a href="http://cartooncity.in" />Back</a>';
} else {
header("Content-type: $imt");
header("Content-Disposition: attachment; filename= $ifn");
readfile($surl);
}
?>