Changeset 7105
- Timestamp:
- 11/29/08 16:46:07 (6 weeks ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
interface/rss/index.php (modified) (1 diff)
-
library/auth.php (modified) (1 diff)
-
library/components/Textcube.Data.Context.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/rss/index.php
r7103 r7105 9 9 requireModel("blog.feed"); 10 10 requireModel("blog.entry"); 11 12 11 requireStrictBlogURL(); 13 if (false) {14 fetchConfigVal();15 }16 12 publishEntries(); 17 13 if (!file_exists(ROOT . "/cache/rss/$blogid.xml")) -
trunk/library/auth.php
r7051 r7105 109 109 110 110 function requireStrictBlogURL() { 111 global $isStrictBlogURL;112 if(isset($ isStrictBlogURL) && $isStrictBlogURL == true) return;111 $context = Context::getInstance(); 112 if(isset($context->isStrictBlogURL) && $context->isStrictBlogURL == true) return; 113 113 header('HTTP/1.1 404 Not found'); 114 114 exit; -
trunk/library/components/Textcube.Data.Context.php
r7075 r7105 9 9 { 10 10 public $URLInfo, $suri; 11 public static $blogid ;11 public static $blogid, $isStrictURL; 12 12 13 13 public static function getInstance() { … … 34 34 $suri = array('url' => $url, 'value' => ''); 35 35 $this->blogid = null; 36 $ isStrictBlogURL = true;36 $this->isStrictBlogURL = true; 37 37 $depth = substr_count($config->service['path'], '/'); 38 38 if ($depth > 0) { … … 65 65 if ($this->blogid === null) { 66 66 $this->blogid = $defaultblogid; 67 $ isStrictBlogURL = false;67 $this->isStrictBlogURL = false; 68 68 } 69 69 $url = $matches[2];
