Changeset 7017
- Timestamp:
- 11/18/08 18:46:39 (7 weeks ago)
- Location:
- trunk/library
- Files:
-
- 3 modified
-
context.php (modified) (1 diff)
-
debug/MySQL.php (modified) (1 diff)
-
suri.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/context.php
r7016 r7017 28 28 $_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_ORIGINAL_URL']; 29 29 } // IIS 5.x/6.0/7.0 and Ionics ISAPI Rewrite Filter 30 else if (isset($_SERVER['HTTP_X_REWRITE_URL']) && strpos($_SERVER['REQUEST_URI'], ' rewrite.php') !== FALSE) {30 else if (isset($_SERVER['HTTP_X_REWRITE_URL']) && strpos($_SERVER['REQUEST_URI'], 'dispatcher.php') !== FALSE) { 31 31 $_SERVER['REQUEST_URI'] = urldecode($_SERVER['HTTP_X_REWRITE_URL']); 32 32 } -
trunk/library/debug/MySQL.php
r6994 r7017 394 394 print '<h4>Path parse result</h4>'.CRLF; 395 395 print '<pre> path parser result : '."\r\n"; 396 print_r( $accessInfo ); 396 $context = Context::getInstance(); 397 print_r( $context->accessInfo ); 397 398 print_r( $suri ); 398 399 print '</pre>'; -
trunk/library/suri.php
r7016 r7017 10 10 $blogid = null; 11 11 $isStrictBlogURL = true; 12 $depth = substr_count($service['path'], '/'); 13 12 $depth = substr_count($config->service['path'], '/'); 14 13 if ($depth > 0) { 15 14 if (preg_match('@^((/+[^/]+){' . $depth . '})(.*)$@', $url, $matches)) … … 51 50 Respond::NotFoundPage(); 52 51 } 53 $owner = $blogid; // For legacy.(<1.5)54 52 55 53 $gCacheStorage = new globalCacheStorage; // Initialize global cache … … 57 55 $blog = getBlogSettings($blogid); 58 56 $skinSetting = getSkinSetting($blogid); 59 if(isset($ interfacePath)) {60 $depth = substr_count($ interfacePath, '/') - 1;57 if(isset($context->accessInfo['interfacePath'])) { 58 $depth = substr_count($context->accessInfo['interfacePath'], '/') - 1; 61 59 } else { 62 60 $depth = substr_count(ROOT, '/');
