Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function set_transfered()
  15. {
  16. global $settings;
  17. global $sess;
  18. global $cart;
  19. $sess->dvar('cart');
  20. $cart = restorecart(desql(sanitize($_GET['SSSESS'])));
  21.  
  22. if (!is_object($cart)) {
  23. $cart = new cart();
  24. }
  25.  
  26. savecart();
  27. if (($_GET['USERIN'] != '') && ($_GET['PASSIN'] != '')) {
  28. authenticate(cc_unconvert(base64_decode($_GET['USERIN'])), $_GET['PASSIN']);
  29. }
  30.  
  31. if (strstr($_SERVER['PHP_SELF'], 'quick_checkout.php') !== false) {
  32. $location = 'quick_checkout.php';
  33. }
  34. else if (strstr($_SERVER['PHP_SELF'], 'checkout.php') !== false) {
  35. $location = 'checkout.php';
  36. }
  37. else {
  38. $location = 'index.php?l=account' . ($_GET['tab'] != '' ? '&tab=' . $_GET['tab'] : '');
  39. }
  40.  
  41. switch ($_GET['p']) {
  42. case 'previous':
  43. header('location: ' . $settings['secureurl'] . 'index.php?l=previous');
  44. break;
  45. case 'checkout':
  46. header('location: ' . $settings['secureurl'] . 'checkout.php');
  47. break;
  48. case 'quick_checkout':
  49. header('location: ' . $settings['secureurl'] . 'quick_checkout.php');
  50. break;
  51. case 'account':
  52. header('location: ' . $settings['secureurl'] . 'index.php?l=account');
  53. break;
  54. default:
  55. header('location: ' . $settings['secureurl'] . $location);
  56. break;
  57. }
  58.  
  59. exit();
  60. }
  61.  
  62. function mail_send($to, $toname, $subject, $body, $from, $fromname, $html = false, $rerror = false, $replyto = '')
  63. {
  64. global $DB_site;
  65. global $dbprefix;
  66. global $settings;
  67. global $abs_path;
  68. global $ae;
  69. require_once $abs_path . '/include/vendors/phpmailer/src/Exception.php';
  70. require_once $abs_path . '/include/vendors/phpmailer/src/PHPMailer.php';
  71. require_once $abs_path . '/include/vendors/phpmailer/src/SMTP.php';
  72. $mail = new PHPMailer\PHPMailer\PHPMailer();
  73. $mail->SetLanguage('en', ABS_PATH . '/include/vendors/phpmailer/language/');
  74. $mail->IsHTML($html);
  75. $mail->setFrom($from, $fromname);
  76.  
  77. if (is_array($replyto)) {
  78. $mail->addReplyTo($replyto['email'], $replyto['name']);
  79. }
  80. else {
  81. $mail->addReplyTo($from, $fromname);
  82. }
  83.  
  84. if ($settings['mail_method'] == 'smtp') {
  85. $mail->SMTPDebug = 0;
  86. $mail->isSMTP();
  87. }
  88.  
  89. if ($settings['mail_method'] == 'sendmail') {
  90. $mail->isSendmail();
  91. }
  92.  
  93. if ($settings['mail_secure'] != '') {
  94. $mail->SMTPSecure = $settings['mail_secure'];
  95. }
  96.  
  97. $mail->Host = ($settings['mail_method'] == 'smtp' ? $settings['mail_host'] : '');
  98. $mail->Port = ($settings['mail_method'] == 'smtp' ? $settings['mail_port'] : 25);
  99. if (($settings['mail_method'] == 'smtp') && ($settings['mail_username'] != '')) {
  100. $mail->Username = $settings['mail_username'];
  101. $mail->Password = $settings['mail_password'];
  102. $mail->SMTPAuth = true;
  103. }
  104.  
  105. $mail->Body = stripslashes(stripslashes(stripslashes(stripslashes($body))));
  106.  
  107. if ($html) {
  108. $mail->AltBody = strip_tags($body);
  109. }
  110.  
  111. $mail->Subject = stripslashes(stripslashes(stripslashes(stripslashes($subject))));
  112.  
  113. if (is_array($to)) {
  114. $mail->addAddress($from, $fromname);
  115.  
  116. foreach ($to as $v) {
  117. $mail->addBCC($v, $v);
  118. }
  119. }
  120. else {
  121. $mail->addAddress($to, $toname);
  122. }
  123. if (!$mail->send() && $rerror) {
  124. $ae->new_error('Mail Error: ' . $mail->ErrorInfo);
  125. }
  126. }
  127.  
  128. function get_previous()
  129. {
  130. global $cart;
  131.  
  132. if (!is_array($cart->previous)) {
  133. return NULL;
  134. }
  135.  
  136. foreach ($cart->previous as $k => $v) {
  137. $return_url .= ($v != '' ? ($return_url == '' ? '?' : '&') . $k . '=' . $v : '');
  138. }
  139.  
  140. return $return_url;
  141. }
  142.  
  143. function set_previous()
  144. {
  145. global $cart;
  146. $previous = ['pg' => $_GET['pg'], 'dpg' => $_GET['dpg'], 'apg' => $_GET['apg'], 'opg' => $_GET['opg'], 'wpg' => $_GET['wpg'], 'rpg' => $_GET['rpg'], 'l' => $_GET['l'], 'p' => $_GET['p'], 'c' => $_GET['c'], 'm' => $_GET['m'], 'tab' => $_GET['tab'], 'id' => $_GET['id'], 'uid' => $_GET['uid']];
  147. $cart->set_previous($previous);
  148. }
  149.  
  150. function hash_me($info)
  151. {
  152. return base64_encode(tempcryptit($info['id'] . '||' . $info['password']));
  153. }
  154.  
  155. function out_to_file($out, $tfile)
  156. {
  157. global $abs_path;
  158. ob_start();
  159. debug($out);
  160. $to_file = ob_get_contents();
  161. ob_end_flush();
  162. .........................................................................
  163. ....................................
  164. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement