[Openfirst-cvscommit] base/config first.php,1.5,1.6
Brought to you by:
xtimg
From: <xt...@us...> - 2003-06-24 02:30:47
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv18908 Modified Files: first.php Log Message: Add module detection to globals.php Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** first.php 23 Jun 2003 11:14:18 -0000 1.5 --- first.php 24 Jun 2003 02:30:44 -0000 1.6 *************** *** 74,77 **** --- 74,82 ---- \$basepath = '" . $_POST["basepath"] . "'; + // Determine what module the user is viewing + + \$currentmodule = str_replace(\$basepath, \"\", \$_SERVER[\"SCRIPT_NAME\"]); + \$currentmodule = substr(\$currentmodule, 1, strpos(\$currentmodule, \"/\", 2) - 1); + session_start(); include('auth.php'); |