summaryrefslogtreecommitdiff
path: root/includes/sys_menu.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-10-11 22:18:36 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-10-11 22:18:36 +0200
commitf8ec85e4c642802d5698054a22afdd67f6ae6d67 (patch)
tree3a64afe122128b96ba63fd46245aebcc19be1a6f /includes/sys_menu.php
parent304af8e8f015ac896ad0683c6407a3269e981d97 (diff)
#27 ical export, link explained
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r--includes/sys_menu.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php
index 448323e1..00bf4801 100644
--- a/includes/sys_menu.php
+++ b/includes/sys_menu.php
@@ -3,6 +3,10 @@ function page_link_to($page) {
return '?p=' . $page;
}
+function page_link_to_absolute($page) {
+ return (isset ($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . preg_replace("/\?.*$/", '', $_SERVER['REQUEST_URI']) . page_link_to($page);
+}
+
function make_navigation() {
global $p;
global $privileges;