Changeset 2337


Ignore:
Timestamp:
May 14, 2008, 11:53:25 PM (16 years ago)
Author:
rub
Message:

Resolved issue 0000825: create_listing_file.php don't work with port server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/create_listing_file.php

    r2299 r2337  
    140140
    141141// url of this script
    142 $pwg_conf['this_url'] = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
     142$pwg_conf['this_url'] =
     143    (empty($_SERVER['HTTPS']) ? 'http://' : 'https://')
     144    .str_replace(':'.$_SERVER['SERVER_PORT'], '', $_SERVER['HTTP_HOST'])
     145    .($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : '')
     146    .$_SERVER['PHP_SELF'];
    143147
    144148// list of reserved directory names
Note: See TracChangeset for help on using the changeset viewer.