Changeset 2338


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

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

Merge BSF 2336:2337 into branch-1_7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/tools/create_listing_file.php

    r2198 r2338  
    144144
    145145// url of this script
    146 $pwg_conf['this_url'] = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
     146$pwg_conf['this_url'] =
     147    (empty($_SERVER['HTTPS']) ? 'http://' : 'https://')
     148    .str_replace(':'.$_SERVER['SERVER_PORT'], '', $_SERVER['HTTP_HOST'])
     149    .($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : '')
     150    .$_SERVER['PHP_SELF'];
    147151
    148152// list of reserved directory names
Note: See TracChangeset for help on using the changeset viewer.