Changeset 7032

Show
Ignore:
Timestamp:
11/22/08 01:57:47 (7 weeks ago)
Author:
inureyes
Message:

refs #777

  • 컨텍스트의 인덴테이션 조정
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/library/context.php

    r7031 r7032  
    5151            strlen($accessInfo['root']) + (defined('__TEXTCUBE_NO_FANCY_URL__') ? 1 : 0)),'/'); 
    5252        // DEPRECATE?: Support for Tattertools 0.9x legacy address 
    53     $part = strtok($accessInfo['input'], '/'); 
    54     if (in_array($part, array('resources','plugins','cache','skin','attach','thumbnail'))) { 
    55         $part = ltrim(rtrim($part == 'thumbnail' ? 
    56               preg_replace('/thumbnail/', 'cache/thumbnail', $accessInfo['input'], 1) : 
    57               $accessInfo['input']), '/'); 
    58         $part = (($qpos = strpos($part, '?')) !== false) ? substr($part, 0, $qpos) : $part; 
    59         if(file_exists($part)) { 
    60             require_once ROOT.'/library/function/file.php'; 
    61             dumpWithEtag($part); 
    62             exit; 
    63         } else { 
    64             header("HTTP/1.0 404 Not Found");exit; 
    65         } 
    66     } 
    67     if (strtok($part, '?') == 'setup.php') {require 'setup.php'; exit;} 
    68     $accessInfo['URLfragment'] = explode('/',strtok($accessInfo['input'],'?')); 
    69     unset($part); 
     53        $part = strtok($accessInfo['input'], '/'); 
     54        if (in_array($part, array('resources','plugins','cache','skin','attach','thumbnail'))) { 
     55            $part = ltrim(rtrim($part == 'thumbnail' ? 
     56                  preg_replace('/thumbnail/', 'cache/thumbnail', $accessInfo['input'], 1) : 
     57                  $accessInfo['input']), '/'); 
     58            $part = (($qpos = strpos($part, '?')) !== false) ? substr($part, 0, $qpos) : $part; 
     59            if(file_exists($part)) { 
     60                require_once ROOT.'/library/function/file.php'; 
     61                dumpWithEtag($part); 
     62                exit; 
     63            } else { 
     64                header("HTTP/1.0 404 Not Found");exit; 
     65            } 
     66        } 
     67        if (strtok($part, '?') == 'setup.php') {require 'setup.php'; exit;} 
     68        $accessInfo['URLfragment'] = explode('/',strtok($accessInfo['input'],'?')); 
     69        unset($part); 
    7070 
    7171        /* Determine that which interface should be loaded. */