]> git.mxchange.org Git - friendica.git/blob - mod/directory.php
94a826e235fc0010a5ca45854b1c72489fc12553
[friendica.git] / mod / directory.php
1 <?php
2
3
4 function directory_content(&$a) {
5
6
7         $tpl .= file_get_contents('view/directory_header');
8
9         $o .= replace_macros($tpl);
10
11         $r = q("SELECT * FORM `profile` WHERE `default` = 1 AND `publish` = 1");
12         if(count($r)) {
13
14                 $tpl = file_get_contents('view/directory_item);
15
16                 foreach($r as $rr) {
17
18                         $o .= directory_block($a,$rr,$tpl);
19
20                 }
21         }
22         else
23                 notice("No entries (some entries may be hidden).");
24 }