[Openfirst-cvscommit] base/config first.php,1.17,1.18
Brought to you by:
xtimg
From: <xt...@us...> - 2003-08-22 05:46:10
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv17233 Modified Files: first.php Log Message: Include all functions that are present, so that enhanced functionality is available as required. Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** first.php 19 Aug 2003 20:47:59 -0000 1.17 --- first.php 19 Aug 2003 20:53:42 -0000 1.18 *************** *** 84,87 **** --- 84,102 ---- session_start(); include('auth.php'); + if(function_exists(\"glob\")) { + // Include the functions using glob(); + if(is_readable(getcwd() . \"/../config/functions/\")) { + foreach (glob(getcwd() . \"/../config/functions/*.php\") as \$filename) { + include(\$filename); + } + } elseif (is_readable(getcwd() . \"/../../config/functions/\")) { + foreach (glob(getcwd() . \"/../../config/functions/*.php\") as $filename) { + include(\$filename); + } + } + } else { + // Include the functions without using glob(); + } + session_write_close(); |