Jump to content

Jeffi80

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Finland

About Jeffi80

Jeffi80's Achievements

0

Reputation

  1. This is only for testing , thats all ... I will remove IP logging when I get all work. Regards Jeffi80
  2. Hello guys Can someone please tell me how can I get browser ditails and operating system ditails in my signature the same way I can see them from danasoft signature ? Finally I got this code work , but I need to get those ditails into my signature .... siggy.png <?php Header ('Content-type: image/jpeg'); Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); Header('Expires: Thu, 19 Nov 1981 08:52:00 GMT'); Header('Pragma: no-cache'); $expire= 60; $logfile= "flount.log"; $ip= getenv('REMOTE_ADDR'); $visits=0; $badhit= false; $now= time(); $ips = array(array()); if (file_exists($logfile)){ if ($loggedips=file($logfile)){ $visits=trim($loggedips[0]); for ($i=1; $i< count($loggedips); $i++){ $loggedips[$i]=trim($loggedips[$i]); $ips[$i] = explode('||', $loggedips[$i]); if (($ips[$i][0]==$ip) && ($now-$ips[$i][1]< $expire)) $badhit= true; } if ($badhit) $rid= true; else{ $visits++; $fp= fopen($logfile, 'w'); fputs($fp,"$visits\n"); for ($i=1; $i< count($loggedips); $i++){ if ($now-$ips[$i][1] < $expire) fputs($fp, $ips[$i][0]."||".$ips[$i][1]."\n"); } fputs($fp, "$ip||$now\n"); fclose($fp); $rid= true; } } } // $textfile ="quotes.txt"; // change to the filename/path of your file with quotes. // $quotes = file("$textfile"); // $quote = rand(0, sizeof($quotes)-1); // $getquote = wordwrap($quotes[$quote], 65, "\n", 1); $ipad = getenv("REMOTE_ADDR"); $dns = strtolower(@gethostbyaddr(getenv("REMOTE_ADDR"))); $today = date("m-d-Y"); // create the image $image = imagecreatefromgif("about-bg.gif"); // set the colours $cool = imagecolorallocate($image, 87, 87, 87); $black = imagecolorallocate($image, 0, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); $red = imagecolorallocate($image, 255, 0, 0); $grey = imagecolorallocate($image, 204, 204, 204); $green = imagecolorallocate($image, 206, 129, 18); $blue = imagecolorallocate($image, 0, 0, 255); // counter $info = "$today - You are $dns ($ipad)"; $counter = "$visits test"; // define quote $quote = $getquote; // line style line $line = "__________________________________________________________________"; // set the font and print text $font = 'verdana.ttf'; ImageTTFText ($image, 10, 0, 45, 35, $white, $font, $quote); ImageTTFText ($image, 8, 0, 27, 101, $white, $font, $info); ImageTTFText ($image, 8, 0, 27, 105, $white, $font, $line); ImageTTFText ($image, 8, 0, 27, 118, $white, $font, $counter); // output and destroy imagepng($image); imagedestroy($image); ?> Thanks ... this is a greate place Regards Jeffi80
×
×
  • Create New...