[web-team] Fixed: PHP security-sensitive settings in php.ini
Rick Moen
rick at linuxmafia.com
Wed Jan 23 20:43:36 PST 2008
Quoting Lisa Corsetti (svlug at flygirl.com):
> Cool... with one minor correction. We are using PHP to select the
> random sponsor icon.
Thanks. Fortunately, this snippet doesn't use anything but the rand()
function and a couple of assignments -- and I've verified that it still
works:
$filenumber = rand(0, count($files)-1);
print "<img src='".$reldir."/".$files[$filenumber]."' border=0 alt=\"We'd like to thank our sponsors for making this website possible.\" width=110 height=65 vspace=5 hspace=10>";
More information about the web-team
mailing list