Version 3.4.9
This commit is contained in:
1 parent
c603205a25
commit
f9e857d255
920 files changed
+28189
-6840
No files matched your search
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: EULA file
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: ADMIN file
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: EULA file
|
||||
* Last Updated: $LastChangedDate: 2013-01-31 18:11:00 -0500 (Thu, 31 Jan 2013) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: EULA file
|
||||
* Last Updated: $LastChangedDate: 2012-11-02 08:18:10 -0400 (Fri, 02 Nov 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: EULA file
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: EULA file
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: Index file
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: EULA file
|
||||
* Last Updated: $LastChangedDate: 2012-09-27 06:09:08 -0400 (Thu, 27 Sep 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: License Key
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
@@ -28,9 +28,55 @@ class install_license extends ipsCommand
|
||||
*/
|
||||
public function doExecute( ipsRegistry $registry )
|
||||
{
|
||||
IPSSetup::setSavedData( 'lkey', darkLAE::getLicenseKey() );
|
||||
|
||||
$this->registry->autoLoadNextAction( 'db' );
|
||||
$lcheck = '';
|
||||
if ( $this->request['do'] == 'check' )
|
||||
{
|
||||
$lcheck = $this->check();
|
||||
if ( $lcheck === TRUE )
|
||||
{
|
||||
$this->registry->autoLoadNextAction( 'db' );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$this->registry->output->setTitle( "License Key" );
|
||||
$this->registry->output->setNextAction( "license&do=check" );
|
||||
$this->registry->output->addContent( $this->registry->output->template()->page_license( $lcheck ) );
|
||||
$this->registry->output->sendOutput();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check License Key
|
||||
*
|
||||
* @access public
|
||||
* @return bool
|
||||
*/
|
||||
private function check()
|
||||
{
|
||||
$this->request['lkey'] = trim( $this->request['lkey'] );
|
||||
|
||||
// License key is optional
|
||||
if( ! $this->request['lkey'] )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
$url = IPSSetup::getSavedData( 'install_url' );
|
||||
|
||||
require_once( IPS_KERNEL_PATH . 'classFileManagement.php' );/*noLibHook*/
|
||||
$query = new classFileManagement();
|
||||
$response = $query->getFileContents( "http://license.invisionpower.com/?a=check&key={$this->request['lkey']}&url={$url}" );
|
||||
$response = json_decode( $response, true );
|
||||
|
||||
if( $response['result'] != 'ok' )
|
||||
{
|
||||
return "Your license key could not be activated. Please check your key and try again. If the problem persists, please contact technical support.";
|
||||
}
|
||||
else
|
||||
{
|
||||
IPSSetup::setSavedData( 'lkey', $this->request['lkey'] );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: EULA file
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: DONE file
|
||||
* Last Updated: $LastChangedDate: 2013-05-08 13:47:21 -0400 (Wed, 08 May 2013) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Upgrader: Index file - Shows log in page
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: License Key
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
@@ -28,9 +28,76 @@ class upgrade_license extends ipsCommand
|
||||
*/
|
||||
public function doExecute( ipsRegistry $registry )
|
||||
{
|
||||
IPSLib::updateSettings( array( 'ipb_reg_number' => darkLAE::getLicenseKey() ) );
|
||||
/* If less than 3, just bounce out as settings tables won't be here, etc */
|
||||
if ( IPSSetUp::is300plus() !== TRUE )
|
||||
{
|
||||
$this->registry->autoLoadNextAction( 'upgrade' );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( $this->request['do'] == 'check' )
|
||||
{
|
||||
$lcheck = $this->check();
|
||||
if ( $lcheck === TRUE )
|
||||
{
|
||||
$this->registry->autoLoadNextAction( 'upgrade' );
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$lcheck = $this->check( TRUE );
|
||||
if ( $lcheck === TRUE )
|
||||
{
|
||||
$this->registry->autoLoadNextAction( 'upgrade' );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$this->registry->output->setTitle( "License Key" );
|
||||
$this->registry->output->setNextAction( "license&do=check" );
|
||||
$this->registry->output->addContent( $this->registry->output->template()->page_license( $lcheck ) );
|
||||
$this->registry->output->sendOutput();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check License Key
|
||||
*
|
||||
* @access public
|
||||
* @return bool
|
||||
*/
|
||||
private function check( $init=FALSE )
|
||||
{
|
||||
$this->request['lkey'] = ( $init ) ? ipsRegistry::$settings['ipb_reg_number'] : trim( $this->request['lkey'] );
|
||||
|
||||
if ( !$this->request['lkey'] and !$init )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
$url = ipsRegistry::$settings['board_url'] ? ipsRegistry::$settings['board_url'] : ipsRegistry::$settings['base_url'];
|
||||
|
||||
$this->registry->autoLoadNextAction( 'upgrade' );
|
||||
require_once( IPS_KERNEL_PATH . 'classFileManagement.php' );/*noLibHook*/
|
||||
$query = new classFileManagement();
|
||||
$response = $query->getFileContents( "http://license.invisionpower.com/?a=check&key={$this->request['lkey']}&url={$url}" );
|
||||
$response = json_decode( $response, true );
|
||||
|
||||
if( $response['result'] != 'ok' )
|
||||
{
|
||||
if ( $this->request['ignoreError'] )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return "License key check failed. Click next to continue anyway.";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
IPSLib::updateSettings( array( 'ipb_reg_number' => $this->request['lkey'] ) );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Upgrader: Index file - Shows log in page
|
||||
* Last Updated: $LastChangedDate: 2013-04-18 21:11:00 -0400 (Thu, 18 Apr 2013) $
|
||||
* </pre>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.8
|
||||
* IP.Board v3.4.9
|
||||
* Installer: Upgrader core file
|
||||
* Last Updated: $LastChangedDate: 2013-01-31 18:28:51 -0500 (Thu, 31 Jan 2013) $
|
||||
* </pre>
|
||||
|
||||
Reference in new issue
Block a user