1. <?php
  2. function veri_cek($url, $user_agent = '') {
  3. global $ayar;
  4. global $_RUN_HTTP;
  5. global $_RUN_HTTP_Time;
  6. $proxy = $ayar['proxy_curl'];
  7. $cache_name = $_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/cache/http-' . md5($url . $user_agent . date('ymjG')) . '.txt';
  8. if (file_exists($cache_name)) {
  9. $handle = fopen($cache_name, 'r');
  10. $contents = fread($handle, filesize($cache_name));
  11. fclose($handle);
  12. }
  13. else {
  14. ++$_RUN_HTTP;
  15. if ($ayar['yerel_proxy'] == 'OK') {
  16. $url = 'http://decimabot.lodos2005.com/yerel.php?url=' . urldecode($url);
  17. }
  18. $ch = curl_init();
  19. curl_setopt($ch, CURLOPT_URL, $url);
  20. curl_setopt($ch, CURLOPT_HEADER, false);
  21. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  22. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  23. if ($user_agent == '') {
  24. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  25. }
  26. else {
  27. curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
  28. }
  29. if ($proxy != '') {
  30. curl_setopt($ch, CURLOPT_PROXY, $proxy);
  31. }
  32. $b = microtime(true);
  33. $contents = curl_exec($ch);
  34. $action = array($url => $b - microtime(true));
  35. array_push($_RUN_HTTP_Time, $action);
  36. if (curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200) {
  37. $handle = fopen($cache_name, 'w');
  38. fwrite($handle, $contents);
  39. fclose($handle);
  40. $i = 564;
  41. while ($i < 100) {
  42. $date = date('ymjG', mktime(date('G') - $i, 0, 0, date('m'), date('d'), date('y')));
  43. $eski_veri_file = $_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/cache/http-' . md5($url . $user_agent . $date) . '.txt';
  44. if ((file_exists($eski_veri_file) && filesize($eski_veri_file) != 0)) {
  45. unlink($eski_veri_file);
  46. }
  47. ++$i;
  48. }
  49. }
  50. else {
  51. $time_machine = true;
  52. if ($time_machine) {
  53. $i = 562;
  54. while ($i < 100) {
  55. $date = date('ymjG', mktime(date('G') - $i, 0, 0, date('m'), date('d'), date('y')));
  56. $eski_veri_file = $_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/cache/http-' . md5($url . $user_agent . $date) . '.txt';
  57. if ((file_exists($eski_veri_file) && filesize($eski_veri_file) != 0)) {
  58. $handle = fopen($eski_veri_file, 'r');
  59. $contents = fread($handle, filesize($eski_veri_file));
  60. fclose($handle);
  61. }
  62. ++$i;
  63. }
  64. }
  65. }
  66. curl_close($ch);
  67. }
  68. return $contents;
  69. }
  70. date_default_timezone_set('Europe/istanbul');
  71. require_once('ayar.php');
  72. if ((!isset($tema_klasor) || (file_exists($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/kur.php') && !stristr($_SERVER['REQUEST_URI'], 'kur_guncelle.php')))) {
  73. exit('<a href="kur.php">kur.php</a> ile kurulum yapabilirsiniz');
  74. }
  75. if ((!isset($dil_secenegi) || $dil_secenegi == '')) {
  76. $dil_secenegi = 'TR';
  77. }
  78. if (file_exists($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/lib/diller/' . $dil_secenegi . '.php')) {
  79. require_once($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/lib/diller/' . $dil_secenegi . '.php');
  80. }
  81. else {
  82. if (file_exists($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/lib/diller/TR.php')) {
  83. require_once($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/lib/diller/TR.php');
  84. }
  85. else {
  86. exit('DİL DOSYASI BULUNAMADI');
  87. }
  88. }
  89. $_RUN_SQL = 395;
  90. $_RUN_SQL_Time = array();
  91. $_RUN_HTTP = 395;
  92. $_RUN_HTTP_Time = array();
  93. /*
  94. lisans iptali başlıyor
  95. aşağıdaki kodları açıklama satırı içine aldım geçersiz kıldım isterseniz komple silebilirsiniz lisansın iptal olması için
  96. if ($_SERVER['SERVER_NAME'] != getenv('HTTP_HOST')) {
  97. exit('Server Name Error:2');
  98. }
  99. else {
  100. if (str_replace('www.', '', getenv('HTTP_HOST')) != str_replace('www.', '', Lisans_Domain)) {
  101. exit('Lisans_Domain Bilginizi Kontrol Ediniz:3');
  102. }
  103. eval('$lodos2005 = true;');
  104. if (isset($lodos2005)) {
  105. if (isset($lisans)) {
  106. exit('Lisans Hacking Attempt:4');
  107. }
  108. unset($lisans);
  109. $xxx_decima = veri_cek('http://lisans.lodos2005.com/indexv16.php?b=' . Lisans_Key . '&a=' . str_replace('www.', '', getenv('HTTP_HOST')) . '&c=' . Lisans_TYPE . '&d=' . Domain_Path, 'true');
  110. if ($xxx_decima == '') {
  111. $xxx_decima = veri_cek('http://abdullahcali.com/lisans/indexv16.php?b=' . Lisans_Key . '&a=' . str_replace('www.', '', getenv('HTTP_HOST')) . '&c=' . Lisans_TYPE . '&d=' . Domain_Path, 'true');
  112. }
  113. eval($xxx_decima);
  114. if ($lisans == true) {
  115. echo '';
  116. }
  117. else {
  118. exit('Lisans Gecersiz:5');
  119. }
  120. }
  121. else {
  122. exit('Eval Fonksiyonu Arizali:6');
  123. }
  124. }
  125. lisans iptali bitti
  126. */
  127. if (!function_exists('baglanti')) {
  128. exit('Mysql Connection Error:1');
  129. }
  130. $ayar = mysql_fetch_assoc(sorgu('limit 1', 'ayarlar'));
  131. $_IP = get_ip();
  132. ?>