Location: PHPKode > scripts > HostBuilder > hostbuilder/directory.php
<?php
/*
	HostBuilder
	Free Edition
	(C) 2007-2008 Data Components Software Development

	Directory module
*/

include "functions.php";
include "templates.php";

$f = file(getcwd()."/accounts.db");
foreach ($f as $l) {
  $v = split("::", trim($l));
  $gout = $v[8]."::".$v[0];
  $g[] = $gout;
}
sort($g);
foreach ($g as $gt) {
  $v = split("::", $gt);
  if ($tg != $v[0]) {
    if ($t['page'] != NULL) {
      $t['page'] .= "<hr>";
    }
    $t['page'] .= "<h2>".$v[0]."</h2>\n";
  }
  $tg = $v[0];
  $t['page'] .= "<a href=\"".getaccountinfo($v[1], 9)."\">".$v[1]."</a><br>\n";
}
$t['title'] = getconfig(0);
echo parse_tpl("directory", $t);

?>
Return current item: HostBuilder