Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.4.0
- * @ Author : DeZender
- * @ Release on : 30.03.2012
- * @ Official site : http://DeZender.Net
- *
- */
- if (!defined( 'IN_IPB' )) {
- print '<h1>Incorrect access</h1>You cannot access this file directly.';
- exit( );
- }
- class public_nexus_payments_store extends ipsCommand {
- function doExecute($registry) {
- $setDims = explode( 'x', $this->settings['nexus_thumb_dims'] );
- if (( !isset( $setDims[0] ) || !isset( $setDims[1] ) )) {
- $setDims = array( 100, 100 );
- }
- $this->settings['nexus_thumb_width'] = $setDims[0];
- $this->settings['nexus_thumb_height'] = $setDims[1];
- if (!$this->settings['nexus_store_online']) {
- if ($this->memberData['g_access_cp']) {
- $this->registry->output->addContent( . '<p class=\'message\'>' . $this->lang->words['store_offline'] . '</p><br />' );
- } else {
- $this->registry->output->showError( $this->settings['nexus_store_off_message'] );
- }
- }
- if (( $this->settings['nexus_store_access'] && !IPSMember::isInGroup( $this->memberData, array_filter( explode( ',', $this->settings['nexus_store_access'] ), create_function( '$v', 'return (bool) $v;' ) ) ) )) {
- $this->registry->output->showError( 'no_permission', '10X100' );
- }
- session_start( );
- if (!isset( $_SESSION['cart'] )) {
- $_SESSION['cart'] = array( );
- }
- switch ($this->request['do']) {
- case 'item': {
- $this->viewItem( );
- break;
- }
- case 'add': {
- $this->addItem( );
- break;
- }
- case 'view': {
- $this->viewCart( );
- break;
- }
- case 'remove': {
- $this->removeItem( );
- break;
- }
- case 'update_cart': {
- $this->updateCart( );
- break;
- }
- case 'empty': {
- $this->emptyCart( );
- break;
- }
- case 'checkout': {
- $this->checkout( );
- break;
- }
- case 'review_write': {
- $this->reviewForm( );
- break;
- }
- case 'save_review': {
- $this->reviewSave( );
- break;
- }
- case 'vouchers': {
- $this->giftVouchers( );
- break;
- }
- case 'do_vouchers': {
- $this->buyGiftVoucher( );
- break;
- }
- case 'redeem': {
- $this->redeemForm( );
- break;
- }
- ...........................................................................
- ............................................
- ..................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement