From 4e0a1981b90fb89843467829322ca17a18bd1793 Mon Sep 17 00:00:00 2001 From: wainstead Date: Fri, 2 Nov 2001 05:11:16 +0000 Subject: [PATCH] Added config code contributed by Andrew Pearson for support for MS SQL Server. Untested. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/branches/release-1_2-branch@595 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/config.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/config.php b/lib/config.php index dc193febf..56bbce01e 100644 --- a/lib/config.php +++ b/lib/config.php @@ -10,7 +10,7 @@ if (!function_exists('rcs_id')) { function rcs_id($id) { echo "\n"; }; } - rcs_id('$Id: config.php,v 1.24.2.2 2001-05-21 16:06:50 dairiki Exp $'); + rcs_id('$Id: config.php,v 1.24.2.3 2001-11-02 05:11:16 wainstead Exp $'); // end essential internal stuff @@ -44,7 +44,7 @@ ///////////////////////////////////////////////////////////////////// $WhichDatabase = 'default'; // use one of "dbm", "dba", "mysql", - // "pgsql", "msql", or "file" + // "pgsql", "msql", "mssql", or "file" // DBM and DBA settings (default) if ($WhichDatabase == 'dbm' or $WhichDatabase == 'dba' or @@ -125,7 +125,20 @@ $WikiDB['hitcount'] = "$DBdir/hitcount"; include "lib/db_filesystem.php"; - } else die("Invalid '\$WhichDatabase' in lib/config.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"); ///////////////////////////////////////////////////////////////////// -- 2.45.0