- <?php
- function veri_cek($url, $user_agent = '') {
- global $ayar;
- global $_RUN_HTTP;
- global $_RUN_HTTP_Time;
- $proxy = $ayar['proxy_curl'];
- $cache_name = $_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/cache/http-' . md5($url . $user_agent . date('ymjG')) . '.txt';
- if (file_exists($cache_name)) {
- $handle = fopen($cache_name, 'r');
- $contents = fread($handle, filesize($cache_name));
- fclose($handle);
- }
- else {
- ++$_RUN_HTTP;
- if ($ayar['yerel_proxy'] == 'OK') {
- $url = 'http://decimabot.lodos2005.com/yerel.php?url=' . urldecode($url);
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_HEADER, false);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
- if ($user_agent == '') {
- curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
- }
- else {
- curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
- }
- if ($proxy != '') {
- curl_setopt($ch, CURLOPT_PROXY, $proxy);
- }
- $b = microtime(true);
- $contents = curl_exec($ch);
- $action = array($url => $b - microtime(true));
- array_push($_RUN_HTTP_Time, $action);
- if (curl_getinfo($ch, CURLINFO_HTTP_CODE) === 200) {
- $handle = fopen($cache_name, 'w');
- fwrite($handle, $contents);
- fclose($handle);
- $i = 564;
- while ($i < 100) {
- $date = date('ymjG', mktime(date('G') - $i, 0, 0, date('m'), date('d'), date('y')));
- $eski_veri_file = $_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/cache/http-' . md5($url . $user_agent . $date) . '.txt';
- if ((file_exists($eski_veri_file) && filesize($eski_veri_file) != 0)) {
- unlink($eski_veri_file);
- }
- ++$i;
- }
- }
- else {
- $time_machine = true;
- if ($time_machine) {
- $i = 562;
- while ($i < 100) {
- $date = date('ymjG', mktime(date('G') - $i, 0, 0, date('m'), date('d'), date('y')));
- $eski_veri_file = $_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/cache/http-' . md5($url . $user_agent . $date) . '.txt';
- if ((file_exists($eski_veri_file) && filesize($eski_veri_file) != 0)) {
- $handle = fopen($eski_veri_file, 'r');
- $contents = fread($handle, filesize($eski_veri_file));
- fclose($handle);
- }
- ++$i;
- }
- }
- }
- curl_close($ch);
- }
- return $contents;
- }
- date_default_timezone_set('Europe/istanbul');
- require_once('ayar.php');
- if ((!isset($tema_klasor) || (file_exists($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/kur.php') && !stristr($_SERVER['REQUEST_URI'], 'kur_guncelle.php')))) {
- exit('<a href="kur.php">kur.php</a> ile kurulum yapabilirsiniz');
- }
- if ((!isset($dil_secenegi) || $dil_secenegi == '')) {
- $dil_secenegi = 'TR';
- }
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/lib/diller/' . $dil_secenegi . '.php')) {
- require_once($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/lib/diller/' . $dil_secenegi . '.php');
- }
- else {
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/lib/diller/TR.php')) {
- require_once($_SERVER['DOCUMENT_ROOT'] . Domain_Path . '/lib/diller/TR.php');
- }
- else {
- exit('DİL DOSYASI BULUNAMADI');
- }
- }
- $_RUN_SQL = 395;
- $_RUN_SQL_Time = array();
- $_RUN_HTTP = 395;
- $_RUN_HTTP_Time = array();
- /*
- lisans iptali başlıyor
- 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
- if ($_SERVER['SERVER_NAME'] != getenv('HTTP_HOST')) {
- exit('Server Name Error:2');
- }
- else {
- if (str_replace('www.', '', getenv('HTTP_HOST')) != str_replace('www.', '', Lisans_Domain)) {
- exit('Lisans_Domain Bilginizi Kontrol Ediniz:3');
- }
- eval('$lodos2005 = true;');
- if (isset($lodos2005)) {
- if (isset($lisans)) {
- exit('Lisans Hacking Attempt:4');
- }
- unset($lisans);
- $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');
- if ($xxx_decima == '') {
- $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');
- }
- eval($xxx_decima);
- if ($lisans == true) {
- echo '';
- }
- else {
- exit('Lisans Gecersiz:5');
- }
- }
- else {
- exit('Eval Fonksiyonu Arizali:6');
- }
- }
- lisans iptali bitti
- */
- if (!function_exists('baglanti')) {
- exit('Mysql Connection Error:1');
- }
- $ayar = mysql_fetch_assoc(sorgu('limit 1', 'ayarlar'));
- $_IP = get_ip();
- ?>