[REL] 1 user per IP for HoloCMS [REL]

Page 1 of 2 12 LastLast
Results 1 to 25 of 40
  1. #1
    Apprentice ZimperZ is offline
    MemberRank
    Dec 2006 Join Date
    NorwayLocation
    23Posts

    [REL] 1 user per IP for HoloCMS [REL]

    Hello!

    Want to make it possible that only 1 user can register an account per IP? This is smart if your users create tons of multiaccounts just to get credits or something..

    Do this:

    1. Open register.php

    2. Search for this line: include('templates/login/register_subheader.php');

    3.

    The orginal will look like this:

    Code:
    include('templates/login/register_subheader.php');
    include('templates/login/register_header.php');
    
    ?>

    Replace with this:

    Code:
    include('templates/login/register_subheader.php');
    include('templates/login/register_header.php');
        $sql = mysql_query("SELECT * FROM users WHERE ipaddress_last='$_SERVER[REMOTE_ADDR]'");
        if(mysql_num_rows($sql) > 0) {
            echo "<center><br><br><br>ONLY 1 IP PER USER ALLOWED!";
            echo '<meta http-equiv="refresh" content="5; url=index.php"> ';
            die;
        }
    ?>

    4. Save and replace with the orginal register.php file


    Screens:



    Sorry for bad lang.. ;)


  2. #2
    Konichiwa england is offline
    MemberRank
    Jul 2007 Join Date
    812Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    very helpfull actually =]

    but tutorial not release ?

  3. #3
    Apprentice ZimperZ is offline
    MemberRank
    Dec 2006 Join Date
    NorwayLocation
    23Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Wasn't sure were to post it.. It's a release of sourcecode, but also a tut.. So sorry if i posted it in wrong section ;p

  4. #4
    Enthusiast Dioxine is offline
    MemberRank
    Sep 2008 Join Date
    ''Trojan-PSW.Win32.Dioxine.my''Location
    39Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Nice i guess! 6/10 ;).

    ~ Dioxine

  5. #5
    Isenheart . Leimone is offline
    MemberRank
    Jul 2008 Join Date
    Sweden, Stockholm.Location
    1,317Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    I already had it,
    thought it was just closed, only for me.

  6. #6
    Account Upgraded | Title Enabled! TimesCoder is offline
    MemberRank
    Aug 2008 Join Date
    127.0.0.1Location
    815Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Quote Originally Posted by ZimperZ View Post
    Hello!

    Want to make it possible that only 1 user can register an account per IP? This is smart if your users create tons of multiaccounts just to get credits or something..

    Do this:

    1. Open register.php

    2. Search for this line: include('templates/login/register_subheader.php');

    3.

    The orginal will look like this:

    Code:
    include('templates/login/register_subheader.php');
    include('templates/login/register_header.php');
    
    ?>
    Replace with this:

    Code:
    include('templates/login/register_subheader.php');
    include('templates/login/register_header.php');
        $sql = mysql_query("SELECT * FROM users WHERE ipaddress_last='$_SERVER[REMOTE_ADDR]'");
        if(mysql_num_rows($sql) > 0) {
            echo "<center><br><br><br>ONLY 1 IP PER USER ALLOWED!";
            echo '<meta http-equiv="refresh" content="5; url=index.php"> ';
            die;
        }
    ?>
    4. Save and replace with the orginal register.php file


    Screens:



    Sorry for bad lang.. ;)
    Can you add it in color like you know a habblet container with a color.

  7. #7
    Account Upgraded | Title Enabled! VeSa is offline
    MemberRank
    Aug 2008 Join Date
    WebinoFlax worlLocation
    1,224Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    nice its on swedish xD

    Du kan bara ha en bruker p

  8. #8
    Go Do 1... Mate !! Extreme, is offline
    MemberRank
    Oct 2007 Join Date
    United KingdomLocation
    1,404Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Nice release now will stop people making loads and loads of clones :P , Good job

  9. #9
    Account Upgraded | Title Enabled! FrozenShine is offline
    MemberRank
    Oct 2007 Join Date
    Im from HollandLocation
    406Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Great release very useful! ;)

  10. #10
    Gamma RastaLulz is offline
    MemberRank
    Dec 2007 Join Date
    EarthLocation
    3,327Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Aha, thanks a lot, you're a life saver.

    This is also an epic bump, but a very useful script.

  11. #11
    Fuck You Retro! is offline
    MemberRank
    Jun 2007 Join Date
    4,346Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Pretty good I guess,
    Alot of people got though
    But still helpful

  12. #12
    8-bit Bitch Slapper Alpha Ducky is offline
    MemberRank
    Mar 2007 Join Date
    In My HouseLocation
    2,436Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    already released,
    but thanx again for it ;)

    could be useful for some people

  13. #13
    8-bit Bitch Slapper Alpha Ducky is offline
    MemberRank
    Mar 2007 Join Date
    In My HouseLocation
    2,436Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    already released,
    but thanx again for it ;)

    could be useful for some people

  14. #14
    Gamma RastaLulz is offline
    MemberRank
    Dec 2007 Join Date
    EarthLocation
    3,327Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Quote Originally Posted by rickymenier View Post
    already released,
    but thanx again for it ;)

    could be useful for some people
    Meh, I highly doubt someone posted this before 09-16-2008, 03:37 PM..

  15. #15
    Valued Member jaricaaf is offline
    MemberRank
    Feb 2008 Join Date
    Netherlands (off course)Location
    131Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    people will need this!
    really usefull release!! :D

  16. #16
    Account Upgraded | Title Enabled! kimmah is offline
    MemberRank
    May 2007 Join Date
    NorwayLocation
    243Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Please people, stop bumping old threads.

    Could somebody close this one?

  17. #17
    Account Upgraded | Title Enabled! kimmah is offline
    MemberRank
    May 2007 Join Date
    NorwayLocation
    243Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Edit: Sorryfor doublepost. Ragezone goes laggy ;s

  18. #18
    Gamma RastaLulz is offline
    MemberRank
    Dec 2007 Join Date
    EarthLocation
    3,327Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Quote Originally Posted by kimmah View Post
    Please people, stop bumping old threads.

    Could somebody close this one?
    There's no need for it to be closed, as it is still relevant, and essential for any popular hotel.

  19. #19
    Account Upgraded | Title Enabled! kimmah is offline
    MemberRank
    May 2007 Join Date
    NorwayLocation
    243Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    You will still be able to use the code as long as it stays in the first post if you close the thread.

    I just wanted it to be closed cause it's old.

  20. #20
    Account Upgraded | Title Enabled! yifan_lu is offline
    MemberRank
    Jun 2007 Join Date
    Next to a computer screenLocation
    692Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    That's a bad idea, since 1) Families with brothers/sisters won't be able to make accounts, 2) If someone logged on on their friend's computer and they go "hey, cool game, can I register", then they can't, I would either create a new column called "ip_register" in "users", and set the ip address there when registering, or 2) increase the number to 4 or something.

  21. #21
    Valued Member qurke is offline
    MemberRank
    Jan 2009 Join Date
    116Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    thxx 10/10

  22. #22
    Account Upgraded | Title Enabled! Killah-07 is offline
    MemberRank
    Nov 2007 Join Date
    238Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Very nice 10/10

  23. #23
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Yifan_Lu,, you can modify it so you can have as many users allowed as you want, like for my hotel, i set it to allow 2, by changing the value I will put in bold to 2, you are allowing 2 users per ip.

    PHP Code:
        $sql mysql_query("SELECT * FROM users WHERE ipaddress_last='$_SERVER[REMOTE_ADDR]'");
        if(
    mysql_num_rows($sql) > 0) {                         < Change the 0 on this line to the amount o users you want to be allowed to register.
            echo 
    "<center><br><br><br>ONLY 1 IP PER USER ALLOWED!";
            echo 
    '<meta http-equiv="refresh" content="5; url=index.php"> ';
            die;
        } 

  24. #24
    Apprentice Jlc6 is offline
    MemberRank
    Oct 2008 Join Date
    16Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    Nice.... (Y)

    9/10

  25. #25
    Member kbhotel is offline
    MemberRank
    Jan 2009 Join Date
    53Posts

    Re: [REL] 1 user per IP for HoloCMS [REL]

    [QUOTE=VeSa;4106479]nice its on swedish xD

    Du kan bara ha en bruker p



Page 1 of 2 12 LastLast

Advertisement