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.5.1
- * @ Author : DeZender
- * @ Release on : 28.07.2018
- * @ Official site : http://DeZender.Net
- *
- */
- class operation
- {
- public $error;
- public function check_operation()
- {
- global $request_data;
- setcookie('OP_LOGOUT', 0, VIS_SC_EXP, VIS_SC_PATH, VIS_SC_DOMAIN, VIS_SC_SECURE, VIS_SC_HTTPONLY);
- $operation = array_merge($request_data);
- $replaceUrls = ['categories' => 'view_selfhelp_group', 'submit-ticket' => 'new_ticket_step_one', 'my-products' => 'client_products_list', 'invoices' => 'get_invoices', 'view-profile' => 'view_client_summary', 'view-organization' => 'update_organization', 'contacts' => 'get_subaccounts', 'update-profile' => 'view_profile', 'view-article' => 'view_article', 'additional-info' => 'additional_info', 'ticket-details' => 'ticket_details', 'change-password' => 'change_password', 'view-ticket' => 'view_ticket', 'ticket-reply' => 'ticket_reply', 'ticket-feedback' => 'ticket_feedback', 'edit-invoice' => 'edit_invoice', 'add-contact' => 'add_contact', 'products-list' => 'products_list', 'order-product' => 'order_product', 'invoice-pdf' => 'invoice_pdf', 'rate-ticket' => 'rate_ticket', 'get-department' => 'new_ticket_step_one', 'set-rating' => 'set_rating', 'contact-details' => 'contact_details', 'forgot-password' => 'forgot_password', 'product-details' => 'checkout_product', 'delete-client' => 'delete_client', 'new-article' => 'new_article', 'forums' => 'view_forums_group', 'new-topic' => 'add_forum_topic', 'topic-list' => 'get_topic_list', 'topic-details' => 'topic_details', 'topic-like' => 'forum_topic_like', 'topic-unlike' => 'forum_topic_unlike', 'forum-signature' => 'forum_signature', 'forum-list' => 'forum_list', 'drive' => 'token_details'];
- if (isset($operation['code']) && ($operation['code'] != '') && ($operation['state'] == 1) && (VIS_LOCATION_AREA == 2)) {
- $operation['vis_operation'] = 'home';
- $operation['vis_test'] = 1;
- $server_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- $url = explode('?', $server_url);
- $_SESSION['code'] = $operation['code'];
- header('Location: ' . $url[0] . '#/home/get_gcal_event_list/Events');
- }
- if (isset($operation['code']) && ($operation['code'] != '') && ($operation['state'] == 2) && (VIS_LOCATION_AREA == 2)) {
- $operation['vis_operation'] = 'selfhelp';
- $operation['vis_test'] = 1;
- $server_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- $url = explode('?', $server_url);
- $_SESSION['code'] = $operation['code'];
- header('Location: ' . $url[0] . '#/selfhelp/get_file_list/Drive/' . $operation['state']);
- }
- if (isset($operation['code']) && ($operation['code'] != '') && (VIS_LOCATION_AREA == 2) && ($operation['state'] == 6)) {
- $operation['vis_operation'] = 'home';
- $operation['vis_code_dropbox'] = $operation['code'];
- $server_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- $url = explode('?', $server_url);
- $_SESSION['code_dropbox'] = $operation['code'];
- header('Location:' . $url[0] . '#/solutions/view_drive/Drive');
- }
- if (isset($operation['code']) && ($operation['code'] != '') && (VIS_LOCATION_AREA == 2) && ($operation['state'] == 7)) {
- $operation['vis_operation'] = 'home';
- $operation['vis_code_box'] = $operation['code'];
- $server_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
- $url = explode('?', $server_url);
- $_SESSION['code_box'] = $operation['code'];
- header('Location:' . $url[0] . '#/solutions/view_drive/Drive');
- }
- $firstpage = 0;
- if ((!isset($operation['vis_module']) || ($operation['vis_module'] == '')) && (!isset($operation['vis_operation']) || ($operation['vis_operation'] == ''))) {
- $qry_str = explode('/', $_SERVER['QUERY_STRING']);
- if (!isset($qry_str)) {
- if ($qry_str[1] != 'language') {
- $request_data['vis_module'] = $operation['vis_module'] = $qry_str[1];
- $request_data['vis_operation'] = $operation['vis_operation'] = $qry_str[2];
- if (array_key_exists($request_data['vis_operation'], $replaceUrls)) {
- $request_data['vis_operation'] = $operation['vis_operation'] = $replaceUrls[$operation['vis_operation']];
- }
- if (isset($request_data['vis_operation']) && ($request_data['vis_operation'] == 'token_details')) {
- $operation['vis_action_data'] = $request_data['vis_action_data'] = $qry_str;
- }
- }
- }
- foreach ($operation as $key => $val) {
- if ((strpos($key, '/language') !== false) && !strpos($key, '/view-article')) {
- $temp = explode('/', $key);
- $request_data['vis_language'] = $temp[3];
- }
- else if ((strpos($key, '/') !== false) && !strpos($key, '/session')) {
- $operation['vis_action'] = $request_data['vis_action'] = '#' . $key;
- $temp = explode('/', $operation['vis_action']);
- if (strtolower($temp[1]) == 'survey') {
- $_SESSION['vis_module'] = $request_data['vis_module'] = $operation['vis_module'] = 'client';
- $_SESSION['vis_operation'] = $request_data['vis_operation'] = $operation['vis_operation'] = 'get_survey';
- $_SESSION['survey_id'] = $request_data['survey_id'] = $operation['survey_id'] = $temp[4];
- $request_data['vis_salt'] = $operation['vis_salt'] = $temp[3];
- $qry_str = explode('/', $_SERVER['QUERY_STRING']);
- $request_data['vis_email'] = $operation['vis_email'] = ($qry_str[2] != $temp[2] ? $qry_str[2] : $temp[2]);
- }
- else if (strtolower($temp[1]) == 'feedback') {
- $_SESSION['vis_module'] = $request_data['vis_module'] = $operation['vis_module'] = 'ticket';
- $_SESSION['vis_operation'] = $request_data['vis_operation'] = $operation['vis_operation'] = 'get_feedback';
- $_SESSION['ticket_id'] = $request_data['ticket_id'] = $operation['ticket_id'] = $temp[4];
- $request_data['vis_salt'] = $operation['vis_salt'] = $temp[3];
- $qry_str = explode('/', $_SERVER['QUERY_STRING']);
- $request_data['vis_email'] = $operation['vis_email'] = ($qry_str[2] != $temp[2] ? $qry_str[2] : $temp[2]);
- }
- else if (strtolower($temp[1]) == 'whmcs') {
- $qry_str = explode('/', $_SERVER['QUERY_STRING']);
- $_SESSION['whmcs_url']['vis_whmcs_client'] = $request_data['vis_whmcs_client'] = $operation['vis_whmcs_client'] = $temp[1];
- $_SESSION['whmcs_url']['vis_module'] = $request_data['vis_module'] = $operation['vis_module'] = $temp[2];
- $_SESSION['whmcs_url']['vis_operation'] = $request_data['vis_operation'] = $operation['vis_operation'] = $temp[3];
- if ($temp[2] == 'selfhelp') {
- $operation['vis_action'] = '/' . $temp[2] . '/' . $temp[3] . '/' . $temp[4] . '/' . $temp[5];
- if (($temp[6] != '') && ($temp[7] != '')) {
- $_SESSION['whmcs_url']['vis_salt'] = $request_data['vis_salt'] = $operation['vis_salt'] = $temp[7];
- $_SESSION['whmcs_url']['vis_email'] = $request_data['vis_email'] = $operation['vis_email'] = ($qry_str[6] != $temp[6] ? $qry_str[6] : $temp[6]);
- $_SESSION['whmcs_url']['vis_action'] = $operation['vis_action'];
- }
- else {
- header('location:index.php?' . $operation['vis_action']);
- ..................................................................................................
- ..................................................
- ................................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement