Cosmetic changes to RegisterThrottle

This commit is contained in:
Mikael Nordfeldth
2014-03-07 21:01:03 +01:00
parent a35bf227fb
commit 326ad9376e
2 changed files with 7 additions and 13 deletions

View File

@@ -27,11 +27,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if (!defined('STATUSNET')) {
exit(1);
}
require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Data class for storing IP addresses of new registrants.
@@ -46,7 +42,7 @@ class Registration_ip extends Managed_DataObject
{
public $__table = 'registration_ip'; // table name
public $user_id; // int(4) primary_key not_null
public $ipaddress; // varchar(15)
public $ipaddress; // varchar(45)
public $created; // datetime() not_null
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP