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

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: 1459;  
  • 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!
Information
Members of Guest cannot leave comments.

Pagerank Update

    Updates Yandex SEO
    13.04.2012
    16.02.2012
    04.02.2012
    Updates Yandex search
    17.05.2012
    15.05.2012
    12.05.2012
    Updates Yandex Catalogue
    18.05.2012
    16.05.2012
    11.05.2012
    Updates Google
    03.05.2012
    06.02.2012
    08.11.2011

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    May 2012    »
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
 
Contact us in social network

Facebook

Twitter