aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/hostxrd.php7
-rw-r--r--include/nav.php4
-rw-r--r--include/system_unavailable.php8
3 files changed, 17 insertions, 2 deletions
diff --git a/include/hostxrd.php b/include/hostxrd.php
index f8c398927..9161b265c 100644
--- a/include/hostxrd.php
+++ b/include/hostxrd.php
@@ -1,6 +1,11 @@
<?php
+
+function hostxrd($hostname) {
+
header("Content-type: text/xml");
$tpl = file_get_contents('view/xrd_host.tpl');
- echo str_replace('$domain',$this->hostname,$tpl);
+ echo str_replace('$domain',$hostname,$tpl);
session_write_close();
exit();
+
+} \ No newline at end of file
diff --git a/include/nav.php b/include/nav.php
index 228774d95..430841722 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -1,5 +1,7 @@
<?php
+function nav(&$a) {
+
/**
*
* Build page header and site navigation bars
@@ -115,3 +117,5 @@
$a->page['nav'] .= '<span id="banner">' . $banner . '</span>';
call_hooks('page_header', $a->page['nav']);
+
+}
diff --git a/include/system_unavailable.php b/include/system_unavailable.php
index 48da83793..bd7196cdf 100644
--- a/include/system_unavailable.php
+++ b/include/system_unavailable.php
@@ -1,6 +1,12 @@
+<?php
+
+function system_down() {
+echo <<< EOT
<html>
<head><title>System Unavailable</title></head>
<body>
Apologies but this site is unavailable at the moment. Please try again later.
</body>
-</html> \ No newline at end of file
+</html>
+EOT;
+} \ No newline at end of file