summaryrefslogtreecommitdiff
path: root/includes/sys_menu.php
diff options
context:
space:
mode:
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;