mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-12 19:02:13 +02:00
Set correct FM_SELF_URL
This commit is contained in:
parent
7d98bdf5b2
commit
654d7dbd2a
|
@ -230,7 +230,10 @@ $root_url = fm_clean_path($root_url);
|
|||
|
||||
// abs path for site
|
||||
defined('FM_ROOT_URL') || define('FM_ROOT_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . (!empty($root_url) ? '/' . $root_url : ''));
|
||||
defined('FM_SELF_URL') || define('FM_SELF_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . '/browse');
|
||||
defined('FM_SELF_URL') || define('FM_SELF_URL', ($is_https ? 'https' : 'http') . '://' . $http_host . $_SERVER['REDIRECT_URL']);
|
||||
|
||||
var_dump($_SERVER['REDIRECT_URL']);
|
||||
|
||||
|
||||
// logout
|
||||
if (isset($_GET['logout'])) {
|
||||
|
|
Loading…
Reference in a new issue