summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--process_sql.php34
-rw-r--r--templates/install_checks.tpl2
2 files changed, 35 insertions, 1 deletions
diff --git a/process_sql.php b/process_sql.php
new file mode 100644
index 0000000..c7c5d73
--- /dev/null
+++ b/process_sql.php
@@ -0,0 +1,34 @@
+<?php
+/**
+ * @version $Header$
+ * @package install
+ * @subpackage functions
+ */
+
+/**
+ * Global flag to indicate we are installing
+ * @ignore
+ */
+define( 'BIT_INSTALL', 'TRUE' );
+ global $failedcommands;
+// keep some crappy notices from spewing
+$_SERVER['HTTP_HOST'] = 'shell';
+$_SERVER['SERVER_SOFTWARE'] = 'command_line';
+
+/**
+ * required setup
+ */
+require_once( 'install_lib.php' );
+include("../kernel/includes/setup_inc.php");
+
+if( count( $argv ) < 2) {
+ print "Please enter name of SQL file in db/ directory to process\n";
+} else {
+ // avoid errors in ADONewConnection() (wrong darabase driver etc...)
+ $gBitDb = &ADONewConnection($gBitDbType);
+ if( $gBitDb->Connect($gBitDbHost, $gBitDbUser, $gBitDbPassword, $gBitDbName) ) {
+ process_sql_file( $argv[1], $gBitDbType, BIT_DB_PREFIX );
+ }
+}
+
+?>
diff --git a/templates/install_checks.tpl b/templates/install_checks.tpl
index db06e50..c403147 100644
--- a/templates/install_checks.tpl
+++ b/templates/install_checks.tpl
@@ -150,7 +150,7 @@
<li>or download a pre-packed set of <a class="external"
href="http://www.bitweaver.org/downloads/file/11619">Bitweaver
PEAR extensions</a> and extract this to<br />
- <kbd>{$smarty.const.UTIL_PKG_INC}pear/</kbd></li>
+ <kbd>{$smarty.const.UTIL_PKG_INCLUDE_PATH}pear/</kbd></li>
</ul>
{else}
<p class="alert alert-success">