Пример #1
0
         } else {
             require_once $rootpath . 'lib/class.inputfilter.php';
             $myFilter = new InputFilter($allowedtags, $allowedattr, 0, 0, 1);
             $note_desc = $myFilter->process($note_desc);
         }
         tpl_set_var('notes_content', nl2br($note_desc));
     }
 } else {
     tpl_set_var('note_content', "");
     tpl_set_var('CacheNoteE', '-->');
     tpl_set_var('CacheNoteS', '<!--');
     tpl_set_var('EditCacheNoteE', '-->');
     tpl_set_var('EditCacheNoteS', '<!--');
 }
 // end personal cache note
 tpl_set_var('watcher', $geocache->getWatchingUsersCount());
 tpl_set_var('ignorer_count', $geocache->getIgnoringUsersCount());
 tpl_set_var('votes_count', $geocache->getratingVotes());
 tpl_set_var('note_icon', $note_icon);
 tpl_set_var('notes_icon', $notes_icon);
 tpl_set_var('vote_icon', $vote_icon);
 tpl_set_var('gk_icon', $gk_icon);
 tpl_set_var('watch_icon', $watch_icon);
 tpl_set_var('visit_icon', $visit_icon);
 tpl_set_var('score_icon', $score_icon);
 tpl_set_var('save_icon', $save_icon);
 tpl_set_var('search_icon', $search_icon);
 if ($geocache->getCacheType() == GeoCache::TYPE_EVENT) {
     tpl_set_var('found_icon', $exist_icon);
     tpl_set_var('notfound_icon', $wattend_icon);
     $event_attendance_list = mb_ereg_replace('{id}', urlencode($cache_id), $event_attendance_list);