]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-beg.php
Extensions bitcoins/yacy added, new API functions for handling proxy/non-proxy added:
[mailer.git] / inc / extensions / ext-beg.php
index 73010788cb8afd59afdb7f8070412269ee385429..c9f38be2ae46db8c62ddf3832eda29fc1d4fc574 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -65,7 +65,7 @@ switch (getExtensionMode()) {
 `sid` VARCHAR(255) NOT NULL DEFAULT '',
 KEY (`userid`),
 PRIMARY KEY (`id`)
-) TYPE={?_TABLE_TYPE?}");
+) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci");
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -289,7 +289,7 @@ PRIMARY KEY (`id`)
 `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
 `referal_url` TINYTEXT NOT NULL ,
 INDEX ( `userid` )
-) ENGINE = {?_TABLE_TYPE?} COMMENT = 'Recorded Referal URLs'");
+) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT = 'Recorded Referal URLs'");
 
                                // Add admin menu
                                addAdminMenuSql('user','list_beg_referal_urls','Bettel-Referals auflisten','Listet alle Bettellink-Aufrufe inklusive Referal-URL auf.','13');
@@ -303,13 +303,13 @@ INDEX ( `userid` )
        case 'modify': // When the extension got modified
                break;
 
-       case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
+       case 'test': // For testing purposes
                break;
 
        case 'init': // When extension is initialized
                // Remove old entries
-               $OLD = getConfig('beg_timeout');
-               if (getConfig('beg_userid_timeout') > $OLD) $OLD = getConfig('beg_userid_timeout');
+               $OLD = getBegTimeout();
+               if (getBegUseridTimeout() > $OLD) $OLD = getBegUseridTimeout();
                SQL_QUERY('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE `timeout` < (UNIX_TIMESTAMP() - ' . ($OLD + 60*60) . ')', __FILE__, __LINE__);
 
                // Check for beg rallye is active and send mails out