function check_ip() { global $_lang; $check_time = time() - $this->_sys_config['reg_limit'] * 60; if (keke_glob_class::checkipaddres($this->_reg_ip)) { $this->_space_obj->setWhere("reg_ip = '{$this->_reg_ip}' and {$check_time}< reg_time"); } else { $this->_space_obj->setWhere(" {$check_time}< reg_time"); } $res = $this->_space_obj->query_keke_witkey_space(); if ($res) { return $_lang['this_IP_has_registered_notice']; } else { return true; } }