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