Boyah Forums

General => The Lobby => Topic started by: Feynman on July 31, 2007, 01:42:25 PM

Title: Alright Lawlz,
Post by: Feynman on July 31, 2007, 01:42:25 PM
http://valentrinne.com/image/tofavvy3/tofavvy3.php

WHAT IS THE MEANING OF THIS?

Code Select
<?php

$folder '.';

    
$extList = array();
$extList['gif'] = 'image/gif';
$extList['jpg'] = 'image/jpeg';
$extList['jpeg'] = 'image/jpeg';
$extList['jp2'] = 'image/jp2';
$extList['png'] = 'image/png';

$img null;

if (
substr($folder,-1) != '/') {
$folder $folder.'/';
}

if (isset(
$_GET['img'])) {
$imageInfo pathinfo($_GET['img']);
if (
    isset( $extListstrtolower$imageInfo['extension'] ) ] ) &&
        
file_exists$folder.$imageInfo['basename'] )
    ) {
$img $folder.$imageInfo['basename'];
}
} else {
$fileList = array();
$handle opendir($folder);
while ( false !== ( $file readdir($handle) ) ) {
$file_info pathinfo($file);
if (
    isset( $extListstrtolower$file_info['extension'] ) ] )
) {
$fileList[] = $file;
}
}
closedir($handle);

if (count($fileList) > 0) {
$imageNumber time() % count($fileList);
$img $folder.$fileList[$imageNumber];
}
}

if (
$img!=null) {
$imageInfo pathinfo($img);
$contentType 'Content-type: '.$extList$imageInfo['extension'] ];
header ($contentType);
readfile($img);
} else {
if ( function_exists('imagecreate') ) {
header ("Content-type: image/png");
$im = @imagecreate (100100)
    or die ("Cannot initialize new GD image stream");
$background_color imagecolorallocate ($im255255255);
$text_color imagecolorallocate ($im0,0,0);
imagestring ($im255,  "IMAGE ERROR"$text_color);
imagepng ($im);
imagedestroy($im);
}
}

?>


Ahhh, man what a sweet copy/paste.
Title: Re: Alright Lawlz,
Post by: Daddy on July 31, 2007, 01:44:23 PM
WHY DOES THE LINE GO DOWN SO FAR?
Title: Re: Alright Lawlz,
Post by: NOA_Haunted on July 31, 2007, 01:46:05 PM
What does that even mean?
Title: Re: Alright Lawlz,
Post by: Feynman on July 31, 2007, 01:49:39 PM
fix'd
Title: Re: Alright Lawlz,
Post by: guff on July 31, 2007, 01:50:26 PM
aaaaaaaaaaah why does it overflow out of the code box
Title: Re: Alright Lawlz,
Post by: Daddy on July 31, 2007, 01:51:43 PM
Quote from: Commodore Guff on July 31, 2007, 01:50:26 PM
aaaaaaaaaaah why does it overflow out of the code box
bassir fix'd it dood.
Title: Re: Alright Lawlz,
Post by: guff on July 31, 2007, 01:52:38 PM
Quote from: JMV290 on July 31, 2007, 01:51:43 PM
bassir fix'd it dood.
no he didn't
Title: Re: Alright Lawlz,
Post by: Feynman on July 31, 2007, 01:53:46 PM
by fix'd i mean look at lawlz's avatar or click the link
Title: Re: Alright Lawlz,
Post by: guff on July 31, 2007, 01:56:50 PM
Quote from: Bassir C. on July 31, 2007, 01:53:46 PM
by fix'd i mean look at lawlz's avatar or click the link
okay so why so much spill over
Title: Re: Alright Lawlz,
Post by: Feynman on July 31, 2007, 01:57:38 PM
Quote from: Commodore Guff on July 31, 2007, 01:56:50 PM
okay so why so much spill over


lol windows

its fine for me
Title: Re: Alright Lawlz,
Post by: ncba93ivyase on July 31, 2007, 02:59:52 PM
SNORKEL HAS IT TOO
Title: Re: Alright Lawlz,
Post by: guff on July 31, 2007, 03:49:11 PM
Quote from: Bassir C. on July 31, 2007, 01:57:38 PM
lol windows

its fine for me
uh hold on let me check on ubuntututut
same problem
Safari gave me the same problem.

