+ // -------- Picture wall
+ if (startswith($_SERVER["QUERY_STRING"],'do=picwall'))
+ {
+ // Optionnaly filter the results:
+ $linksToDisplay=array();
+ if (!empty($_GET['searchterm'])) $linksToDisplay = $LINKSDB->filterFulltext($_GET['searchterm']);
+ elseif (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags']));
+ else $linksToDisplay = $LINKSDB;
+ $body='';
+ foreach($linksToDisplay as $link)
+ {
+ $thumb=thumbnail($link['url']);
+ if ($thumb!='')
+ {
+ $url=htmlspecialchars($link['url'],ENT_QUOTES);
+ $body.='<div class="picwall_pictureframe">'.$thumb.'<a href="'.$url.'"><span class="info">'.htmlspecialchars($link['title']).'</span></a></div>';
+
+ }
+ }
+ $body = '<center><div id="picwall_container">'.$body.'<hr style="width:0;height:0;clear:both;"></div></center>';
+ $data = array('pageheader'=>'<br> ','body'=>$body,'onload'=>'');
+ templatePage($data);
+ exit;
+
+ }
+