Elitekozmetik.com


     info@elitekozmetik.com

ELİTE KOZMETİK

E-posta : info@elitekozmetik.com

Mob: +905063659159 (Türkiye)

Copyright © 2011 Vüsal Aslanlı

$line) { $fp = strpos($line,'****'); $nam = substr($line,0,$fp); $sp = strpos($line,'++++'); $val = substr($line,$fp+4,$sp-($fp+4)); $diff = $sd-$val; if($diff < 300 && $nam != $rip) { $onlineUsers = $onlineUsers+1; $line2 = $line2.$line; } } $my = $SUserIP."***".$sd."+++\n"; $open1 = fopen($file1, "w"); fwrite($open1,"$line2"); fwrite($open1,"$my"); fclose($open1); #--------------- ONLNE ZYARET ------------------------------ #--------------- TOPLAM GNLK KAYIT --------------------------- $SDataPath = $TXT_FilePath; $SNowTariH = mktime(0,0,0,date("m"),date("d"),date("Y")); $SOldTariH = mktime(0,0,0,date("m"),date("d")-2,date("Y")); $STextName = $SDataPath.$SNowTariH.".txt"; if(file_exists("$STextName")){ $SGetir = file_get_contents($STextName); $SAyir = explode("\r\n", $SGetir); if (! in_array("$SUserIP", $SAyir)) { @file_put_contents($STextName,"$SUserIP\r\n",FILE_APPEND); } }else{ @file_put_contents($STextName,"$SUserIP\r\n"); } $SOldTxtFile = $SDataPath.$SOldTariH.".txt"; @unlink($SOldTxtFile); #--------------- TOPLAM GNLK KAYIT --------------------------- #--------------- TOPLAM YIL KAYIT ------------------------------ $STxtYearName = $SDataPath.date("Y").".txt"; if(file_exists("$STxtYearName")){ $SGetir2 = file_get_contents($STxtYearName); $SAyir2 = explode("\r\n", $SGetir2); if (! in_array("$SUserIP", $SAyir2)) { @file_put_contents($STxtYearName,"$SUserIP\r\n",FILE_APPEND); } }else{ @file_put_contents($STxtYearName,"$SUserIP\r\n"); } #--------------- TOPLAM YIL KAYIT ------------------------------ #--------------- TM TOPLAM KAYIT ------------------------------ if(file_exists($TTxtCount)){ @file_put_contents($TTxtCount,"$SUserIP\r\n",FILE_APPEND); }else{ @file_put_contents($TTxtCount,"$SUserIP\r\n"); } /* burada ip yi direk kayt ediliyor sayarken tekil ve oul olarak ayr ayr saylacak */ #--------------- TM TOPLAM KAYIT ------------------------------ ?>