ps safari on windows blows
Title: Re: Alright Lawlz,
Post by: ncba93ivyase on July 31, 2007, 03:52:44 PM
So what exactly is the problem? psyduck;
Title: Re: Alright Lawlz,
Post by: guff on July 31, 2007, 04:05:35 PM
Quote from: Lawlz on July 31, 2007, 03:52:44 PM
So what exactly is the problem? psyduck;
what problem
Title: Re: Alright Lawlz,
Post by: ncba93ivyase on July 31, 2007, 04:17:55 PM
Quote from: Commodore Guff on July 31, 2007, 04:05:35 PM
what problem
whys skittles complainin
Title: Re: Alright Lawlz,
Post by: pringle positive on July 31, 2007, 04:22:41 PM
Isn't that an avatar rotating script?
Title: Re: Alright Lawlz,
Post by: ncba93ivyase on July 31, 2007, 04:39:03 PM
Quote from: w00terz on July 31, 2007, 04:22:41 PM
Isn't that an avatar rotating script?
Yes.
Title: Re: Alright Lawlz,
Post by: Samus Aran on July 31, 2007, 04:39:49 PM
Quote from: Lawlz on July 31, 2007, 04:39:03 PM
Yes.


Except I've never seen yours change once.  psyduck;
Title: Re: Alright Lawlz,
Post by: ncba93ivyase on July 31, 2007, 04:41:56 PM
Quote from: Kaz on July 31, 2007, 04:39:49 PM
Except I've never seen yours change once.  psyduck;
WRYYYYYYYYYYYYYYYYY

I have a picture of Clucky and one of Zayna eating a chocolate bar. caterpie;
Title: Re: Alright Lawlz,
Post by: Feynman on July 31, 2007, 04:42:25 PM
Quote from: Kaz on July 31, 2007, 04:39:49 PM
Except I've never seen yours change once.  psyduck;


That's because the script sucks.
Title: Re: Alright Lawlz,
Post by: Samus Aran on July 31, 2007, 04:42:47 PM
Quote from: Lawlz on July 31, 2007, 04:41:56 PM
WRYYYYYYYYYYYYYYYYY

I have a picture of Clucky and one of Zayna eating a chocolate bar. caterpie;


All I see is Zayna, and not eating a chocolate bar.  psyduck;
Title: Re: Alright Lawlz,
Post by: ncba93ivyase on July 31, 2007, 04:43:22 PM
Quote from: Bassir C. on July 31, 2007, 04:42:25 PM
That's because the script sucks.
That's because your browsers suck. spam;

It changes every two pages for me.
Title: Re: Alright Lawlz,
Post by: Feynman on July 31, 2007, 04:46:58 PM
Quote from: Lawlz on July 31, 2007, 04:43:22 PM
That's because your browsers suck. spam;

It changes every two pages for me.


No, it's probably because you've loaded the PHP script several times directly through your browser or something. The script sucks; I should know, I'm the one that got it. 
Title: Re: Alright Lawlz,
Post by: ncba93ivyase on July 31, 2007, 04:48:17 PM
Quote from: Bassir C. on July 31, 2007, 04:46:58 PM
No, it's probably because you've loaded the PHP script several times directly through your browser or something. The script sucks; I should know, I'm the one that got it. 
AND I ACQUIRED IT THROUGH SNORKEL.

go die plz
Title: Re: Alright Lawlz,
Post by: Feynman on July 31, 2007, 04:49:49 PM
Quote from: Lawlz on July 31, 2007, 04:48:17 PM
AND I ACQUIRED IT THROUGH SNORKEL.

go die plz


I recall Snorkel looking in the PHP script. spam;

either he got it from banner.php or he got it the same place i got it
Title: Re: Alright Lawlz,
Post by: ncba93ivyase on July 31, 2007, 04:50:34 PM
Quote from: Bassir C. on July 31, 2007, 04:49:49 PM
I recall Snorkel looking in the PHP script. spam;

either he got it from banner.php or he got it the same place i got it
so u rly dont no php u just ues google
Title: Re: Alright Lawlz,
Post by: Samus Aran on July 31, 2007, 04:51:05 PM
I have to refresh to get the banners and Lawlz's avatar to rotate.  edumacate;