![]() |
|
|||||||
| Php, Asp, Flash, Java, Html Php, asp, flash, java, html ve tüm web azılım dilleri hakkında bilgi paylaşımı yapabileceğiniz bölüm. |
![]() |
|
|
Seçenekler |
|
|
#1 |
|
Normal Üye
![]() |
PHP Kodu:
<html> <head> <title>Daily Counter</title> <script ************************ <!-- function closeWin() { self.close(); } function openWindow() { window.open('visitors.php','Visitors','scrollbars= yes,width=420,height=210'); } //--> </script> <style type="text/css"> <!-- .links { color: #000000} --> </style> </head> <body bgcolor="#FFFFFF"> <center> <br> <br> <table border="0" cellspacing="1" cellpadding="2" align="center"> <tr> <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="1"> <!--Cut here --> <?php // Daily Counter 1.1 // Copyright (c)2000 Chi Kien Uong // URL: [ÜYE OLMADAN LİNKLERİ GÖREMEZSİNİZ. BURAYA TIKLAYARAK BEDAVA ÜYE OLUN...] // - chmod this document to 755! - $fpt = "daily.txt"; // path to counter log file - chmod it to 666 // optional configuration settings $lock_ip =0; // IP locking and logging 1=yes 0=no $ip_lock_timeout =30; // in minutes $fpt_ip = "ip.txt"; // IP log file - chmod it to 666 // end configuration function checkIP($rem_addr) { global $fpt_ip,$ip_lock_timeout; $ip_array = @file($fpt_ip); $reload_dat = fopen($fpt_ip,"w"); $this_time = time(); for ($i=0; $i<sizeof($ip_array); $i++) { list($time_stamp,$ip_addr,$hostname) = split("\|",$ip_array[$i]); if ($this_time < ($time_stamp+60*$ip_lock_timeout)) { if ($ip_addr == $rem_addr) { $found=1; } else { fwrite($reload_dat,"$time_stamp|$ip_addr|$hostname "); } } } $host = gethostbyaddr($rem_addr); if (!$host) { $host = $rem_addr; } fwrite($reload_dat,"$this_time|$rem_addr|$host\n") ; fclose($reload_dat); return ($found==1) ? 1 : 0; } $this_day=(date("D, j F Y")); if (!file_exists($fpt)) { $count_dat = fopen($fpt,"w+"); $count = 1; fwrite($count_dat,$count); fclose($count_dat); } else { $row = file($fpt); $test = chop($row[0]); $count = $row[1]; if ($this_day == $test) { if ($lock_ip==0 || ($lock_ip==1 && checkIP($REMOTE_ADDR)==0)) { $count++; } } else { $count = 1; } $count_dat = fopen($fpt,"w+"); fwrite($count_dat,"$this_day\n"); fwrite($count_dat,$count); fclose($count_dat); } echo "$this_day<br><b><a href=\"javascriptpenWindow()\" class=\"links\">Bugün</a> <font color=#CC0066>$count</font> ziyaretçi</b>"; ?> <!--Cut here --> </font> </td> </tr> </table> </center> </body> </html> ![]() AŞK BİTER PAYLAŞIM BİTMEZ... AkdenizForum Toolbar Sitemizi Daha İyi Kullanmak İstiyorsanız Daha Kolaylıkla Sizde İndirin [ÜYE OLMADAN LİNKLERİ GÖREMEZSİNİZ. BURAYA TIKLAYARAK BEDAVA ÜYE OLUN...] |
|
|
|
|
|
#2 |
|
Lo®d Administ®ator
![]() Üyelik Tarihi: Jun 2006
Nerden: Kahramanmaraş
Yaş: 25
Mesajlar: 3.379
Üye No: 3
Tecrübe Puanı: 100
Rep Gücü : 2000206
Rep Derecesi :
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Paylaşımın için tşkler kodlarda bir yanlışlık görmedim yinede denemek lazım
Kendimi bildiğimden beri doğru olduğuna inandığım şeyler için kendim dahil herkesle uğraştım; uğraşmaya devam ediyorum ve yaşadığım sürece de uğraşmaya devam edeceğim... Saygı Görmek İstiyorsanız Kazanın.. ––––•(-•(Kimine Göre Forum, Bize Göre Aile... AKdenizforum..)•-)•––––
|
|
|
|
|
|
#3 |
|
Normal Üye
![]() Üyelik Tarihi: Jun 2007
Nerden: İZMİR
Mesajlar: 2.194
Üye No: 14268
Tecrübe Puanı: 31
Rep Gücü : 188
Rep Derecesi :
![]() ![]() |
teşekkürler
|
|
|
|
|
|
#4 |
|
Özel Üye
![]() ![]() Üyelik Tarihi: Jul 2007
Nerden: K.MARAŞ
Mesajlar: 4.126
Üye No: 21833
Tecrübe Puanı: 31
Rep Gücü : 199
Rep Derecesi :
![]() ![]() |
![]() CH€MİST ------------------------------------------------------------------------------------------------------- [ÜYE OLMADAN LİNKLERİ GÖREMEZSİNİZ. BURAYA TIKLAYARAK BEDAVA ÜYE OLUN...] ------------------------------------------------------------------------------------------------------- €F€- AkdenizForum Toolbar Sitemizi Daha İyi Kullanmak İstiyorsanız Daha Kolaylıkla Sizde İndirin [ÜYE OLMADAN LİNKLERİ GÖREMEZSİNİZ. BURAYA TIKLAYARAK BEDAVA ÜYE OLUN...] |
|
|
|
|
|
#5 |
|
Normal Üye
![]() Üyelik Tarihi: Jun 2007
Nerden: İZMİR
Mesajlar: 2.194
Üye No: 14268
Tecrübe Puanı: 31
Rep Gücü : 188
Rep Derecesi :
![]() ![]() |
bişi değill bişi değill:D
|
|
|
|