Source for file process_sql.php
Documentation is available at process_sql.php
* Global flag to indicate we are installing
define( 'BIT_INSTALL', 'TRUE' );
// keep some crappy notices from spewing
$_SERVER['HTTP_HOST'] = 'shell';
$_SERVER['SERVER_SOFTWARE'] = 'command_line';
require_once( 'install_lib.php' );
include("../kernel/setup_inc.php");
if( count( $argv ) < 2) {
print "Please enter name of SQL file in db/ directory to process\n";
// avoid errors in ADONewConnection() (wrong darabase driver etc...)
$gBitDb = &ADONewConnection($gBitDbType);
if( $gBitDb->Connect($gBitDbHost, $gBitDbUser, $gBitDbPassword, $gBitDbName) ) {
|