Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.30 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.5.1
  8. * @ Author : DeZender
  9. * @ Release on : 28.07.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class operation
  15. {
  16. public $error;
  17.  
  18. public function check_operation()
  19. {
  20. global $request_data;
  21. setcookie('OP_LOGOUT', 0, VIS_SC_EXP, VIS_SC_PATH, VIS_SC_DOMAIN, VIS_SC_SECURE, VIS_SC_HTTPONLY);
  22. $operation = array_merge($request_data);
  23. $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'];
  24. if (isset($operation['code']) && ($operation['code'] != '') && ($operation['state'] == 1) && (VIS_LOCATION_AREA == 2)) {
  25. $operation['vis_operation'] = 'home';
  26. $operation['vis_test'] = 1;
  27. $server_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  28. $url = explode('?', $server_url);
  29. $_SESSION['code'] = $operation['code'];
  30. header('Location: ' . $url[0] . '#/home/get_gcal_event_list/Events');
  31. }
  32. if (isset($operation['code']) && ($operation['code'] != '') && ($operation['state'] == 2) && (VIS_LOCATION_AREA == 2)) {
  33. $operation['vis_operation'] = 'selfhelp';
  34. $operation['vis_test'] = 1;
  35. $server_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  36. $url = explode('?', $server_url);
  37. $_SESSION['code'] = $operation['code'];
  38. header('Location: ' . $url[0] . '#/selfhelp/get_file_list/Drive/' . $operation['state']);
  39. }
  40. if (isset($operation['code']) && ($operation['code'] != '') && (VIS_LOCATION_AREA == 2) && ($operation['state'] == 6)) {
  41. $operation['vis_operation'] = 'home';
  42. $operation['vis_code_dropbox'] = $operation['code'];
  43. $server_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  44. $url = explode('?', $server_url);
  45. $_SESSION['code_dropbox'] = $operation['code'];
  46. header('Location:' . $url[0] . '#/solutions/view_drive/Drive');
  47. }
  48. if (isset($operation['code']) && ($operation['code'] != '') && (VIS_LOCATION_AREA == 2) && ($operation['state'] == 7)) {
  49. $operation['vis_operation'] = 'home';
  50. $operation['vis_code_box'] = $operation['code'];
  51. $server_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  52. $url = explode('?', $server_url);
  53. $_SESSION['code_box'] = $operation['code'];
  54. header('Location:' . $url[0] . '#/solutions/view_drive/Drive');
  55. }
  56.  
  57. $firstpage = 0;
  58. if ((!isset($operation['vis_module']) || ($operation['vis_module'] == '')) && (!isset($operation['vis_operation']) || ($operation['vis_operation'] == ''))) {
  59. $qry_str = explode('/', $_SERVER['QUERY_STRING']);
  60.  
  61. if (!isset($qry_str)) {
  62. if ($qry_str[1] != 'language') {
  63. $request_data['vis_module'] = $operation['vis_module'] = $qry_str[1];
  64. $request_data['vis_operation'] = $operation['vis_operation'] = $qry_str[2];
  65.  
  66. if (array_key_exists($request_data['vis_operation'], $replaceUrls)) {
  67. $request_data['vis_operation'] = $operation['vis_operation'] = $replaceUrls[$operation['vis_operation']];
  68. }
  69. if (isset($request_data['vis_operation']) && ($request_data['vis_operation'] == 'token_details')) {
  70. $operation['vis_action_data'] = $request_data['vis_action_data'] = $qry_str;
  71. }
  72. }
  73. }
  74.  
  75. foreach ($operation as $key => $val) {
  76. if ((strpos($key, '/language') !== false) && !strpos($key, '/view-article')) {
  77. $temp = explode('/', $key);
  78. $request_data['vis_language'] = $temp[3];
  79. }
  80. else if ((strpos($key, '/') !== false) && !strpos($key, '/session')) {
  81. $operation['vis_action'] = $request_data['vis_action'] = '#' . $key;
  82. $temp = explode('/', $operation['vis_action']);
  83.  
  84. if (strtolower($temp[1]) == 'survey') {
  85. $_SESSION['vis_module'] = $request_data['vis_module'] = $operation['vis_module'] = 'client';
  86. $_SESSION['vis_operation'] = $request_data['vis_operation'] = $operation['vis_operation'] = 'get_survey';
  87. $_SESSION['survey_id'] = $request_data['survey_id'] = $operation['survey_id'] = $temp[4];
  88. $request_data['vis_salt'] = $operation['vis_salt'] = $temp[3];
  89. $qry_str = explode('/', $_SERVER['QUERY_STRING']);
  90. $request_data['vis_email'] = $operation['vis_email'] = ($qry_str[2] != $temp[2] ? $qry_str[2] : $temp[2]);
  91. }
  92. else if (strtolower($temp[1]) == 'feedback') {
  93. $_SESSION['vis_module'] = $request_data['vis_module'] = $operation['vis_module'] = 'ticket';
  94. $_SESSION['vis_operation'] = $request_data['vis_operation'] = $operation['vis_operation'] = 'get_feedback';
  95. $_SESSION['ticket_id'] = $request_data['ticket_id'] = $operation['ticket_id'] = $temp[4];
  96. $request_data['vis_salt'] = $operation['vis_salt'] = $temp[3];
  97. $qry_str = explode('/', $_SERVER['QUERY_STRING']);
  98. $request_data['vis_email'] = $operation['vis_email'] = ($qry_str[2] != $temp[2] ? $qry_str[2] : $temp[2]);
  99. }
  100. else if (strtolower($temp[1]) == 'whmcs') {
  101. $qry_str = explode('/', $_SERVER['QUERY_STRING']);
  102. $_SESSION['whmcs_url']['vis_whmcs_client'] = $request_data['vis_whmcs_client'] = $operation['vis_whmcs_client'] = $temp[1];
  103. $_SESSION['whmcs_url']['vis_module'] = $request_data['vis_module'] = $operation['vis_module'] = $temp[2];
  104. $_SESSION['whmcs_url']['vis_operation'] = $request_data['vis_operation'] = $operation['vis_operation'] = $temp[3];
  105.  
  106. if ($temp[2] == 'selfhelp') {
  107. $operation['vis_action'] = '/' . $temp[2] . '/' . $temp[3] . '/' . $temp[4] . '/' . $temp[5];
  108. if (($temp[6] != '') && ($temp[7] != '')) {
  109. $_SESSION['whmcs_url']['vis_salt'] = $request_data['vis_salt'] = $operation['vis_salt'] = $temp[7];
  110. $_SESSION['whmcs_url']['vis_email'] = $request_data['vis_email'] = $operation['vis_email'] = ($qry_str[6] != $temp[6] ? $qry_str[6] : $temp[6]);
  111. $_SESSION['whmcs_url']['vis_action'] = $operation['vis_action'];
  112. }
  113. else {
  114. header('location:index.php?' . $operation['vis_action']);
  115. ..................................................................................................
  116. ..................................................
  117. ................................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement