Advertisement
Guest User

Untitled

a guest
Nov 14th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.4.0
  8. * @ Author : DeZender
  9. * @ Release on : 30.03.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (!defined( 'IN_IPB' )) {
  15. print '<h1>Incorrect access</h1>You cannot access this file directly.';
  16. exit( );
  17. }
  18.  
  19. class public_nexus_payments_store extends ipsCommand {
  20. function doExecute($registry) {
  21. $setDims = explode( 'x', $this->settings['nexus_thumb_dims'] );
  22.  
  23. if (( !isset( $setDims[0] ) || !isset( $setDims[1] ) )) {
  24. $setDims = array( 100, 100 );
  25. }
  26.  
  27. $this->settings['nexus_thumb_width'] = $setDims[0];
  28. $this->settings['nexus_thumb_height'] = $setDims[1];
  29.  
  30. if (!$this->settings['nexus_store_online']) {
  31. if ($this->memberData['g_access_cp']) {
  32. $this->registry->output->addContent( . '<p class=\'message\'>' . $this->lang->words['store_offline'] . '</p><br />' );
  33. } else {
  34. $this->registry->output->showError( $this->settings['nexus_store_off_message'] );
  35. }
  36. }
  37.  
  38.  
  39. if (( $this->settings['nexus_store_access'] && !IPSMember::isInGroup( $this->memberData, array_filter( explode( ',', $this->settings['nexus_store_access'] ), create_function( '$v', 'return (bool) $v;' ) ) ) )) {
  40. $this->registry->output->showError( 'no_permission', '10X100' );
  41. }
  42.  
  43. session_start( );
  44.  
  45. if (!isset( $_SESSION['cart'] )) {
  46. $_SESSION['cart'] = array( );
  47. }
  48.  
  49. switch ($this->request['do']) {
  50. case 'item': {
  51. $this->viewItem( );
  52. break;
  53. }
  54.  
  55. case 'add': {
  56. $this->addItem( );
  57. break;
  58. }
  59.  
  60. case 'view': {
  61. $this->viewCart( );
  62. break;
  63. }
  64.  
  65. case 'remove': {
  66. $this->removeItem( );
  67. break;
  68. }
  69.  
  70. case 'update_cart': {
  71. $this->updateCart( );
  72. break;
  73. }
  74.  
  75. case 'empty': {
  76. $this->emptyCart( );
  77. break;
  78. }
  79.  
  80. case 'checkout': {
  81. $this->checkout( );
  82. break;
  83. }
  84.  
  85. case 'review_write': {
  86. $this->reviewForm( );
  87. break;
  88. }
  89.  
  90. case 'save_review': {
  91. $this->reviewSave( );
  92. break;
  93. }
  94.  
  95. case 'vouchers': {
  96. $this->giftVouchers( );
  97. break;
  98. }
  99.  
  100. case 'do_vouchers': {
  101. $this->buyGiftVoucher( );
  102. break;
  103. }
  104.  
  105. case 'redeem': {
  106. $this->redeemForm( );
  107. break;
  108. }
  109. ...........................................................................
  110. ............................................
  111. ..................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement