From f8ec85e4c642802d5698054a22afdd67f6ae6d67 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Tue, 11 Oct 2011 22:18:36 +0200 Subject: #27 ical export, link explained --- includes/sys_menu.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/sys_menu.php') 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; -- cgit v1.3.1