Sunday, October 30, 2011

How to make a PHP TRACKER

Sup guys im just having a quick post on how to make a PHP tracker THE EASIEST WAY!
Follow the steps

1)Get PHP code which is;


<?php
$submit = $_POST['submit']; // Gets If It has been Submitted
if($submit){ // If submitted do this.
$password = $_POST['password']; // Get the password they submitted
$status = $_POST['status']; // Get the status they submitted
$server = $_POST['server']; // Get the server they submitted
$room = $_POST['room']; // Get the room they submitted
//Now We Secure it.
if($password == "YOURPASSWORD"){
//Now We Generate the image and stuff.
$im = imagecreatefrompng("tracker.png");
// Make RGB Colour For Writing
$colour = imagecolorallocate($im, 255, 255, 255); // This is white. Its the RGB CODE
$font = 'BurbankBigRegular-Bold.ttf'; // If You have a .otf use http://onlinefontconverter.com to convert it!
//This ^ Is our font, It has to be the exact name and in the right folder.
//Draw Text
imagettftext($im, 20, 0, 130, 75, $colour, $font, $status);
imagettftext($im, 20, 0, 130, 115, $colour, $font, $server);
imagettftext($im, 20, 0, 120, 195, $colour, $font, $room);
///          im size angle x   y   colour  font    text
// ^ THis Draws the text, The X And Y Values are incorrect, We will change them later.
//Create Image
imagepng($im,'gary.png');
// ^ You can change this to gary.png or something if you wish.
// Destroy - Save Server Resources
imagedestroy($im);
echo "<b>Status:UPDATED</b>";
}else
{
echo "<p><b>Incorrect Password!Re-enter!</b></p>";
}
}
//This form remebers what they put, so they dont have to keep typing it in.
// $_SERVER['PHP_SELF'] Means Get this document to submit to.
// If you know html this will be familiar.
?><title>Tracker PHP encoding Made By SammyChip</title>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<p>PASSWORD:
  <input type="text"  name="password" id="password" value="<?php echo $_POST['password']; ?>"/></p>
<p>Status: <input type="text" id="status"  name="status" value="<?php echo $_POST['status']; ?>"/></p>
<p>Server: <input type="text" id="server"  name="server" value="<?php echo $_POST['server']; ?>"/>
</p>
<p>Room: <input type="text" id="room" name="room" value="<?php echo $_POST['room']; ?>"/></p>
<p><input type="submit" id="submit" name="SEND/SUBMIT"/>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p> Made By SammyChip</p>
<p>&nbsp;</p>
</form>
2)Find a host example http://freela.biz
3)get filezilla
4)Pu the font and images in a folder and upload them

NOTE: 1)tracker.png that is what you should name your image
2)Add the font to the folder it is called "BurbankBigRegular-Bold.ttf"

~SammyChip, if any problem persists contact me!


1 comment: