• 0

Sig Changer


Question

I have come acroos a forum sig changing script I made a few edits to to it and commented it out.

Notice: You will need to but this code in a folder called "<your folder name>.png" and insert the attached code as index.php. This makes it compatible with BBCODE (sig.png).

&lt;?php
/*
@name PHP Forum Sig Changer 
@author Chris T.
@version .01  
*/

//The first four lines will make sure that your browser does not cache your sig
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");
Header("Content-Type: image/gif");

//This sets up a random seed.
srand((double)microtime()*1000000);

//$randnum sets the amount of sigs that are changed. To change this the: (0,"x") x being wanted number   
$randnum = rand(0,1);

//The following pulls images. To change this: use else if($randnum == "x"){readfile("http:/yourdomain.com/imagename.fileextension");} x being sig number. Please note the first statement must stay as "if" and do not change it to "else if"

if($randnum == 0)
{
readfile("http://yourdomain.com/imagename.fileextension");
}
else if($randnum == 1)
{
readfile("http://yourdomain.com/imagename.fileextension");
}
?&gt;

Please let me know if it works for you and feel free to use it :).

Edited by Bounty1990
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.