aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-21 20:19:33 -0800
committerFriendika <info@friendika.com>2011-02-21 20:19:33 -0800
commit5f2f64406407839d0a9d906e0ad165067d90d130 (patch)
tree08734b4cd12d7c66756bcde3d5bf9cf1ad32c67e /include
parentd124c67322b8f79f18152d6f24394b3a38b4e0f5 (diff)
downloadvolse-hubzilla-5f2f64406407839d0a9d906e0ad165067d90d130.tar.gz
volse-hubzilla-5f2f64406407839d0a9d906e0ad165067d90d130.tar.bz2
volse-hubzilla-5f2f64406407839d0a9d906e0ad165067d90d130.zip
resolve file inclusion conflicts w/ multiple plugins, improve the typo checker
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