aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
blob: b105bf78765a3f61447f5ad3a5b49c516b4375b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php


function directory_content(&$a) {


	$tpl .= file_get_contents('view/directory_header');

	$o .= replace_macros($tpl);

	$r = q("SELECT * FROM `profile` WHERE `default` = 1 AND `publish` = 1");
	if(count($r)) {

		$tpl = file_get_contents('view/directory_item.tpl');

		foreach($r as $rr) {

			$o .= expand_macros($tpl,array(



			));

		}
	}
	else
		notice("No entries (some entries may be hidden).");
}