Version 3.1.4
This commit is contained in:
1 parent
1d4720f3e2
commit
ae5c01cc78
2563 files changed
+283048
-240689
No files matched your search
@@ -1,17 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* IP.Board v3.1.4
|
||||
* Version Specific Upgrade Functions
|
||||
* Last Updated: $Date: 2009-01-05 22:21:54 +0000 (Mon, 05 Jan 2009) $
|
||||
* Last Updated: $Date: 2010-10-01 20:18:21 -0400 (Fri, 01 Oct 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author Matt Mecham
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 1st December 2008
|
||||
* @version $Revision: 3572 $
|
||||
* @version $Revision: 6937 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -44,6 +46,12 @@ class upgradeLegacy
|
||||
/* Make sure tables exist that won't in pre 3.0 versions */
|
||||
if ( file_exists( IPS_ROOT_PATH . 'setup/sql/ipb3_' . strtolower( ipsRegistry::$settings['sql_driver'] ) . '.php' ) )
|
||||
{
|
||||
/* Init vars */
|
||||
$UPGRADE_TABLE_FIELD = '';
|
||||
$UPGRADE_SESSION_TABLE = '';
|
||||
$UPGRADE_CSS_PREVIOUS = '';
|
||||
$UPGRADE_TEMPLATE_PREVIOUS = '';
|
||||
|
||||
require( IPS_ROOT_PATH . 'setup/sql/ipb3_' . strtolower( ipsRegistry::$settings['sql_driver'] ) . '.php' );
|
||||
|
||||
$prefix = $this->registry->dbFunctions()->getPrefix();
|
||||
@@ -63,6 +71,22 @@ class upgradeLegacy
|
||||
$this->DB->query( IPSSetUp::addPrefixToQuery( $UPGRADE_SESSION_TABLE, $prefix ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! $this->DB->checkForTable( 'skin_css_previous' ) )
|
||||
{
|
||||
if ( $UPGRADE_CSS_PREVIOUS )
|
||||
{
|
||||
$this->DB->query( IPSSetUp::addPrefixToQuery( $UPGRADE_CSS_PREVIOUS, $prefix ) );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! $this->DB->checkForTable( 'skin_templates_previous' ) )
|
||||
{
|
||||
if ( $UPGRADE_TEMPLATE_PREVIOUS )
|
||||
{
|
||||
$this->DB->query( IPSSetUp::addPrefixToQuery( $UPGRADE_TEMPLATE_PREVIOUS, $prefix ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +180,7 @@ class upgradeLegacy
|
||||
{
|
||||
/* Log in type */
|
||||
$loginType = $this->_fetchLogInType();
|
||||
$where = ( $loginType == 'username' ) ? 'LOWER(m.name)=\'' . mb_strtolower( $username ) . '\'' : 'm.email=\'' . mb_strtolower( $username ) . '\'';
|
||||
$where = ( $loginType == 'username' ) ? $this->DB->buildLower('m.name'). "='" . mb_strtolower( $username ) . "'" : "m.email='" . mb_strtolower( $username ) . "'";
|
||||
|
||||
/* Attempt to load member */
|
||||
$this->DB->build( array( 'select' => 'm.*',
|
||||
|
||||
Reference in new issue
Block a user