cvs: docweb /include lib_general.inc.php

[email protected] ("Matthew Li")
Newsgroups php.doc.web
Message-ID <cvsmazzanet1123755839@cvsserver>
mazzanet		Thu Aug 11 06:23:59 2005 EDT

  Modified files:              
    /docweb/include	lib_general.inc.php 
  Log:
  Only allow common pages to switch projects
  
http://cvs.php.net/diff.php/docweb/include/lib_general.inc.php?r1=1.48&r2=1.49&ty=u
Index: docweb/include/lib_general.inc.php
diff -u docweb/include/lib_general.inc.php:1.48 docweb/include/lib_general.inc.php:1.49
--- docweb/include/lib_general.inc.php:1.48	Thu Aug 11 05:54:09 2005
+++ docweb/include/lib_general.inc.php	Thu Aug 11 06:23:59 2005
@@ -18,7 +18,7 @@
 |                   Gabor Hojtsy <[email protected]>                        |
 |                   Sean Coates <[email protected]>                         |
 +----------------------------------------------------------------------+
-$Id: lib_general.inc.php,v 1.48 2005/08/11 09:54:09 vincent Exp $
+$Id: lib_general.inc.php,v 1.49 2005/08/11 10:23:59 mazzanet Exp $
 */
 
 require_once dirname(__FILE__) . '/lib_auth.inc.php';
@@ -153,9 +153,13 @@
     if (!isset($project))      { $project = SITE;  }
     if (!isset($lang))         { $lang    = LANGC; }
     if (!isset($path))         { $path    = URI;   }
-    if ($path == '/users.php') { $path    = '/';   }
     if ($path == '/index.php') { $path    = '/';   }
 
+    if ($project != SITE && 
+       ($path != '/revcheck.php' && !strstr($path, '/rfc/') && $path != '/checkent.php')) {
+        $path = '/';
+    }
+
     $ret = '/';
     if ($project != $GLOBALS['defaultProject']) {
         $ret .= "$project/";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.