diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 47d41aab6..620509643 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -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(); diff --git a/signup.php b/signup.php index d44f95876..fdf7112e8 100644 --- a/signup.php +++ b/signup.php @@ -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' ")) {