http://valentrinne.com/image/tofavvy3/tofavvy3.php
WHAT IS THE MEANING OF THIS?
<?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( $extList[ strtolower( $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( $extList[ strtolower( $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 (100, 100)
or die ("Cannot initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 0,0,0);
imagestring ($im, 2, 5, 5, "IMAGE ERROR", $text_color);
imagepng ($im);
imagedestroy($im);
}
}
?>
Ahhh, man what a sweet copy/paste.
WHY DOES THE LINE GO DOWN SO FAR?
What does that even mean?
fix'd
aaaaaaaaaaah why does it overflow out of the code box
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.
by fix'd i mean look at lawlz's avatar or click the link
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
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
SNORKEL HAS IT TOO
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
So what exactly is the problem? psyduck;
Quote from: Lawlz on July 31, 2007, 03:52:44 PM
So what exactly is the problem? psyduck;
what problem
Isn't that an avatar rotating script?
Quote from: Lawlz on July 31, 2007, 04:39:03 PM
Yes.
Except I've never seen yours change once. psyduck;
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;
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.
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;
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.
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.
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
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
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
I have to refresh to get the banners and Lawlz's avatar to rotate. edumacate;