Location: PHPKode > scripts > pixofcake > jaysalvat-pixofcake-91f18c9/pixofcake/picture.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;
	$thumbnail	= isset($_GET['t']) 	? $_GET['t'] 	: false;

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

	$poc = new PixOfCake($root_src, new PixOfCakeCache($src, $_GET));
	if ($width || $height) {
		if ($thumbnail) {
			$poc->thumbnail($width, $height);
		} else {
			$poc->size($width, $height);
		}
	}
	$poc->show();
?>
Return current item: pixofcake