CGI script for random gallery?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deleteduser
    Confirmed User
    • Sep 2001
    • 2218

    #1

    CGI script for random gallery?

    Hello Guys,

    I need a CGI script that opens a random URL from a txt file.

    example:
    amateur.cgi => random URL from amateur.txt => gallery URL opens

    anyone has some stuff like this?

    thanks my fellow country men!
    ICQ #58981463
    Promote my PornAccess Site: 2Chicks1Dick
  • ldinternet
    Confirmed User
    • Apr 2001
    • 8245

    #2
    I'll give you PHP...

    Comment

    • -=HUNGRYMAN=-
      Confirmed User
      • Jun 2001
      • 4753

      #3
      Winston Churchill is a porn peddlar ???

      Comment

      • deleteduser
        Confirmed User
        • Sep 2001
        • 2218

        #4
        i'd prefer CGI, anyone CGI? if not, PHP is fine, too =)
        ICQ #58981463
        Promote my PornAccess Site: 2Chicks1Dick

        Comment

        • ldinternet
          Confirmed User
          • Apr 2001
          • 8245

          #5
          Here is the PHP.

          Code:
          <?php
          mt_srand((float)microtime()*1000000);
          $f=file("links.txt");
          $u=trim($f[mt_rand(0,sizeof($f)-1)]);
          header("Location: $u");
          ?>
          links.txt = list of links in a text file, one on each line.

          Comment

          • ldinternet
            Confirmed User
            • Apr 2001
            • 8245

            #6
            For fucks sake.

            Code:
            < ?php
            mt_srand((float)microtime()*1000000);
            $f=file("links.txt");
            $u=trim($f[mt_rand(0,sizeof($f)-1)]);
            header("Location: $u");
            ? >
            links.txt = list of links in a text file, one on each line.

            Just delete the spaces before or after each question mark.

            Comment

            • deleteduser
              Confirmed User
              • Sep 2001
              • 2218

              #7
              thanks man!

              if nobody comes up with an CGI i will use this one =)
              ICQ #58981463
              Promote my PornAccess Site: 2Chicks1Dick

              Comment

              • playa
                Confirmed User
                • Feb 2001
                • 6432

                #8
                #!/usr/bin/perl

                #This is a text file containing all your trade partners
                ################################################## ############################
                $trade = "database.txt";


                # Done
                ################################################## ############################

                open (LINKS, "$trade");

                srand();
                $nlines=@file=<LINKS>;
                print "Location: $file[int rand $nlines]\n\n";

                close (LINKS);

                exit;



                be sure to grab my free hosted sponser galleries
                http://www.playascash.com/hosted.htm

                Comment

                Working...