function execute() { index::execute(); $tpl = template::getInstance(); if ($tpl->existValue('index', 'navigator') && $tpl->existValue('index', 'fulltitle')) { $this->loadNavInfo(); $tpl->setVar('fulltitle', $this->getFullTitle()); $tpl->setVar('navigator', $this->navInfo); } $tpl->setVar('url', getMyUrlEncode('?mode=album&id=0')); $tpl->setVar('content', $this->content->display()); }
function getArchiveLink($id, $type, $version) { // $file = 'a'.$id.'_'.$version.'.'.$type; // if (file_exists(LOCAL_PATH.LOCAL_DIR.'cache/'.$file)) { // return getMyUrlEncode('cache/'.$file); // } return getMyUrlEncode('media.php?mode=archive&type=' . $type . '&version=' . $version . '&id=' . $id); }