From: Steve W. <wai...@us...> - 2001-11-02 05:11:19
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv14230/lib Modified Files: Tag: release-1_2-branch config.php Log Message: Added config code contributed by Andrew Pearson for support for MS SQL Server. Untested. Index: config.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/config.php,v retrieving revision 1.24.2.2 retrieving revision 1.24.2.3 diff -C2 -r1.24.2.2 -r1.24.2.3 *** config.php 2001/05/21 16:06:50 1.24.2.2 --- config.php 2001/11/02 05:11:16 1.24.2.3 *************** *** 45,49 **** $WhichDatabase = 'default'; // use one of "dbm", "dba", "mysql", ! // "pgsql", "msql", or "file" // DBM and DBA settings (default) --- 45,49 ---- $WhichDatabase = 'default'; // use one of "dbm", "dba", "mysql", ! // "pgsql", "msql", "mssql", or "file" // DBM and DBA settings (default) *************** *** 126,130 **** include "lib/db_filesystem.php"; ! } else die("Invalid '\$WhichDatabase' in lib/config.php"); --- 126,143 ---- include "lib/db_filesystem.php"; ! // MS SQLServer settings ! } elseif ($WhichDatabase == 'mssql') { ! $WikiPageStore = "wiki"; ! $ArchivePageStore = "archive"; ! $WikiLinksStore = "wikilinks"; ! $WikiScoreStore = "wikiscore"; ! $HitCountStore = "hitcount"; ! $mssql_server = 'servername'; ! $mssql_user = ''; ! $mssql_pwd = ''; ! $mssql_db = ''; ! include "lib/mssql.php"; ! ! } else die("Invalid '\$WhichDatabase' in lib/config.php"); |