diff options
author | rub <rub@piwigo.org> | 2008-05-14 21:53:25 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2008-05-14 21:53:25 +0000 |
commit | 52797d017ee3f9542ba0b6c89edf59cfeffe6215 (patch) | |
tree | 0691073831f84de2a92cc128ece6153467eded9c /tools/create_listing_file.php | |
parent | 53ed41648b007f8a9b891700da827c6e7560be9b (diff) |
Resolved issue 0000825: create_listing_file.php don't work with port server
git-svn-id: http://piwigo.org/svn/trunk@2337 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | tools/create_listing_file.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php index 4edb902c7..450de7279 100644 --- a/tools/create_listing_file.php +++ b/tools/create_listing_file.php @@ -139,7 +139,11 @@ $pwg_conf['icon_dir'] = $conf['gallery'].'/template/yoga/icon/'; $pwg_conf['scan_action'] = array('clean', 'test', 'generate'); // url of this script -$pwg_conf['this_url'] = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']; +$pwg_conf['this_url'] = + (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') + .str_replace(':'.$_SERVER['SERVER_PORT'], '', $_SERVER['HTTP_HOST']) + .($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : '') + .$_SERVER['PHP_SELF']; // list of reserved directory names $pwg_conf['reserved_directory_names'] = array($conf['thumbs'], $conf['high'], $conf['represent'], ".", "..", ".svn"); |