Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -35,13 +35,8 @@ class _purchases extends \IPS\Dispatcher\Controller
|
||||
\IPS\Output::i()->error( 'no_module_permission_guest', '2X212/6', 403, '' );
|
||||
}
|
||||
|
||||
if ( mb_strtolower( $_SERVER['REQUEST_METHOD'] ) == 'get' and \IPS\Settings::i()->nexus_https and \IPS\Request::i()->url()->data['scheme'] !== 'https' )
|
||||
{
|
||||
\IPS\Output::i()->redirect( \IPS\Request::i()->url()->setScheme('https') );
|
||||
}
|
||||
|
||||
/* Purchases breadcrumb */
|
||||
\IPS\Output::i()->breadcrumb[] = array( \IPS\Http\Url::internal( 'app=nexus&module=clients&controller=purchases', 'front', 'clientspurchases', array(), \IPS\Settings::i()->nexus_https ), \IPS\Member::loggedIn()->language()->addToStack('client_purchases') );
|
||||
\IPS\Output::i()->breadcrumb[] = array( \IPS\Http\Url::internal( 'app=nexus&module=clients&controller=purchases', 'front', 'clientspurchases' ), \IPS\Member::loggedIn()->language()->addToStack('client_purchases') );
|
||||
|
||||
/* Load Purchase */
|
||||
if ( isset( \IPS\Request::i()->id ) )
|
||||
@@ -154,6 +149,14 @@ class _purchases extends \IPS\Dispatcher\Controller
|
||||
{
|
||||
\IPS\Session::i()->csrfCheck();
|
||||
}
|
||||
elseif ( isset( \IPS\Request::i()->cycles ) and \IPS\Login::compareHashes( (string) \IPS\Session::i()->csrfKey, (string) \IPS\Request::i()->csrfKey ) )
|
||||
{
|
||||
$_cycles = intval( \IPS\Request::i()->cycles );
|
||||
if ( $_cycles >= 1 and ( $cycles === TRUE or $_cycles <= $cycles ) )
|
||||
{
|
||||
$cycles = $_cycles;
|
||||
}
|
||||
}
|
||||
|
||||
$term = $this->purchase->renewals->getTerm();
|
||||
if ( $term['term'] > 1 )
|
||||
|
||||
Reference in new issue
Block a user