10 private static $path =
"./service.d/";
15 if (is_file($path .
"/info.php")) {
16 include ($path .
"/info.php");
21 $info[
"error"] =
"Can't load service {$path}, start is not defined.";
23 if (is_file($path .
"/" .
$start)) {
26 $info[
"error"] =
"Can't load service {$path}, start file {$start} not found.";
30 $info[
"error"] =
"Can't load service {$path}, info.php not found.";
38 if (is_dir(Service::$path)) {
39 if ($dh = opendir(Service::$path)) {
40 while ((
$file = readdir($dh)) !==
false) {
41 if (
$file !=
"." &&
$file !=
".." && filetype(Service::$path .
$file) ==
"dir") {
43 if (is_array(
$ret)) $services[] =
$ret;
48 usort($services,
'Service::servicesort');
50 header(
"HTTP/1.0 404 Service directory not found");
57 return strcmp(
$a[
"title"], $b[
"title"]);
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
static servicesort($a, $b)
static serviceInfos($path)