options = $options; } function exec(&$Doc) { require_once 'class/DB/ImageDB.php'; $ImageDB = new ImageDB(); $name = urldecode($this->options['_restAlias']); if (!$ImageDB->nameExists($name)){ $arr = $ImageDB->fromIconName($name); $name = $arr['file']; if ($arr['width'] || $arr['height']){ $name = $ImageDB->resize($name , $arr['width'], $arr['height'], $arr['force']); } } if ( $ImageDB->get($name) ){ exit; }else { return SiteMap::get404Item(urldecode(CURR_PAGE)); } } } ?>