Changeset 5703

Show
Ignore:
Timestamp:
04/10/08 12:06:29 (9 months ago)
Author:
inureyes
Message:

#921

  • REQUEST_URI 가 없는 경우 만듬.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rewrite.php

    r5633 r5703  
    44/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 
    55    define('ROOT', '.');  
     6    /* Workaround for IIS environment */ 
     7    if(!isset($_SERVER['REQUEST_URI']) && isset($_SERVER['SCRIPT_NAME'])) { 
     8        $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; 
     9        if(isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING']; 
     10    } 
    611    if (!empty($_SERVER['PRELOAD_CONFIG']) && file_exists('config.php')) require_once ROOT."/config.php"; 
    712    /* Retrieve Access Parameter Information. */