Welcome to the RaGEZONE - MMORPG development forums.

3 Accounts Per IP

This is a discussion on 3 Accounts Per IP within the Habbo Releases forums, part of the Habbo Hotel category; Hey... I'm just wondering if anybody could help me.. I'm using zCMS and I want to make it so it's ...

LyncusMU
Results 1 to 9 of 9
  1. #1
    The Sex Addict
    Rank
    Member +
    Join Date
    Oct 2011
    Location
    UK
    Posts
    502
    Liked
    59

    3 Accounts Per IP

    Tabo Hotel
    Hey... I'm just wondering if anybody could help me..
    I'm using zCMS and I want to make it so it's 3 accounts per ip... any help? please

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    C-images website soon
    Rank
    Member +
    Join Date
    May 2010
    Location
    England, UK
    Posts
    1,284
    Liked
    166

    Re: 3 Accounts Per IP

    Um, there was a script so it can be 1 ip per user. Ill have a look for you
    Last edited by JohnHearfield; 18-11-11 at 07:51 PM.

  4. #3
    What you looking at?
    Rank
    Subscriber
    Join Date
    Oct 2009
    Location
    London
    Posts
    221
    Liked
    112

    Re: 3 Accounts Per IP

    Place this inside your virtual directory /register.php

    PHP Code:
    if (LOGGED_IN)
    {
        
    header("Location: " WWW "/me");
        exit;
    }

    $checkUser dbquery("SELECT * FROM users WHERE ip_reg = '" $_SERVER['REMOTE_ADDR'] . "'");
    $userAmount mysql_num_rows($checkUser);

    if(
    $userAmount >= 3)
    {
        die(
    '<center><font face="verdana">Access denied. You may not have more than 3 accounts.');

    Roper likes this.

  5. #4
    Newbie
    Rank
    Newbie
    Join Date
    Sep 2011
    Posts
    24
    Liked
    1

    Re: 3 Accounts Per IP

    thanks Muscab

  6. #5
    Newbie
    Rank
    Newbie
    Join Date
    Nov 2011
    Posts
    17
    Liked
    1

    Re: 3 Accounts Per IP

    Quote Originally Posted by Muscab View Post
    Place this inside your virtual directory /register.php

    PHP Code:
    if (LOGGED_IN)
    {
        
    header("Location: " WWW "/me");
        exit;
    }

    $checkUser dbquery("SELECT * FROM users WHERE ip_reg = '" $_SERVER['REMOTE_ADDR'] . "'");
    $userAmount mysql_num_rows($checkUser);

    if(
    $userAmount >= 3)
    {
        die(
    '<center><font face="verdana">Access denied. You may not have more than 3 accounts.');

    Do you have one for phoenix ?:D

  7. #6
    What you looking at?
    Rank
    Subscriber
    Join Date
    Oct 2009
    Location
    London
    Posts
    221
    Liked
    112

    Re: 3 Accounts Per IP

    Quote Originally Posted by mmdoh88 View Post
    Do you have one for phoenix ?:D

    PHP Code:
    <?php  $sql mysql_query("SELECT * FROM users WHERE ip_last='$_SERVER[REMOTE_ADDR]'");
        if(
    mysql_num_rows($sql) > 0) {
            echo 
    '<script type="text/javascript">
    <!--

    alert ("Stop Making accounts kid.")

    // -->
    </script>'
    ;
           echo
    '<script type="text/javascript">
    window.location = "/index.php"
    </script>'
    ;  
            die;
        }

    ?>

  8. #7
    Average Member
    Rank
    Newbie
    Join Date
    Nov 2011
    Location
    Sweden
    Posts
    62
    Liked
    2

    Re: 3 Accounts Per IP

    Quote Originally Posted by Muscab View Post
    PHP Code:
    <?php  $sql mysql_query("SELECT * FROM users WHERE ip_last='$_SERVER[REMOTE_ADDR]'");
        if(
    mysql_num_rows($sql) > 0) {
            echo 
    '<script type="text/javascript">
    <!--

    alert ("Stop Making accounts kid.")

    // -->
    </script>'
    ;
           echo
    '<script type="text/javascript">
    window.location = "/index.php"
    </script>'
    ;  
            die;
        }

    ?>
    Where do I put it?

  9. #8
    Look at me now!
    Rank
    Member +
    Join Date
    Apr 2010
    Location
    Hablow
    Posts
    1,174
    Liked
    127

    Re: 3 Accounts Per IP

    /register/index.php

    Put it below the ?> after the global.php thing

  10. #9
    Newbie
    Rank
    Newbie
    Join Date
    Nov 2011
    Posts
    17
    Liked
    1

    Re: 3 Accounts Per IP

    Quote Originally Posted by Muscab View Post
    PHP Code:
    <?php  $sql mysql_query("SELECT * FROM users WHERE ip_last='$_SERVER[REMOTE_ADDR]'");
        if(
    mysql_num_rows($sql) > 0) {
            echo 
    '<script type="text/javascript">
    <!--

    alert ("Stop Making accounts kid.")

    // -->
    </script>'
    ;
           echo
    '<script type="text/javascript">
    window.location = "/index.php"
    </script>'
    ;  
            die;
        }

    ?>
    I dont see in the code 3 max per ip ?:O

 

 

Posting Permissions

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