Devam Ediyor

Visitor Logging Script

Scope of Work:

1. Modify the following script or create an new PHP and ASP script which allows Service Buyer to place script into individual web pages to obtain email alerts and log each visit when someone visits same page.

2. Use sessions or some other method to check if the same IP visited in the past, and if so, suppress sending an email alert but capturing

each subsequent visit in the log file:

$mailHeader = "From: System Administrator <email @ domain . com> n"

. "Reply-To: email @ domain . comn";

$MailToAddress = " email @ domain . com n";

$mailHeader .= "Cc: $name <>,<>,<> rn";

$mailHeader .= "Bcc: $name <>,<>,<>,<> rn";

$MailSubject = " ";

$link="http://www . domain / visitorlog.log";

$tabfilename="visitorlog.log";

session_start();

if($_SESSION["logged"] != "yes")

{

$tmst=time();

$agent = $_SERVER['HTTP_USER_AGENT'];

$uri = $_SERVER['REQUEST_URI'];

$ip = $_SERVER['REMOTE_ADDR'];

$ref = $_SERVER['HTTP_REFERER'];

if(!file_exists($tabfilename))

{

$file = fopen($tabfilename, "w");

fclose($file);

}

$logLine = "IP: $ip || User Agent: $agent || Page: $uri || Referrer: $refn";

$file = fopen($tabfilename, "a");

fputs($file,$ip."t".date("H:i:s - m.d.Y -- ", $tmst). md5(rand."".time()). "rn");

fclose($file);

$_SESSION["logged"] = "yes";

$mailMessage = "IP Address: ".$ip." n

Query Additional IP Info: [url removed, login to view];.$ip." n

Time/Date Stamp: ".date("H:i:s - m.d.Y", $tmst)."n

Logfile: $link n

Unique Message Identifier: ".md5(rand."".time())." rnrn";

@mail($MailToAddress, $MailSubject , $mailMessage, $mailHeader);

?>

Beceriler: ASP, PHP

Daha fazlasını görün: visitor logging script, asp visitor log, visitor logging, php visitor log file, visitor log script, script ip address, i.t. administrator, ip address script, arin, $5 script, visitor logging system, php script visitor referrer email, asp log visitors, asp visitor info script aspnet, php visitor plot script, php visitor domain, asp logging visitor details, asp visitors log, visitor logging script php, asp logging script, buyer agent, WS, user agent, rn, md5

İşveren Hakkında:
( 43 değerlendirme ) Huntley, United States

Proje NO: #202548

Seçilen:

exoexo

Hi, can we discuss your project in PMB?

1 gün içinde 50$ USD
(66 Değerlendirme)
5.9

2 freelancer bu iş için ortalamada 63$ teklif veriyor

developer13

Please see your PMB - Thanks!

in 3 gün içinde75$ USD
(8 Değerlendirme)
5.1