PDA

View Full Version : I'm moving my Personal PIC to my sig


Uranium-235
12-26-2001, 09:01 PM
YABB won't let me use my Random img script for my personal pic. They should redo that to judge if it's an image by the headers of the location instead of the last 4 letters being eather .jpg or .gif (I'm guessing that's how it works)

Hulaboy
12-28-2001, 05:23 PM
I did a couple of page refreshes and I have to say that those are some pretty interesting pictures you have there...hahaha!

Uranium-235
12-28-2001, 08:42 PM
yeah, 3 of them are from a website telling you how to NOT mod you case SPAM:o

The one with the plyers on top of it is my PC

Keefe
12-28-2001, 09:25 PM
Those are awsome pics!

We want more!!!

Uranium-235
12-29-2001, 01:55 AM
eh. we'll see :)


Edit: Done and done SPAM;D

Uranium-235
12-29-2001, 02:42 AM
oh yeah. here's the source, for those of you who want it
--------------------------------------------------

<?php
header("content-type: image/jpg"); //netsmog forum dosent like that first ", the & quot is a "
header("Cache-Control: no-store, no-cache, must-revalidate"); SPAM
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

//RandomIMG
//]MX[Uranium-235

function loadimage($filename)
{
SPAM SPAM SPAM$file = fopen($filename, "rb");
SPAM SPAM SPAMfpassthru($file);
SPAM SPAM SPAMfclose($file);
}

$mdir = "images/$catagorey";

if(trim($catagorey) == "")
SPAM SPAM SPAMloadimage("images/error.jpg");

if(!$dir = @opendir($mdir))
SPAM SPAM SPAMloadimage("images/error.jpg");

while($file = readdir($dir))
{
SPAM SPAM SPAMif($file != ".." && $file != ".")
SPAM SPAM SPAM SPAM SPAM SPAM$imgs[] = $file;
}

closedir($dir);
mt_srand(time());
$num_img = count($imgs)-1;

//patched - mt_rand will not accept (0, 0)
if($num_img <= 0)
SPAM SPAM SPAM$rand = 0;
else
SPAM SPAM SPAM$rand = mt_rand(0, $num_img);

$images = $mdir . "/" . $imgs[$rand];


loadimage($images);

?>

Keefe
12-29-2001, 10:48 AM
Thanks for the code!

I am going to use this on another page that i have.

Uranium-235
12-29-2001, 12:13 PM
ok. then here's the other info on it. in the Images directory thier has to be a error.jpg. You can probaly make your own

and in the images directory you have to have other directories. Like I have /images/netsmog

and in the image for my sig it has randimg.php?catagorey=netsmog

put all the images you want under that ?catagorey=x in directory images/x

Keefe
12-29-2001, 03:09 PM
Thanks for the explanations!

Hey do you have any php scripts that count how many users are on a web site?

Thanks

Keefe

Uranium-235
12-29-2001, 03:52 PM
no. that's one I could never figure out how to do. I know it can be done with asp/vb

Keefe
12-30-2001, 12:14 AM
I bet your pics are killing SPAMthe peeps still on 56k dial-up...he he he

Uranium-235
12-30-2001, 11:36 AM
na. PSP JPG compression is usually pretty good. I resized most of them for just that reason

thetechfreak
01-06-2002, 04:27 AM
yea, the pics are fine on 56k

the whole site is pretty fast on 56k compared to other forums

Simo
01-06-2002, 07:17 AM
Interesting...someone was saying how its slower than other forums.....go figure..