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 ().
<?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");
}
?>
Please let me know if it works for you and feel free to use it :).
Question
DotChris
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 ().
Please let me know if it works for you and feel free to use it :).
Edited by Bounty1990Link to comment
Share on other sites
0 answers to this question
Recommended Posts