]> git.mxchange.org Git - friendica.git/blob - mod/directory.php
b105bf78765a3f61447f5ad3a5b49c516b4375b8
[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 * FROM `profile` WHERE `default` = 1 AND `publish` = 1");
12         if(count($r)) {
13
14                 $tpl = file_get_contents('view/directory_item.tpl');
15
16                 foreach($r as $rr) {
17
18                         $o .= expand_macros($tpl,array(
19
20
21
22                         ));
23
24                 }
25         }
26         else
27                 notice("No entries (some entries may be hidden).");
28 }