From b9bc4d74606d7061b480af9fa88d1692ec64734f Mon Sep 17 00:00:00 2001
From: stronk7
Date: Thu, 19 Oct 2006 18:45:16 +0000
Subject: [PATCH] Adding support for the new mssql_n driver
Merged from MOODLE_17_STABLE
---
install.php | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/install.php b/install.php
index 66005c9480..6bf5fe8b32 100644
--- a/install.php
+++ b/install.php
@@ -296,6 +296,13 @@ if ($INSTALL['stage'] == DATABASE) {
}
}
+ if ($INSTALL['dbtype'] == 'mssql_n') { /// Check MSSQL extension is present
+ if (!extension_loaded('mssql')) {
+ $errormsg = get_string('mssqlextensionisnotpresentinphp', 'install');
+ $nextstage = DATABASE;
+ }
+ }
+
if ($INSTALL['dbtype'] == 'odbc_mssql') { /// Check ODBC extension is present
if (!extension_loaded('odbc')) {
$errormsg = get_string('odbcextensionisnotpresentinphp', 'install');
@@ -643,6 +650,13 @@ if (isset($_GET['help'])) {
echo get_string('moodledocslink', 'install') . '
';
echo '';
+ echo '' . get_string('databasesettingssub_oci8po', 'install');
- /// Link to mssql installation page
+ /// Link to oracle installation page
echo '
';
echo '
';
echo get_string('moodledocslink', 'install') . '
';
@@ -842,6 +856,7 @@ function form_table($nextstage = WELCOME, $formaction = "install.php") {
'oci8po' => get_string('oci8po', 'install'),
'postgres7' => get_string('postgres7', 'install'),
'mssql' => get_string('mssql', 'install'),
+ 'mssql_n' => get_string('mssql_n', 'install'),
'odbc_mssql' => get_string('odbc_mssql', 'install')),
'dbtype', $INSTALL['dbtype'], '', 'toggledbinfo();') ?>
@@ -1233,7 +1248,7 @@ function css_styles() {
padding: 20px;
color: #ff0000;
}
- #mysql, #postgres7, #mssql, #odbc_mssql, #oci8po {
+ #mysql, #postgres7, #mssql, #mssql_n, #odbc_mssql, #oci8po {
display: none;
}
@@ -1259,6 +1274,7 @@ function toggledbinfo() {
document.getElementById('mysql').style.display = '';
document.getElementById('postgres7').style.display = '';
document.getElementById('mssql').style.display = '';
+ document.getElementById('mssql_n').style.display = '';
document.getElementById('odbc_mssql').style.display = '';
document.getElementById('oci8po').style.display = '';
//Show the selected div
@@ -1269,6 +1285,7 @@ function toggledbinfo() {
document.all['mysql'].style.display = '';
document.all['postgres7'].style.display = '';
document.all['mssql'].style.display = '';
+ document.all['mssql_n'].style.display = '';
document.all['odbc_mssql'].style.display = '';
document.all['oci8po'].style.display = '';
//Show the selected div
@@ -1279,6 +1296,7 @@ function toggledbinfo() {
document.layers['mysql'].style.display = '';
document.layers['postgres7'].style.display = '';
document.layers['mssql'].style.display = '';
+ document.layers['mssql_n'].style.display = '';
document.layers['odbc_mssql'].style.display = '';
document.layers['oci8po'].style.display = '';
//Show the selected div
--
2.39.5