From abc789bac49ceca09ff9ce9fffab35fb13a82ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fa=C3=9Fbender?= Date: Tue, 28 Mar 2017 22:59:53 +0200 Subject: [PATCH] CURRENT_URL should also work if script is used outside of admidio folder --- adm_program/system/constants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adm_program/system/constants.php b/adm_program/system/constants.php index 18f71a7823..7f52d8b4d0 100644 --- a/adm_program/system/constants.php +++ b/adm_program/system/constants.php @@ -60,7 +60,7 @@ // URLS define('ADMIDIO_URL', $g_root_path); // https://www.example.org:1234/subfolder | https://www.myproxy.com:1234/www.example.com/subfolder define('FILE_URL', ADMIDIO_URL . $_SERVER['SCRIPT_NAME']); // https://www.example.org:1234/subfolder/adm_program/index.php -define('CURRENT_URL', ADMIDIO_URL . $_SERVER['REQUEST_URI']); // https://www.example.org:1234/subfolder/adm_program/index.php?param=value +define('CURRENT_URL', HTTPS ? 'https://' : 'http://' . HOST . $_SERVER['REQUEST_URI']); // https://www.example.org:1234/subfolder/adm_program/index.php?param=value // FOLDERS define('FOLDER_DATA', '/adm_my_files');