resolve file inclusion conflicts w/ multiple plugins, improve the typo checker
This commit is contained in:
parent
d124c67322
commit
5f2f644064
17 changed files with 59 additions and 1844 deletions
|
@ -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();
|
||||
|
||||
}
|
|
@ -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']);
|
||||
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
</html>
|
||||
EOT;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue