Question about script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ideamon
    Registered User
    • Jun 2006
    • 45

    #1

    Question about script

    Does anyone in here know outgoing script like youramateurporn.com/out.php. How to do this? And youramateurporn.com has some advertise space between entries, I know that is a wordpress plugin but don't know what is it name. Anybody can help me?
  • Lycanthrope
    Confirmed User
    • Jan 2004
    • 4517

    #2
    In its simplest form, an "out.php" or "out.cgi" script is nothing more than a redirect. Click on it and you get redirected to a designated place:
    <?php
    header('Location: http://www.site.com/page.html') ;
    ?>
    They are typically used in conjunction with a tradescript and / or are used to pass other variables to the trade script and / or target site. Trade scripts all have their own syntax.

    Comment

    • ideamon
      Registered User
      • Jun 2006
      • 45

      #3
      Thanks for your help, Lycanthrope. I see they put iframe tag in out.php, so can you tell me more details about it?

      Comment

      • Lycanthrope
        Confirmed User
        • Jan 2004
        • 4517

        #4
        Well, in a case like that, they include some html to load their top frame and use a variable "q", which is the url they display in the main frame. I'm not real good with frame anymore so you are going to have to figure out the columns, rows, frame border, etc, but it would be something like this: (this is all one file - "out.php")

        <?php

        $q = $_SERVER["QUERY_STRING"];


        ?> // this grabs the variable "q" which is the various pages they are linking to and must be placed before the html tag

        <html>
        <head>
        <title>My Page</title>
        </head>
        <frameset>
        <frame src="myframe.html" />
        <frame src="<?php echo('$q'); ?>" /> // loads the url called in the variable
        </frameset>
        </html>
        Last edited by Lycanthrope; 08-01-2007, 10:30 AM. Reason: comments

        Comment

        • Lycanthrope
          Confirmed User
          • Jan 2004
          • 4517

          #5
          Actually I messed that up... this is simplified

          link to out.php?http://www.gallery.url

          <?php

          $q = $_SERVER["QUERY_STRING"];

          ?> // this grabs the variable

          <html>
          <head>
          <title>My Page</title>
          </head>
          <frameset>
          <frame src="myframe.html" />
          <frame src="<?php echo('$q'); ?>" /> // loads the url called in the variable
          </frameset>
          </html>

          Comment

          • ideamon
            Registered User
            • Jun 2006
            • 45

            #6
            I got it, thank you very much!

            Comment

            Working...