Beispiel #1
0
 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());
 }
Beispiel #2
0
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);
}