Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -2,17 +2,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Installer: EULA file
|
||||
* Last Updated: $LastChangedDate: 2010-05-03 19:34:02 -0400 (Mon, 03 May 2010) $
|
||||
* Last Updated: $LastChangedDate: 2011-09-16 15:32:18 -0400 (Fri, 16 Sep 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 6205 $
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9503 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -24,7 +24,7 @@ class install_db extends ipsCommand
|
||||
*
|
||||
* @access public
|
||||
* @param object Registry object
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function doExecute( ipsRegistry $registry )
|
||||
{
|
||||
@@ -43,11 +43,28 @@ class install_db extends ipsCommand
|
||||
}
|
||||
else
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Quick basic check for extensions
|
||||
//-----------------------------------------
|
||||
|
||||
if( strtolower(IPSSetUp::getSavedData('sql_driver')) == 'mysql' )
|
||||
{
|
||||
if( !function_exists('mysqli_connect') AND !function_exists('mysql_connect') )
|
||||
{
|
||||
$this->registry->output->setTitle( "Databases: Error" );
|
||||
$this->registry->output->setNextAction( 'db&do=check' );
|
||||
$this->registry->output->addWarning( "You do not have the mysql or mysqli PHP extension installed. You must install one of these PHP extensions before you can continue." );
|
||||
$this->registry->output->addContent( $this->fetchContent() );
|
||||
$this->registry->output->sendOutput();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Load DB driver..
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( IPS_KERNEL_PATH . 'classDb' . ucwords( IPSSetUp::getSavedData('sql_driver') ) . '.php' );
|
||||
require_once( IPS_KERNEL_PATH . 'classDb' . ucwords( IPSSetUp::getSavedData('sql_driver') ) . '.php' );/*noLibHook*/
|
||||
|
||||
$classname = "db_driver_".IPSSetUp::getSavedData('sql_driver');
|
||||
|
||||
@@ -63,9 +80,9 @@ class install_db extends ipsCommand
|
||||
// Any "extra" configs required for this driver?
|
||||
//--------------------------------------------------
|
||||
|
||||
if ( file_exists( IPS_ROOT_PATH . 'setup/sql/'.IPSSetUp::getSavedData('sql_driver').'_install.php' ) )
|
||||
if ( is_file( IPS_ROOT_PATH . 'setup/sql/'.IPSSetUp::getSavedData('sql_driver').'_install.php' ) )
|
||||
{
|
||||
require_once( IPS_ROOT_PATH . 'setup/sql/'.IPSSetUp::getSavedData('sql_driver').'_install.php' );
|
||||
require_once( IPS_ROOT_PATH . 'setup/sql/'.IPSSetUp::getSavedData('sql_driver').'_install.php' );/*noLibHook*/
|
||||
|
||||
$extra_install = new install_extra( $this->registry );
|
||||
|
||||
@@ -251,9 +268,9 @@ class install_db extends ipsCommand
|
||||
$content = ( $check === FALSE ) ? $this->registry->output->template()->page_db() : $this->registry->output->template()->page_dbOverride();
|
||||
|
||||
/* Driver extras? */
|
||||
if ( file_exists( IPS_ROOT_PATH . 'setup/sql/'.IPSSetUp::getSavedData('sql_driver').'_install.php' ) )
|
||||
if ( is_file( IPS_ROOT_PATH . 'setup/sql/'.IPSSetUp::getSavedData('sql_driver').'_install.php' ) )
|
||||
{
|
||||
require_once( IPS_ROOT_PATH . 'setup/sql/'.IPSSetUp::getSavedData('sql_driver').'_install.php' );
|
||||
require_once( IPS_ROOT_PATH . 'setup/sql/'.IPSSetUp::getSavedData('sql_driver').'_install.php' );/*noLibHook*/
|
||||
$extra_install = new install_extra( $this->registry );
|
||||
|
||||
$content = str_replace( '<!--{EXTRA.SQL}-->', $extra_install->install_form_extra(), $content );
|
||||
|
||||
Reference in new issue
Block a user