SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Steve W. <wai...@us...> - 2001年01月31日 02:18:29
Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv22967
Modified Files:
	config.php 
Log Message:
Fixed a bug in the loading of dbmlib.php; if the $whichdatabase was
set to 'dbm' a logic error always set it to 'dba', which had
unpredictable results with PHP3.
Index: config.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/config.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** config.php	2001年01月21日 11:00:00	1.22
--- config.php	2001年01月31日 02:18:26	1.23
***************
*** 44,50 ****
 
 $WhichDatabase = 'default'; // use one of "dbm", "dba", "mysql",
! // "pgsql", "msql", or "file"
 
- 
 // DBM and DBA settings (default)
 if ($WhichDatabase == 'dbm' or $WhichDatabase == 'dba' or
--- 44,49 ----
 
 $WhichDatabase = 'default'; // use one of "dbm", "dba", "mysql",
! // "pgsql", "msql", or "file"
 
 // DBM and DBA settings (default)
 if ($WhichDatabase == 'dbm' or $WhichDatabase == 'dba' or
***************
*** 62,73 ****
 
 // for PHP3 use dbmlib, else use dbalib for PHP4
! if (($WhichDatabase == 'default') and (floor(phpversion())) == 3) {
! $WhichDatabase = 'dbm';
! } else {
! $WhichDatabase = 'dba';
 }
 
 if ($WhichDatabase == 'dbm') {
! include "lib/dbmlib.php";
 } else {
 include "lib/dbalib.php";
--- 61,74 ----
 
 // for PHP3 use dbmlib, else use dbalib for PHP4
! if ($WhichDatabase == 'default') {
! if ( floor(phpversion()) == 3) {
! $WhichDatabase = 'dbm';
! } else {
! $WhichDatabase = 'dba';
! }
 }
 
 if ($WhichDatabase == 'dbm') {
! include "lib/dbmlib.php"; 
 } else {
 include "lib/dbalib.php";
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /