Current time: 05-23-2012, 10:48 PM Hello There, Guest! (LoginRegister)

 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestions
07-13-2009, 07:05 PM
Post: #11
RE: Suggestions
The session might expire before your IP changes. Wink

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
07-14-2009, 02:07 AM (This post was last modified: 07-14-2009 02:37 AM by KuJoe.)
Post: #12
RE: Suggestions
True but that's why it should take advantage of both checks. I just think that when you disable "Multiple signups" it should automatically include users who are logged in. Wink

Code:
if($db->config("general") == 0) {
    $maincontent = $main->table("Signups Closed", $db->config("message"));
}
elseif(!$main->checkIP($ip) && !$db->config("multiple")) {
    $maincontent = $main->table("IP Already Exists!", "One account per user.");
}
elseif($_SESSION['clogged']) {
    $maincontent = $main->table("Already logged in.", "One account per user.");
}
else {
    $_SESSION['orderform'] = true;    
}

Short of checking cookies and IPs there isn't much more you can do but these are usually good enough. Wink
To add user IPs to the client list in the admin control panel:

Add to end of includes\tpl\clientdetails.tpl
Code:
<div class="subborder">
    <div class="sub">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%">Client IP:</td>
          <td align="right">%CLIENTIP%
          <a title="The IP used during registration." class="tooltip"><img src="<URL>themes/icons/information.png" /></a></td>
        </tr>
      </table>
    </div>
</div>

Find in admin\pages\users.php:
Code:
$array['EMAIL'] = $client['email'];
Add below:
Code:
$array['CLIENTIP'] = $client['ip'];
Repeat last step for second listing.

- KuJoe
▒ LvL8
▒ The Free Web Hosting Guide
▒ FreeWebHostingTalk


PM me for theme conversions @ $15!
Visit this user's website Find all posts by this user


Forum Jump:


User(s) browsing this thread: 2 Guest(s)