【问题标题】:ssi.php return strange pagessi.php 返回奇怪的页面
【发布时间】:2010-08-03 12:47:09
【问题描述】:

我在某些页面中包含此代码:

$_GET['a'] = 'stats2';
include "/var/www/forum/ssi.php";

在主页 (www.musite.com) 上它工作正常。但在 www.mysite.com/bigpage/、www.mysite.com/about/ 等其他页面上。ssi.php 返回部分论坛页面(很多 css 和 js)。 p>

我该如何解决?

【问题讨论】:

    标签: php integration ssi ipb


    【解决方案1】:

    这与您在应用程序中使用的代码完全相同吗?听起来您链接到相对路径..

    【讨论】:

      【解决方案2】:

      我发现了问题。我的版本 IPB 3.1.2,FURL 开启。

      FURL 的问题。

      ipsRegistry::instance()->init()中有调用FURL检查函数。

      在退出 init() 函数之前检查 FURL:

      /* Have we entered an incorrect FURL that has no match? */
          if ( ipsRegistry::$settings['use_friendly_urls'] AND self::$_noFurlMatch === true )
          {
              self::getClass('output')->showError( 'incorrect_furl', 404, null, null, 404 );
          }
          else if( isset(ipsRegistry::$request['act']) AND ipsRegistry::$request['act'] == 'rssout' )
          {
              self::getClass('output')->showError( 'incorrect_furl', 404, null, null, 404 );
          }
      

      这就是为什么它会拉 404 错误并包含很多论坛 html。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-03-19
        • 2020-10-01
        • 2020-12-17
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多