Results 1 to 6 of 6

Thread: I need somone

  1. #1
    Join Date
    Jun 2007
    Posts
    56
    Tokens
    0

    Default I need somone

    I have this IP ban script

    PHP Code:
    <?php

    //Array of Banned ips
    $banned_ips[0] = "000.000.000.001";
    $banned_ips[1] = "000.000.000.002";
    $banned_ips[2] = "000.000.000.003";
    $banned_ips[3] = "000.000.000.004";
    $banned_ips[4] = "000.000.000.005";
    $banned_ips[5] = "000.000.000.006";

    // Loop Threw All the Ips.
    for($K 0$K<sizeof($banned_ips); $K++)
    {
    //If an Ip matches the user ip. Stop the page from loading.
    if($banned_ips[$K] == $_SERVER['REMOTE_ADDR']){ 
    die(
    "You have been Banned from viewing this Page.");
    }
    }
    ?>
    Could someone make it so its in a form...And like you input the IP and possibly if u wnna be super kind...Add a ban length script thingy so, you input how long they are banned for

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

    Latest Awards:

    Default

    MySQL or Flatfile?

  3. #3
    Join Date
    Jun 2007
    Posts
    56
    Tokens
    0

    Default wa

    What is the better option?

  4. #4
    Join Date
    Jun 2007
    Posts
    56
    Tokens
    0

    Default couldnot

    *Could not edit*

    What is better, Mysql or Flatfile>?

  5. #5
    Join Date
    Jul 2007
    Location
    United Kingdom
    Posts
    92
    Tokens
    0

    Default

    Flatfile should be fine for what you're after.
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have fonts in your signature which are over size 4.

  6. #6
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:


Posting Permissions

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