]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/RegisterThrottle/classes/Registration_ip.php
Merge commit 'refs/merge-requests/199' of git://gitorious.org/statusnet/mainline...
[quix0rs-gnu-social.git] / plugins / RegisterThrottle / classes / Registration_ip.php
index 431b6c0562816f49a1cc677d09a6e872353a15c2..9b28192311c037129bdcd1ad9ffdd14d6dc9ca0c 100644 (file)
  * 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