cvs: docweb /include lib_general.inc.php
| From: | Matthew Li | Date: | Thu, 11 Aug 2005 10:23:59 +0000 |
| Subject: | cvs: docweb /include lib_general.inc.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-800@lists.php.net to get a copy of this message | ||
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 <goba@php.net> |
| Sean Coates <sean@php.net> |
+----------------------------------------------------------------------+
-$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/";