File size: 865B
<?php
isset($_GET['u']) or die();
include 'head.inc.php';
$url = ($_GET['u']);
$h = isset($_GET['h']) && !empty($_GET['h']) ? (int)$_GET['h'] : 0;
$w = isset($_GET['w']) && !empty($_GET['w']) ? (int)$_GET['w'] : 0;
$fileName = strip_tags(basename($url));
?>
<div class="result"><img src="arrow.png" /> Download <?=$fileName?> [Resolution : <?php printf('%d x %d', $h, $w); ?>]</div>
<img src="<?=$url?>" class="preview" />
<form action="<?=$url?>" method="get">
<input type="submit" value="Download Image" />
</form>
<div class="result"><img src="arrow.png" /> Resize Image</div>
<form action="resize.php" method="post">
Height : <input type="text" name="h" />
Width : <input type="text" name="w" />
<input type="hidden" name="url" value="<?=$url?>" />
<input type="submit" value="Resize & Download" name="re" />
</form>
<?php include 'footer.inc.php'; ?>