mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
LOCALHOST_IP is e107 class constant now
This commit is contained in:
@@ -9,21 +9,24 @@
|
||||
* e107 Main
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/e107_class.php,v $
|
||||
* $Revision: 1.83 $
|
||||
* $Date: 2009-11-24 16:30:06 $
|
||||
* $Revision: 1.84 $
|
||||
* $Date: 2009-11-24 16:41:10 $
|
||||
* $Author: secretr $
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
|
||||
define('LOCALHOST_IP', '0000:0000:0000:0000:0000:ffff:7f00:0001'); // IPV6 string for localhost - as stored in DB
|
||||
/**
|
||||
* e107 class
|
||||
*
|
||||
*/
|
||||
class e107
|
||||
{
|
||||
/**
|
||||
* IPV6 string for localhost - as stored in DB
|
||||
*/
|
||||
const LOCALHOST_IP = '0000:0000:0000:0000:0000:ffff:7f00:0001';
|
||||
|
||||
public $server_path;
|
||||
|
||||
public $e107_dirs = array();
|
||||
|
@@ -9,9 +9,9 @@
|
||||
* User signup
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/signup.php,v $
|
||||
* $Revision: 1.44 $
|
||||
* $Date: 2009-11-22 23:36:23 $
|
||||
* $Author: e107coders $
|
||||
* $Revision: 1.45 $
|
||||
* $Date: 2009-11-24 16:41:10 $
|
||||
* $Author: secretr $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -441,7 +441,7 @@ if (isset($_POST['register']))
|
||||
|
||||
|
||||
// check for multiple signups from the same IP address. But ignore localhost
|
||||
if ($allData['user_ip'] != LOCALHOST_IP)
|
||||
if ($allData['user_ip'] != e107::LOCALHOST_IP)
|
||||
{
|
||||
if($ipcount = $sql->db_Select('user', '*', "user_ip='".$allData['user_ip']."' and user_ban !='2' "))
|
||||
{
|
||||
|
Reference in New Issue
Block a user