Beispiel #1
0
 // show mp3 files for PodCache
 if ($geocache->getMp3count() > 0) {
     if (isset($_REQUEST['mp3_files']) && $_REQUEST['mp3_files'] == 'no') {
         tpl_set_var('mp3_files', "");
     } else {
         tpl_set_var('mp3_files', viewcache_getmp3table($cache_id, $geocache->getMp3count()));
     }
     tpl_set_var('hidemp3_start', '');
     tpl_set_var('hidemp3_end', '');
 } else {
     tpl_set_var('mp3_files', '<br />');
     tpl_set_var('hidemp3_start', '<!--');
     tpl_set_var('hidemp3_end', '-->');
 }
 // show pictures
 if ($geocache->getPicturesCount() == 0 || isset($_REQUEST['print']) && $_REQUEST['pictures'] == 'no') {
     tpl_set_var('pictures', '<br />');
     tpl_set_var('hidepictures_start', '<!--');
     tpl_set_var('hidepictures_end', '-->');
 } else {
     if (isset($_REQUEST['spoiler_only']) && $_REQUEST['spoiler_only'] == 1) {
         $spoiler_only = true;
     } else {
         $spoiler_only = false;
     }
     if (isset($_REQUEST['pictures']) && $_REQUEST['pictures'] == 'big') {
         tpl_set_var('pictures', viewcache_getfullsizedpicturestable($cache_id, true, $spoiler_only, $cache_record['picturescount'], $disable_spoiler_view));
     } elseif (isset($_REQUEST['pictures']) && $_REQUEST['pictures'] == 'small') {
         tpl_set_var('pictures', viewcache_getpicturestable($cache_id, true, true, $spoiler_only, true, $cache_record['picturescount'], $disable_spoiler_view));
     } elseif (isset($_REQUEST['pictures']) && $_REQUEST['pictures'] == 'no') {
         tpl_set_var('pictures', "");