Easy Rotating SIG script. ( cut & paste )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SmokeyTheBear
    ►SouthOfHeaven
    • Jun 2004
    • 28609

    #1

    Easy Rotating SIG script. ( cut & paste )

    Just cut and paste code into a text document, save it as sig.php , place in folder like www.yoursite.com/sig/sig.php then add all your images to the folder , then make your sig image point to the sig.php file and it will randomly display the images.

    edit. your going to have to replace "haha123;" with the } ( the opposite of this one i.e. going the other way - like the bracket to the right of the "P" key , ) bracket because for some reason gfy has parsed it out of the code.

    If you want to have the images in a different folder just edit the $folder from "." to "/folder/extension/"
    PHP 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);
        }
    }
    
    ?>
    hatisblack at yahoo.com
  • Jace
    FBOP Class Of 2013
    • Jan 2004
    • 35562

    #2
    damn dude, nice

    your just mr helpful tonight...thanks

    Comment

    • ClamSmacker
      Confirmed User
      • May 2004
      • 677

      #3
      You really are a brain-iack and a good source of info

      Comment

      • Veterans Day
        Confirmed User
        • Jul 2003
        • 8403

        #4
        smokey how can you be reached?
        Build a Massive Traffic Network, Hands FREE, Totally Automated

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          Originally posted by Veterans Day
          smokey how can you be reached?
          start a fire

          smokey_the_bearz AT lycos.com
          hatisblack at yahoo.com

          Comment

          • Veterans Day
            Confirmed User
            • Jul 2003
            • 8403

            #6
            Originally posted by SmokeyTheBear
            start a fire

            smokey_the_bearz AT lycos.com
            Build a Massive Traffic Network, Hands FREE, Totally Automated

            Comment

            • AGF
              Confirmed User
              • Jul 2004
              • 971

              #7
              looks really good
              SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

              Comment

              • McKracken
                Confirmed User
                • Jan 2004
                • 703

                #8
                I expect a lot more "free stuff" from the guy who got html banned around here...

                MAKE BIG $$$ - NEW MANINSTREAM SITE BETA LAUNCHES SEPTEMBER!
                * e-mail for more info [email protected] *

                Comment

                • kaktusan
                  Confirmed User
                  • Mar 2003
                  • 334

                  #9
                  damn good idea Smokey
                  Nice work


                  Superior Blogging Scripts | Porn Blog Space - not just another free blog hosting!

                  Comment

                  • pure energy
                    Confirmed User
                    • Apr 2004
                    • 4274

                    #10
                    I hope loading that on my server doesn't make me become an unwitting tool yet for another SECURITY LESSON at GFY
                    Click Here to get $42 a sale AND Get FREE MGP Coaching from WebmasterLabor.Com

                    Sign up above then EMAIL info (( at )) webmasterlabor DOT com for your free 1 to 1 MGP coaching

                    Comment

                    • hova
                      Traffillionaire
                      • Jan 2002
                      • 22430

                      #11
                      Originally posted by McKracken
                      I expect a lot more "free stuff" from the guy who got html banned around here...
                      http://traffillions.com/

                      Sign up and get lifetime revshare on your traffic

                      Comment

                      • SmokeyTheBear
                        ►SouthOfHeaven
                        • Jun 2004
                        • 28609

                        #12
                        Originally posted by McKracken
                        I expect a lot more "free stuff" from the guy who got html banned around here...
                        You could look at it like that or you could look at me as " the guy who saved your ass and everyone on gfy's ass from being owned by some fooligan at some point and using you and abusing you like a rag doll from corrupt html code "

                        Lensman could have hired someone to fix the html up nice and clean , it would have taken an hour.
                        hatisblack at yahoo.com

                        Comment

                        • arachnO
                          Confirmed User
                          • Jan 2004
                          • 1327

                          #13
                          nice idea!
                          All news from Adult Industry: new sites, new galleries, updated sites, PPS days and much more!
                          TrafficHolder.com - Buy/Sell Adult Traffic

                          Comment

                          • Ar3s
                            So Fucking Banned
                            • Feb 2004
                            • 4307

                            #14
                            Nice bro!winkwink:

                            Comment

                            • Clovis
                              Confirmed User
                              • Jan 2001
                              • 412

                              #15
                              very nice work

                              thanks
                              Thank God for little rebills
                              www.jadecandle.com

                              just fucking submit

                              Comment

                              • fr8
                                Confirmed User
                                • Mar 2003
                                • 5074

                                #16
                                Thats a really good script. Wonder how it will effect the sig whores.
                                joesmut (a) gmail Dot com
                                Full Stack Developer

                                Comment

                                • Repetitive Monkey
                                  Confirmed User
                                  • Feb 2004
                                  • 3505

                                  #17
                                  Originally posted by fr8
                                  Thats a really good script. Wonder how it will effect the sig whores.
                                  I posted a PHP script that will rotate your sig banners/buttons and still let them have links, but it didn't affect any sigwhores then, so it will not now.

                                  Comment

                                  • Repetitive Monkey
                                    Confirmed User
                                    • Feb 2004
                                    • 3505

                                    #18
                                    By the way, Smokey, why did you make it GD dependent when you can just stream the image right through?

                                    Comment

                                    • SilverTab
                                      Confirmed User
                                      • Nov 2001
                                      • 5060

                                      #19
                                      Originally posted by Repetitive Monkey
                                      By the way, Smokey, why did you make it GD dependent when you can just stream the image right through?
                                      yeah why not use fpassthru();
                                      mmm my sig was too big... no more cool animation
                                      but hey still! need php? ICQ: 94586959

                                      Comment

                                      Working...