Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 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 get_base_url()
  15. {
  16. if (!empty($_SERVER['HTTPS'])) {
  17. return 'https://' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
  18. }
  19. else {
  20. return 'http://' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
  21. }
  22. }
  23.  
  24. function uniq_key()
  25. {
  26. return md5(get_base_url());
  27. }
  28.  
  29. function clr_url()
  30. {
  31. return hash('sha1', md5(base64_decode(rtrim(str_replace(['http://', 'https://', 'www.'], ['', '', ''], get_base_url()), '/'))) . getSiteAdi());
  32. }
  33.  
  34. function license_check()
  35. {
  36. global $baglan;
  37. global $db;
  38. if (!isset($baglan) && !isset($db)) {
  39. exit('Bağlan bulunamadı!');
  40. }
  41.  
  42. $lk = clr_url();
  43.  
  44. if (isset($baglan)) {
  45. $license = mysql_query('SELECT * FROM lisans WHERE kod = \'' . $lk . '\'');
  46.  
  47. if (mysql_num_rows($license) == 0) {
  48. require_once 'lisans.php';
  49. exit('');
  50. }
  51. }
  52. else {
  53. $xlm = $db->prepare('SELECT * FROM lisans WHERE kod = ? ');
  54. $xlm->execute([$lk]);
  55. $xml = $xlm->fetch(PDO::FETCH_ASSOC);
  56.  
  57. if (!$xml) {
  58. require_once 'lisans.php';
  59. exit('');
  60. }
  61. }
  62.  
  63. return true;
  64. }
  65.  
  66. function remove_all()
  67. {
  68. global $baglan;
  69. global $db;
  70.  
  71. if (isset($baglan)) {
  72. mysql_query('DELETE FROM lisans WHERE 1');
  73. mysql_query('DROP TABLE IF EXIST lisans');
  74. }
  75.  
  76. if (isset($db)) {
  77. $db->query('DELETE FROM lisans WHERE 1')->fetch();
  78. $db->query('DROP TABLE IF EXIST lisans')->fetch();
  79. }
  80.  
  81. return license_check();
  82. }
  83.  
  84. function aktif($urlsi)
  85. {
  86. $mesaj = '';
  87. $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  88.  
  89. if (strpos($url, $urlsi) !== false) {
  90. $mesaj = 'active';
  91. }
  92.  
  93. return $mesaj;
  94. }
  95.  
  96. function AktifLink($urlsi)
  97. {
  98. $aktif = '';
  99.  
  100. if (strstr($_SERVER[HTTP_HOST] . '/' . $_SERVER[REQUEST_URI], $urlsi)) {
  101. $aktif = 'act-link';
  102. }
  103.  
  104. return $aktif;
  105. }
  106.  
  107. function kdv_fiyat($urun_fiyat, $urun_kdv)
  108. {
  109. $toplam = $urun_fiyat * ($urun_kdv / 100);
  110. return $toplam;
  111. ......................................................................
  112. .....................................
  113. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement