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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user