Advertisement
Guest User

Untitled

a guest
Oct 29th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.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 vy_notice($msg, $type = 'success')
  15. {
  16. return '<div class="notice notice-' . $type . '"><p>' . $msg . '</p></div>';
  17. }
  18.  
  19. function VYPLUGINS()
  20. {
  21. return plugin_dir_path(__DIR__);
  22. }
  23.  
  24. function get_domain($url)
  25. {
  26. $pieces = parse_url($url);
  27. $domain = (isset($pieces['host']) ? $pieces['host'] : $pieces['path']);
  28.  
  29. if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\\-]{1,63}\\.[a-z\\.]{2,6})$/i', $domain, $regs)) {
  30. return $regs['domain'];
  31. }
  32.  
  33. return false;
  34. }
  35.  
  36. function HasInstalled()
  37. {
  38. global $wpdb;
  39. $tableName0055 = $wpdb->prefix . 'options';
  40.  
  41. if (!isset($wpdb->get_results('SELECT * FROM ' . $tableName0055 . ' WHERE option_name = \'wpvy_lisans\' LIMIT 1')[0]->option_name)) {
  42. return false;
  43. }
  44.  
  45. return true;
  46. }
  47.  
  48. function InstallScript()
  49. {
  50. global $wpdb;
  51. $tableName0055 = $wpdb->prefix . 'options';
  52. $sutunlar = ['("wpvy_lisans", "", "yes")', '("wpvy_aktif", "0", "yes")', '("wpvy_son_kontrol", "", "yes")', '("wpvy_yazi", "", "yes")', '("wpvy_yazi_eklensin", "1", "yes")', '("wpvy_yazi_arkaplan", "rgba(255, 255, 255, 0.5)", "yes")', '("wpvy_yazi_renk", "#000000", "yes")'];
  53.  
  54. foreach ($sutunlar as $sutun) {
  55. $wpdb->get_results('INSERT INTO ' . $tableName0055 . ' (option_name, option_value, autoload) VALUES ' . $sutun);
  56. }
  57. }
  58.  
  59. function VYGet($item1, $justOne = true)
  60. {
  61. global $wpdb;
  62. $tableName0055 = $wpdb->prefix . 'options';
  63.  
  64. if ($justOne) {
  65. return $wpdb->get_results('SELECT * FROM ' . $tableName0055 . ' WHERE option_name = \'' . $item1 . '\' LIMIT 1')[0]->option_value;
  66. }
  67. else {
  68. return $wpdb->get_results('SELECT * FROM ' . $tableName0055 . ' WHERE autoload = \'' . $item1 . '\'');
  69. }
  70. }
  71.  
  72. function VYUpdate($item1, $item2, $item3, $id)
  73. {
  74. global $wpdb;
  75. $tableName0055 = $wpdb->prefix . 'options';
  76.  
  77. if ($id == 'none') {
  78. $guncelle = $wpdb->get_results('UPDATE ' . $tableName0055 . ' SET option_value = \'' . $item2 . '\', autoload = \'' . $item3 . '\' WHERE option_name = \'' . $item1 . '\'');
  79. }
  80. else {
  81. $guncelle = $wpdb->get_results('UPDATE ' . $tableName0055 . ' SET option_name = \'' . $item1 . '\', option_value = \'' . $item1 . '\', option_value = \'' . $item2 . '\', autoload = \'' . $item3 . '\' WHERE option_name = \'' . $idsi . '\'');
  82. }
  83.  
  84. if ($guncelle) {
  85. return true;
  86. }
  87.  
  88. return false;
  89. }
  90.  
  91. function v_lisans_sorgula($anahtar = NULL)
  92. {
  93. $domain = $_SERVER['HTTP_HOST'];
  94. $anahtar = ($anahtar != NULL ? $anahtar : vyget('wpvy_lisans'));
  95. $client = new GuzzleHttp\Client(['http_errors' => false]);
  96. $alpha = 'https://';
  97. $mido = 'vlkn.dev/lisans.php';
  98. $response = $client->get($alpha . $mido . '?lisans=' . urlencode($anahtar) . '&domain=' . urlencode($domain), [
  99. 'headers' => ['WPVY' => rand(1, 17) * 7]
  100. ]);
  101. $res = json_decode($response->getBody()->getContents(), 1);
  102.  
  103. if ($res['code'] == 707) {
  104. vyupdate('wpvy_aktif', '1', 'yes', 'none');
  105. }
  106.  
  107. return $res;
  108. }
  109.  
  110. function v_lisans()
  111. {
  112. if (vyget('wpvy_lisans')) {
  113. if (vyget('wpvy_aktif') == 1) {
  114. ....................................................................................
  115. ..............................................
  116. ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement