GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Seach Not Working For Me. Link to the sig rotator thread. (https://gfy.com/showthread.php?t=456666)

Alex 04-16-2005 04:30 PM

Seach Not Working For Me. Link to the sig rotator thread.
 
Please post it here.

MikeVega 04-16-2005 04:34 PM

you can do that ...have your sig rotate through banners ... I have to have my brother write that for me ...

sickkittens 04-16-2005 04:34 PM

Here ya go - http://www.gofuckyourself.com/showthread.php?t=456666

Alex 04-16-2005 04:38 PM

Yea its possible.
Sick kittens on my ignore list you go. How stupid do you think people are when you are linking to the same thread as the one in my browser. If you are going to be a jackass and try to be funny at least get it right.

Alex 04-16-2005 04:48 PM

Bump for me

Alex 04-16-2005 07:08 PM

First page bump

SmokeyTheBear 04-16-2005 07:09 PM

ill icq it later

Alex 04-16-2005 07:10 PM

Quote:

Originally Posted by SmokeyTheBear
ill icq it later

I found the text file you posted a while ago but its 404 now.

DamageX 04-16-2005 07:12 PM

Quote:

Originally Posted by sickkittens


Hahaha, you got me with that one. Funny, good thing I got around to closing the browser window right after 'Hey everybody!" :1orglaugh

sickkittens 04-16-2005 07:20 PM

Quote:

Originally Posted by Alex
Yea its possible.
Sick kittens on my ignore list you go. How stupid do you think people are when you are linking to the same thread as the one in my browser. If you are going to be a jackass and try to be funny at least get it right.

:waaaaahh I truly apologize for doing that everyone. Please forgive me.

SmokeyTheBear 04-16-2005 07:24 PM

Code:

<?php




        $folder = '.';


        $extList = array();
        $extList['gif'] = 'image/gif';
        $extList['jpg'] = 'image/jpeg';
        $extList['jpeg'] = 'image/jpeg';
        $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 !hahahaha ( $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);
        }
}

?>


Alex 04-16-2005 07:26 PM

Thanks
Found it just a min ago on some other forum.

SmokeyTheBear 04-16-2005 07:26 PM

all you need to do is replace the hahahaha once , it should be two ='s like this ==

SmokeyTheBear 04-16-2005 07:29 PM

for those that are also interested you just put that code above in a file called yoursig.php ( first replace the hahahaha with == and then put all the images you want to rotate in the same folder and call it like<img src=yoursig.php>


All times are GMT -7. The time now is 06:16 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123