Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Need a Script..

  1. #1
    Join Date
    Aug 2006
    Location
    United Kingdom
    Posts
    3,843
    Tokens
    1,121

    Latest Awards:

    Default Need a Script..

    I need a proxy script...

    Bit like www.uploadz.co.uk/maths/

    So when you refresh it 5-6 times it turns into proxy with a panic button.

    I can get a proxy but dno how 2 do the refreshing bit.

    Anyone got a proxy script ready made or the code to make it have to refresh 5-6 times before showing proxy.

    Thanks +Rep for help.
    Last edited by Sunny.; 20-06-2007 at 05:16 PM.

  2. #2
    Join Date
    Apr 2006
    Location
    Salford
    Posts
    2,108
    Tokens
    0

    Latest Awards:

    Default

    Erm im not shure how but it will be something to do with the timing.

    I Have a script where after so many seconds, the page loads to the location you have in script.

  3. #3
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    WHY DOES NO-ONE MAKE ANYTHING ORIGINAL ANYMORE?

    Meh.

    PHP Code:
    <?php

    if( $_COOKIE"views" ] == "1" ) {

        
    setcookie"views""2" );
        
        
    // Maths stuff or whatever.

    }

    elseif( 
    $_COOKIE"views" ] == "2" ) {

        
    setcookie"views""3" );
        
        
    // Maths stuff or whatever.
        
    }

    elseif( 
    $_COOKIE"views" ] == "3" ) {
        
        
    setcookie"views""4" ) {
        
        
    // Maths stuff or whatever.
        
    }

    elseif( 
    $_COOKIE"views" ] == "4" ) {

        
    // PROXY

    }

    else {

        
    setcookie"views""1" );

        
    // Maths stuff or whatever.
        
    }

    ?>
    Last edited by Invent; 20-06-2007 at 05:18 PM.

  4. #4
    Join Date
    Aug 2006
    Location
    United Kingdom
    Posts
    3,843
    Tokens
    1,121

    Latest Awards:

    Default

    Its only a proxy for personal use, and for mates at school to use. "/

    Edit: Ty +REP
    Last edited by Sunny.; 20-06-2007 at 05:29 PM.

  5. #5
    Oni Guest

    Default

    Quote Originally Posted by Invent View Post
    WHY DOES NO-ONE MAKE ANYTHING ORIGINAL ANYMORE?
    Says the person who made a radio panel

  6. #6
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Lets think about that for a second.

    There have been around a MAX of 20- POPULAR Radio Panels?

    So yeah...thats a stupid thing to say Ozzie ¬_¬.

  7. #7
    Oni Guest

    Default

    Quote Originally Posted by Invent View Post
    Lets think about that for a second.

    There have been around a MAX of 20- POPULAR Radio Panels?

    So yeah...thats a stupid thing to say Ozzie ¬_¬.
    'WHY DOES NO-ONE MAKE ANYTHING ORIGINAL ANYMORE?'
    No matter how many there are, a radio panel is not original atall unless it invents some new features.

  8. #8
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Viper View Post
    'WHY DOES NO-ONE MAKE ANYTHING ORIGINAL ANYMORE?'
    No matter how many there are, a radio panel is not original atall unless it invents some new features.
    Even then it's only original features.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  9. #9
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Anyways.... back to the actual question at hand it would be much simpler and less intrusive on your browser (and more likely to work) if you used sessions.... such as this:

    PHP Code:
    <?php
    if( $_SESSION['views'] == "1"){
        
    $_SESSION['views'] = "2";    
        
    // Math stuff
    }
    if( 
    $_SESSION['views'] == "2"){
        
    $_SESSION['views'] = "3";    
        
    // Math stuff
    }
    if( 
    $_SESSION['views'] == "3"){
        
    $_SESSION['views'] = "4";    
        
    // Math stuff
    }
    if( 
    $_SESSION['views'] == "4"){
        
    // Proxy
    }
    if(!isset(
    $_SESSION['view']){
        
    $_SESSION['views'] = "1";    
        
    // Math stuff
    }
    ?>
    And you don't need all the "elseif" strings that way. Saves space and code

    Now for the panic button just do something like this:

    PHP Code:
    <?php
    echo '<a href="?equation=false">Panic</a>';
    if(
    $_GET['equation'] == "false"){
        unset(
    $_SESSION['view']);
        
    header("Location: index.php');
    }
    ?>
    So ya

  10. #10
    Join Date
    Aug 2006
    Location
    United Kingdom
    Posts
    3,843
    Tokens
    1,121

    Latest Awards:

    Default

    Thanks +REP

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •