Location: PHPKode > projects > PhpBlock > A9.8/modules/dungeon/imageobject.php
<?php
/**
 * Return a static image for an objectType. 
*/
if(!isset($_GET["size"]))
{
    exit;
}
include_once "../../site.class.php";
include_once $PATH_TO_CODE."/script/fonction.php";
include_once $PATH_TO_CODE."/script/realobject.class.php";
include_once $PATH_TO_CODE."/script/log.class.php";
include_once $PATH_TO_CODE."/modules/dungeon/dungeonconstante.class.php";
include_once $PATH_TO_CODE."/modules/dungeon/objectmanager.class.php";

$locImageParameters=$_GET["p"];
$locSize=$_GET["size"];

$locImageObject = RealObject::getStaticImage($locSize, $locImageParameters);

header("Content-Type: image/png");
header("Expires: ".date("r", time()+3600*24*7));

ImagePng($locImageObject);
ImageDestroy($locImageObject);
?>
Return current item: PhpBlock