DLEVIET - DataLife Engine Support Home Page

DataLife Engine Support » DataLife Engine » Edit Code » Limit register new account in an IP of existed account

Limit register new account in an IP of existed account

  • Author: admin;  
  • Views: 2294;  
  • Date: 24 September 2009;  
Limit register new account in an IP of existed account



Limit register new account in an IP of existed account.
Some time you don't want 1 IP have 2 or more account in your website. You need to stop this problem. Do this tutorial fellow


GO GO GO

1. Open file engine/module/register.php and find

if( $name == "" ) $stop .= $lang['reg_err_7'];



Below it add
$UserIP = $_SERVER['REMOTE_ADDR'];
    $fetch = $db->query( "SELECT name FROM " . USERPREFIX . "_users WHERE logged_ip = '$UserIP'" );
    $check = $db->get_row($fetch);
    if ($check) $stop .= "This IP was used to register another account in this site.";


2. Finish lol
We encourage you to Register or Login to website under your name.

webcam

Posted 5 June 2010 17:33 Register: 5.06.2010
thankyou very much smile

zeeko

Posted 12 June 2010 07:05 Register: 14.03.2010
Thank you Sir!

harsha500

Posted 19 June 2012 10:44 Register: 16.06.2012
thanks a lot fellow
Information
Members of Guest cannot leave comments.

Useful Tools

Popular

Pagerank Update

    Updates Yandex SEO
    28.03.2013
    27.12.2012
    07.12.2012
    Updates Yandex search
    15.05.2013
    12.05.2013
    27.04.2013
    Updates Yandex Catalogue
    17.05.2013
    16.05.2013
    14.05.2013
    Updates Google
    06.02.2013
    08.11.2012
    02.08.2012

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    May 2013    »
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31