Rotating sigs

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

BIG_MONKEY_JR

New Member
Apr 1, 2001
161
0
0
www.planetunreal.com
How do some of you guys make your sig images change with every refresh? I tried looking in the source, but I've forgotten all my html knowledge, so it just looks like random numbers and letters. Thanks
 

Freon

Braaaaiinss...
Jan 27, 2002
4,546
0
0
42
France
www.3dfrags.com
i've done a version using a text file (with the list of the sigs) for those you can't access an host with PHP support.

PHP:
<?
switch ($HTTP_GET_VARS['action']) {
  case 'list':
    $f = fopen("./liste.txt","r");
    while(($file = fgets($f,100)) != false) {
      $file = ereg_replace("\n","",$file);
      if (!is_dir($file)&&$file!=='index.php') {?><a href="<?echo $file?>"><?echo $file?></a><br><?}
    }
    fclose($f);
  break;
default:
  $f = fopen("./liste.txt","r");
  $count=0;
  while(($file = fgets($f,100)) != false) {
    $file = ereg_replace("\n","",$file);
    if (!is_dir($file)&&$file!=='index.php') {
      $count++;
      $sig["$count"]=$file;
    }
  }
  fclose($f);

  $geh = $sig[rand(1,$count)];

  Header('Content-type: image/jpeg');
  Header('Pragma: No cache');
  Header('Location: '.$geh);
}
?>

I use that so I could host my sigs somewhere else when noticed their traffic reached 500MB/month :con: