|
From: Lo?c C. <lo...@us...> - 2001-04-20 21:17:11
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv25374/chat/lib
Modified Files:
db_sessions.lib.php3 common.lib.php3
Log Message:
The 'ini_get()' function is disabled by some ISP -> avoid error messages
Index: db_sessions.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/db_sessions.lib.php3,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** db_sessions.lib.php3 2001/04/19 21:05:04 1.10
--- db_sessions.lib.php3 2001/04/20 21:17:09 1.11
***************
*** 342,346 ****
else
{
! $dbSessionLifeTime = (empty($theLifeTime)) ? ini_get('session.gc_maxlifetime') : $theLifeTime;
}
--- 342,348 ----
else
{
! $dbSessionLifeTime = (empty($theLifeTime) && @ini_get('session.gc_maxlifetime'))
! ? @ini_get('session.gc_maxlifetime')
! : $theLifeTime;
}
Index: common.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/common.lib.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** common.lib.php3 2001/04/19 21:05:04 1.7
--- common.lib.php3 2001/04/20 21:17:09 1.8
***************
*** 52,56 ****
if ($pmcIsPhp4)
{
! $pmcQueryArgSeparator = (ini_get('arg_separator')) ? ini_get('arg_separator') : '&';
}
else
--- 52,56 ----
if ($pmcIsPhp4)
{
! $pmcQueryArgSeparator = (@ini_get('arg_separator')) ? @ini_get('arg_separator') : '&';
}
else
***************
*** 136,140 ****
// The 'register_globals' option is enabled for php4 -> skip
else if ($pmcIsPhp4
! && (ini_get('register_globals') == 1 || strtolower(ini_get('register_globals')) == 'on'))
{
return false;
--- 136,140 ----
// The 'register_globals' option is enabled for php4 -> skip
else if ($pmcIsPhp4
! && (@ini_get('register_globals') == 1 || strtolower(@ini_get('register_globals')) == 'on'))
{
return false;
|