PHP IP Log by Image 06-24-2013, 08:10 PM
#1
I made this because BlueScreen's did not work.
For this all you will need to do is create one file, a php file with any name.
For example, mine is: whatsup.php. Then paste this code in it:
What this does is it will create a image on the PHP file looking like this:
![[Image: mdv7.png]](http://img829.imageshack.us/img829/5120/mdv7.png)
You can now use your file like this for forums:
Or for HTML
For this all you will need to do is create one file, a php file with any name.
For example, mine is: whatsup.php. Then paste this code in it:
Code:
<?php
$width = 340;
$height = 30;
$text = "Whats up Sinister.ly?";
$fontsize = 5;
$img = imagecreate($width, $height);
// Transparent background
$black = imagecolorallocate($img, 0, 0, 0);
imagecolortransparent($img, $black);
// Red text
$red = imagecolorallocate($img, 255, 0, 0);
imagestring($img, $fontsize, 0, 0, $text, $red);
header('Content-type: image/png');
imagepng($img);
imagedestroy($img);
?>
<?php
$log = 'logs.html';
$ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
$http = $_SERVER['HTTP_USER_AGENT'];
$page = $_SERVER['REQUEST_URI'];
$refer = $_SERVER['HTTP_REFERER'];
$date_time = date("l j F Y g:ia", time() - date("Z")) ;
$fp = fopen("logs.html", "a");
fputs($fp, $date_time ."<br />". "IP: " .$ip. "<br />" ."Page: ".$page."<br>".$http."<br />"."-----------------------<br />");
flock($fp, 3);
fclose($fp);
?>What this does is it will create a image on the PHP file looking like this:
![[Image: mdv7.png]](http://img829.imageshack.us/img829/5120/mdv7.png)
You can now use your file like this for forums:
Code:
[img]http://www.yoursite.com/yourfile.php[/img]Or for HTML
Code:
<img src='http://www.yoursite.com/yourfile.php' alt='Whats up!'>![[Image: GiXvY27.png]](http://i.imgur.com/GiXvY27.png)



![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)
![[Image: 82354115.jpg]](http://arehost.net:9090/photo_share/82354115.jpg)

![[Image: BAvhP6h.png]](http://i.imgur.com/BAvhP6h.png)