git.cweiske.de
/
anoweco.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add latest posts atom feed
[anoweco.git]
/
www
/
www-header.php
diff --git
a/www/www-header.php
b/www/www-header.php
index 37dd4b11e943eaf368b2209e2394790b480fc3d7..ec7e8b3dafc3d1e59963de74466507d402d6e3ee 100644
(file)
--- a/
www/www-header.php
+++ b/
www/www-header.php
@@
-73,4
+73,13
@@
function render($tplname, $vars = array(), $return = false)
echo $template->render($vars);
}
}
+
+/**
+ * No trailing slash
+ */
+function getBaseUrl()
+{
+ return $_SERVER['REQUEST_SCHEME']
+ . '://' . $_SERVER['HTTP_HOST'];
+}
?>