Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- function set_transfered()
- {
- global $settings;
- global $sess;
- global $cart;
- $sess->dvar('cart');
- $cart = restorecart(desql(sanitize($_GET['SSSESS'])));
- if (!is_object($cart)) {
- $cart = new cart();
- }
- savecart();
- if (($_GET['USERIN'] != '') && ($_GET['PASSIN'] != '')) {
- authenticate(cc_unconvert(base64_decode($_GET['USERIN'])), $_GET['PASSIN']);
- }
- if (strstr($_SERVER['PHP_SELF'], 'quick_checkout.php') !== false) {
- $location = 'quick_checkout.php';
- }
- else if (strstr($_SERVER['PHP_SELF'], 'checkout.php') !== false) {
- $location = 'checkout.php';
- }
- else {
- $location = 'index.php?l=account' . ($_GET['tab'] != '' ? '&tab=' . $_GET['tab'] : '');
- }
- switch ($_GET['p']) {
- case 'previous':
- header('location: ' . $settings['secureurl'] . 'index.php?l=previous');
- break;
- case 'checkout':
- header('location: ' . $settings['secureurl'] . 'checkout.php');
- break;
- case 'quick_checkout':
- header('location: ' . $settings['secureurl'] . 'quick_checkout.php');
- break;
- case 'account':
- header('location: ' . $settings['secureurl'] . 'index.php?l=account');
- break;
- default:
- header('location: ' . $settings['secureurl'] . $location);
- break;
- }
- exit();
- }
- function mail_send($to, $toname, $subject, $body, $from, $fromname, $html = false, $rerror = false, $replyto = '')
- {
- global $DB_site;
- global $dbprefix;
- global $settings;
- global $abs_path;
- global $ae;
- require_once $abs_path . '/include/vendors/phpmailer/src/Exception.php';
- require_once $abs_path . '/include/vendors/phpmailer/src/PHPMailer.php';
- require_once $abs_path . '/include/vendors/phpmailer/src/SMTP.php';
- $mail = new PHPMailer\PHPMailer\PHPMailer();
- $mail->SetLanguage('en', ABS_PATH . '/include/vendors/phpmailer/language/');
- $mail->IsHTML($html);
- $mail->setFrom($from, $fromname);
- if (is_array($replyto)) {
- $mail->addReplyTo($replyto['email'], $replyto['name']);
- }
- else {
- $mail->addReplyTo($from, $fromname);
- }
- if ($settings['mail_method'] == 'smtp') {
- $mail->SMTPDebug = 0;
- $mail->isSMTP();
- }
- if ($settings['mail_method'] == 'sendmail') {
- $mail->isSendmail();
- }
- if ($settings['mail_secure'] != '') {
- $mail->SMTPSecure = $settings['mail_secure'];
- }
- $mail->Host = ($settings['mail_method'] == 'smtp' ? $settings['mail_host'] : '');
- $mail->Port = ($settings['mail_method'] == 'smtp' ? $settings['mail_port'] : 25);
- if (($settings['mail_method'] == 'smtp') && ($settings['mail_username'] != '')) {
- $mail->Username = $settings['mail_username'];
- $mail->Password = $settings['mail_password'];
- $mail->SMTPAuth = true;
- }
- $mail->Body = stripslashes(stripslashes(stripslashes(stripslashes($body))));
- if ($html) {
- $mail->AltBody = strip_tags($body);
- }
- $mail->Subject = stripslashes(stripslashes(stripslashes(stripslashes($subject))));
- if (is_array($to)) {
- $mail->addAddress($from, $fromname);
- foreach ($to as $v) {
- $mail->addBCC($v, $v);
- }
- }
- else {
- $mail->addAddress($to, $toname);
- }
- if (!$mail->send() && $rerror) {
- $ae->new_error('Mail Error: ' . $mail->ErrorInfo);
- }
- }
- function get_previous()
- {
- global $cart;
- if (!is_array($cart->previous)) {
- return NULL;
- }
- foreach ($cart->previous as $k => $v) {
- $return_url .= ($v != '' ? ($return_url == '' ? '?' : '&') . $k . '=' . $v : '');
- }
- return $return_url;
- }
- function set_previous()
- {
- global $cart;
- $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']];
- $cart->set_previous($previous);
- }
- function hash_me($info)
- {
- return base64_encode(tempcryptit($info['id'] . '||' . $info['password']));
- }
- function out_to_file($out, $tfile)
- {
- global $abs_path;
- ob_start();
- debug($out);
- $to_file = ob_get_contents();
- ob_end_flush();
- .........................................................................
- ....................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement