Location: PHPKode > scripts > pixofcake > jaysalvat-pixofcake-91f18c9/pixofcake/thumbnail.php
<?php
	include 'class.pixofcake.php';

	$src 		= isset($_GET['src']) 	? $_GET['src'] 	: die();
	$width 		= isset($_GET['w']) 	? $_GET['w'] 	: null;
	$height		= isset($_GET['h']) 	? $_GET['h'] 	: null;
	$mode		= isset($_GET['m']) 	? $_GET['m'] 	: null;

	$root_src	= dirname(__FILE__)."/../".$src;

	$poc = new PixOfCake($root_src, new PixOfCakeCache($src, $_GET));
	$poc->thumbnail($width, $height, $mode)->show();
?>
Return current item: pixofcake