summaryrefslogtreecommitdiff
path: root/upgrade_database.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 04:51:19 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 04:51:19 +0000
commitf2c6619fcf9489f34354efe9a9eab3dd73db773e (patch)
tree8640b8d4ca95a864be32d785a4b31d64ef46032f /upgrade_database.php
downloadinstall-f2c6619fcf9489f34354efe9a9eab3dd73db773e.tar.gz
install-f2c6619fcf9489f34354efe9a9eab3dd73db773e.tar.bz2
install-f2c6619fcf9489f34354efe9a9eab3dd73db773e.zip
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'upgrade_database.php')
-rw-r--r--upgrade_database.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/upgrade_database.php b/upgrade_database.php
new file mode 100644
index 0000000..f4dbf8f
--- /dev/null
+++ b/upgrade_database.php
@@ -0,0 +1,16 @@
+<?php
+$app = '';
+include_once( INSTALL_PKG_PATH.'install_database.php' );
+// update the MySQL settings in the db server array
+if( function_exists( 'mysql_connect' ) ) {
+ // check version of mysql server
+ if( preg_match( '/[4-9]\./', @mysql_get_server_info() ) ) {
+ $dbtodsn['mysql'] = 'MySQL '.mysql_get_server_info();
+ } elseif( preg_match( '/3\./', @mysql_get_server_info() ) ) {
+ $dbtodsn['mysql'] = 'MySQL '.mysql_get_server_info().' WARNING!!!';
+ } else {
+ $dbtodsn['mysql'] = 'MySQL 3.x';
+ }
+}
+$smarty->assign( 'include_template', INSTALL_PKG_PATH."templates/install_database".$app.".tpl" );
+?>