if (function_exists('CREATE_TIME_SELECTIONS')) {
$PURGE = $_CONFIG['auto_purge'];
} else {
- $PURGE = $_CONFIG['auto_purge'] * 24 * 60 * 60;
+ $PURGE = $_CONFIG['auto_purge'] * $_CONFIG['one_day'];
}
// Init variables
define('VERSION', "v0.2.1");
define('AUTHOR' , "Roland Häder");
define('TITLE', "MXChange - Mail Exchange");
-define('COPY', "© 2003 - 2008, by <A href=\"http://www.mxchange.org\" target=\"_blank\" rel=\"external\" title=\"{!TITLE!} {!VERSION!}\">Roland Häder</A>");
+define('COPY', "© 2003 - 2008, by Roland Häder");
// CFG: ERROR_REPORTING
@error_reporting(0);
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "581");
+define('CURR_SVN_REVISION', "582");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
//
// Debugging
//
- //$fp = fopen(PATH."inc/cache/escape_debug.log", 'a') or mxchange_die("Cannot write debug.log!");
- //fwrite($fp, $file."(".$line."): ".str_replace("\r", "", str_replace("\n", " ", $eval))."\n");
- //fclose($fp);
+ //* DEBUG: */ $fp = fopen(PATH."inc/cache/escape_debug.log", 'a') or mxchange_die("Cannot write debug.log!");
+ //* DEBUG: */ fwrite($fp, $file."(".$line."): ".str_replace("\r", "", str_replace("\n", " ", $eval))."\n");
+ //* DEBUG: */ fclose($fp);
+
+ // Run the code
@eval($eval);
+
// Was the eval() command fine?
if (empty($query)) {
// Something went wrong?
break;
case "0.0.5": // SQL queries for v0.0.5
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD active_limit BIGINT(20) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD active_limit BIGINT(20) UNSIGNED NOT NULL DEFAULT 10";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_active','Aktiv-Liste','Einstellungen an der Aktiv-Liste (<STRONG>Heute Online</STRONG> im Gastbereich) vornehmen.', 8)";
// Update notes (these will be set as task text!)
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_admins_acls";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_admins_acls (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-admin_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+admin_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
action_menu VARCHAR(255) NOT NULL DEFAULT '',
what_menu VARCHAR(255) NOT NULL DEFAULT '',
access_mode ENUM('deny','allow') NOT NULL DEFAULT 'deny',
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_admins_mails";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_admins_mails (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-admin_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+admin_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
mail_template VARCHAR(255) NOT NULL,
KEY (admin_id),
PRIMARY KEY (id)
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD ap_unconfirmed_time BIGINT(20) UNSIGNED NOT NULL DEFAULT '432000'";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_autopurge','Auto-Löschung','Automatisch inaktive oder nicht bestätigte Accounts löschen.','12')";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('user','list_autopurge','Inaktive finden','Lassen Sie sich vor dem täglichen Reset anzeigen, welche Mitglieder als inaktiv erkannt werden und welche gelöscht werden.','10')";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD ap_notified BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD ap_notified BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Automatisches Lö:schen von inaktiven bzw. nicht bestätigten Accounts hinzugefügt.";
case "0.1.9": // SQL queries for v0.1.9
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD autopurge_tasks ENUM('Y','N') NOT NULL DEFAULT 'Y'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD ap_tasks_time BIGINT(20) UNSIGNED NOT NULL DEFAULT '".(60*60*24*7)."'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD ap_tasks_time BIGINT(20) UNSIGNED NOT NULL DEFAULT '".($_CONFIG['one_day']*7)."'";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Bereinigung von zu löschenden Aufgaben klappt wieder. Zeitlimit für genanntes kann eingestellt werden (Default = 7 Tage).<br /><br /><U>Bitte aktualisieren Sie auch die Admin-Templates!</U>";
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bank_accounts";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bank_accounts (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-uid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-account_created BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-account_locked BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+uid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+account_created BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+account_locked BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
locked_reason TINYTEXT,
status ENUM('NEW','ACTIVE','LOCKED') NOT NULL DEFAULT 'NEW',
-account_balance DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
+account_balance DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
output_mode ENUM('LOGIN','EMAIL','DISABLED'),
pin VARCHAR(50) NOT NULL DEFAULT '',
tan_mode ENUM('NORMAL','INDEXED'),
tan_list_status ENUM('PENDING','ACTIVE','INVALID','LOCKED') NOT NULL DEFAULT 'PENDING',
tan_key VARCHAR(50) NOT NULL DEFAULT '',
-month_transfered BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+month_transfered BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
last_tan VARCHAR(5) NOT NULL DEFAULT '00000',
-last_tan_stamp BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+last_tan_stamp BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
last_tan_purpose TINYTEXT,
account_type ENUM('CHECK','SAVING') NOT NULL DEFAULT 'CHECK',
-overdraft_credit DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
+overdraft_credit DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
PRIMARY KEY (id),
UNIQUE KEY (pin),
INDEX `uid_type` (uid, account_type),
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bank_transfers";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bank_transfers (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-to_account_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-from_account_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-points_amount DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
+to_account_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+from_account_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+points_amount DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
day_bookkeeping CHAR(4) NOT NULL DEFAULT '0000',
day_available CHAR(4) NOT NULL DEFAULT '0000',
transfer_purpose TINYTEXT,
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
title VARCHAR(255) NOT NULL DEFAULT '',
description TINYTEXT,
-account_fee DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-free_transfers INT(7) UNSIGNED NOT NULL DEFAULT '0',
-transfer_fee DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
+account_fee DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+free_transfers INT(7) UNSIGNED NOT NULL DEFAULT 0,
+transfer_fee DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
available TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
output_system_mode ENUM('LOGIN','EMAIL','DISABLED'),
package_active ENUM('Y','N') NOT NULL DEFAULT 'N',
-free_months_no_fee TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
-interest_plus FLOAT(7,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-interest_minus FLOAT(7,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-first_payment DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-free_account_income DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
+free_months_no_fee TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
+interest_plus FLOAT(7,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+interest_minus FLOAT(7,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+first_payment DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+free_account_income DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
free_account_stuff TINYTEXT null,
-tan_lock TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
+tan_lock TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (id)
) TYPE=MyISAM";
// free_account_stuff will be a list of columns of the table _bank_packages
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bank_tanlist";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bank_tanlist (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-idx TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
-account_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+idx TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
+account_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
tan VARCHAR(50) NOT NULL DEFAULT '',
used ENUM('Y','N') NOT NULL DEFAULT 'N',
PRIMARY KEY (id),
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_guest_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','beg','{!POINTS!} erbetteln!',4,'Y','Y')";
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_member_menu` (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','beg','Ihr Bettel-Link',6,'Y','Y')";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT '600'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_uid_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT '1800'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00100'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_uid_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT 1800";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00100";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "DROP TABLE IF EXISTS `"._MYSQL_PREFIX."_beg_ips`";
$SQLs[] = "CREATE TABLE `"._MYSQL_PREFIX."_beg_ips` (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
remote_ip VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
timeout VARCHAR(10) NOT NULL DEFAULT '',
KEY (userid),
break;
case "0.0.6": // SQL queries for v0.0.6
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Ein Mitgliedsaccount (empfehlenswert ist Ihr eigenes!) kann zum Abbuchen der {!POINTS!} verwendet werden. Template <U>admin_config_beg.tpl</U> (und pro!) nicht vergessen, zu aktualisieren.";
break;
case "0.0.8": // SQL queries for v0.0.8
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_ip_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT '1800'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_ip_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT 1800";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Zeitsperre gegen die selbe IP-Nummer hinzugefügt.";
case "0.1.2":
// SQL queries for v0.1.2
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_mode ENUM('DIRECT','REF') NOT NULL DEFAULT 'REF'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_ranks TINYINT(3) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_ranks TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_active ENUM('Y','N') NOT NULL DEFAULT 'N'";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_rallye ENUM('Y','N') NOT NULL DEFAULT 'N'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_points DOUBLE(21,5) NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_points DOUBLE(21,5) NOT NULL DEFAULT 0.00000";
$VIS = "N"; $LOCKED = "Y";
if (EXT_IS_ACTIVE("beg")) { $VIS = "Y"; $LOCKED = "N"; }
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_member_menu` (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('main','beg2','Bettel-Rallye','".$VIS."','".$LOCKED."','7')";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_ral_en_notify ENUM('Y','N') NOT NULL DEFAULT 'N'";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_ral_di_notify ENUM('Y','N') NOT NULL DEFAULT 'N'";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_new_mem_notify ENUM('Y','N') NOT NULL DEFAULT 'N'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_notify_bonus DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_notify_bonus DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD beg_notify_wait BIGINT(20) UNSIGNED NOT NULL DEFAULT '30'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_ral_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_ral_en_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_ral_di_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_ral_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_ral_en_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` ADD beg_ral_di_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Die Mitglieder können nun optional automatisch über eine aktivierte und/oder deaktivierte Bettel-Rallye informiert werden. Beide Benachrichtigungen können Sie unter <STRONG>Einstellungen --> Bettel-Link/-rallye</STRONG> seperat ein- und ausschalten! Zudem ist eine Sperre gegen eingeloggte Mitglieder eingebaut, die das Klicken auf den eigenen Bettel-Link etwas erschweren soll.";
{
case "register": // Do stuff when installation is running (modules.php?module=admin&action=login is called)
// SQL commands to run
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD birthday_sent VARCHAR(10) NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD birthday_sent VARCHAR(10) NOT NULL DEFAULT 0";
break;
case "remove": // Do stuff when removing extension
break;
case "0.2": // SQL queries for v0.2
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD birthday_points BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD birthday_points BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_user_birthday";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_user_birthday (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-points BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+points BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
chk_value VARCHAR(255) NOT NULL DEFAULT '',
KEY(userid),
PRIMARY KEY(id)
case "0.3.9": // SQL queries for v0.3.9
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_user_data` CHANGE `birth_day` `birth_day` SMALLINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT '01',
CHANGE `birth_month` `birth_month` SMALLINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT '01',
-CHANGE `birth_year` `birth_year` SMALLINT(4) UNSIGNED ZEROFILL NOT NULL DEFAULT '1970'";
+CHANGE `birth_year` `birth_year` SMALLINT(4) UNSIGNED ZEROFILL NOT NULL DEFAULT 1970";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Datenbankspalten umgestellt auf SMALLINT() UNSIGNED ZEROFILL.";
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bonus";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bonus (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-cat_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+cat_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
subject VARCHAR(255) NOT NULL DEFAULT '',
text LONGBLOB NOT NULL,
receivers LONGBLOB NOT NULL,
-points BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-time TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
+points BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+time TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,
data_type ENUM('NEW','QUEUE','SEND') NOT NULL DEFAULT 'NEW',
-timestamp VARCHAR(10) NOT NULL DEFAULT '0',
+timestamp VARCHAR(10) NOT NULL DEFAULT 0,
url VARCHAR(255) NOT NULL DEFAULT '',
-target_send BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-mails_sent BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+target_send BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+mails_sent BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
KEY(cat_id),
PRIMARY KEY (id)
)TYPE=MyISAM";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_links MODIFY link_type ENUM('NORMAL','BONUS') NOT NULL DEFAULT 'NORMAL'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_links ADD bonus_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_links ADD bonus_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_links ADD INDEX (bonus_id)";
// Run this SQL when html or html_mail extension is installed
case "0.2.1": // SQL queries for v0.2.1
$SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_bonus' LIMIT 1";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu VALUES (NULL,'setup','config_bonus','Bonus-{!POINTS!}',8,'Richten Sie Bonus-{!POINTS!} ein, die beim x'ten Klick auf die Mail verbucht werden sollen. Beispiele: Der 1. Klick sollte mehr {!POINTS!} zusätzlich bekommen, als der 10. Klick.')";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD login_bonus DOUBLE(20,3) NOT NULL DEFAULT '10.000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD turbo_bonus DOUBLE(20,3) NOT NULL DEFAULT '100.000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD login_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT '86400'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD login_bonus DOUBLE(20,3) NOT NULL DEFAULT 10.000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD turbo_bonus DOUBLE(20,3) NOT NULL DEFAULT 100.000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD login_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT ".$_CONFIG['one_day']."";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD turbo_rates VARCHAR(255) NOT NULL DEFAULT '50;20;10'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_ranks TINYINT(3) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_ranks TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
// Use actual month for this update
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD login_bonus DOUBLE(20,3) NOT NULL DEFAULT '0.000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD turbo_bonus DOUBLE(20,3) NOT NULL DEFAULT '0.000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD login_bonus DOUBLE(20,3) NOT NULL DEFAULT 0.000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD turbo_bonus DOUBLE(20,3) NOT NULL DEFAULT 0.000";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_stats ADD bonus_stats ENUM('Y','N') NOT NULL DEFAULT 'N'";
$SQLs[] = "UPDATE "._MYSQL_PREFIX."_extensions SET ext_has_css='Y' WHERE ext_name='bonus' AND ext_has_css='N' LIMIT 1";
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_bonus_turbo";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_bonus_turbo (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-mail_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-bonus_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-level BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+mail_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+bonus_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+level BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
points DOUBLE(20,3) NOT NULL DEFAULT '0.000',
-timemark VARCHAR(32) NOT NULL DEFAULT '0',
+timemark VARCHAR(32) NOT NULL DEFAULT 0,
PRIMARY KEY(id),
KEY mail_id (mail_id),
KEY bonus_id (bonus_id),
case "0.2.8": // SQL queries for v0.2.8
$SQLs[] = "UPDATE "._MYSQL_PREFIX."_bonus SET timestamp='0' WHERE timestamp='0000000000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_bonus_turbo CHANGE points points DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config CHANGE turbo_bonus turbo_bonus DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config CHANGE login_bonus login_bonus DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE turbo_bonus turbo_bonus DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE login_bonus login_bonus DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_bonus_turbo CHANGE points points DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config CHANGE turbo_bonus turbo_bonus DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config CHANGE login_bonus login_bonus DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE turbo_bonus turbo_bonus DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE login_bonus login_bonus DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "5 Nachkommastellen implementiert";
case "0.3.5": // SQL queries for v0.3.5
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_mode ENUM('UID','JACKPOT','ADD') NOT NULL DEFAULT 'ADD'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Der Login-Bonus Aktiv-Bonus (= Klick-Bonus) können nun zuerst von einem Mitgliederaccount (das sollte Ihres sein!), vom Jackpot abgezogen oder einfach dazuadiert werden.";
break;
case "0.4.0": // SQL queries for v0.4.0
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT '".($_CONFIG['one_day']*7)."'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_lines BIGINT(20) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT ".($_CONFIG['one_day']*7)."";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_lines BIGINT(20) UNSIGNED NOT NULL DEFAULT 10";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Automatisches Löschen von Turbo-Bonus-Zeilen ("._MYSQL_PREFIX."_bonus_turbo) und begrenzte Anzahl von Einträgen hinzugefügt.";
break;
case "0.4.4": // SQL queries for v0.4.4
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_order DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '15.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_ref DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '100.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_order DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 15.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_ref DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 100.00000";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_stats DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '5.00000'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_active ENUM('Y','N') NOT NULL DEFAULT 'Y'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_order DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_ref DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_stats DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_order DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_ref DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_stats DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_stats ADD is_stats ENUM('Y','N') NOT NULL DEFAULT 'N'";
// Update notes (these will be set as task text!)
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_en_notify ENUM('Y','N') NOT NULL DEFAULT 'N'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_di_notify ENUM('Y','N') NOT NULL DEFAULT 'N'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_new_mem_notify ENUM('Y','N') NOT NULL DEFAULT 'N'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_notify_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_notify_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD bonus_notify_wait BIGINT(20) UNSIGNED NOT NULL DEFAULT '30'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_ral_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_ral_en_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_ral_di_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_ral_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_ral_en_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD bonus_ral_di_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Optionale automatische Benachrichtigung über aktivierte und/oder deaktivierte Aktiv-Rallye einstellbar.";
// SQL commands to run
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD cache_update BIGINT(20) UNSIGNED NOT NULL DEFAULT '3600'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD cache_path VARCHAR(255) NOT NULL DEFAULT 'cache/'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD cache_tested tinyint(1) NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD cache_tested tinyint(1) NOT NULL DEFAULT 0";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_cache','Cache-Einstellungen','Update-Interval des Caches usw. können Sie hier ändern.', 9)";
break;
break;
case "0.0.7": // SQL queries for v0.0.7
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD db_hits BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD cache_hits BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD db_hits BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD cache_hits BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('stats','cache_stats','DB-Cache','Auf Cache und gesamte Datenbank registrierte Anfragen anzeigen.', 4)";
// Update notes (these will be set as task text!)
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('country','list_country','Verwalten','Hinzufügen, Ändern und Löschen von Ländercodes.', 1)";
// Add entry to user table
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD country_code BIGINT(20) UNSIGNED NOT NULL DEFAULT '1'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD country_code BIGINT(20) UNSIGNED NOT NULL DEFAULT 1";
break;
case "remove": // Do stuff when removing extension
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_doubler";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_doubler (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-refid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+refid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
remote_ip VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
timemark VARCHAR(10) NOT NULL DEFAULT '',
completed ENUM('Y','N') NOT NULL DEFAULT 'N',
// --- SETTINGS ---
//
// Minimum points to double
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_min DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '100.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_min DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 100.00000";
// Maximum points to double
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_max DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '10000.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_max DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 10000.00000";
// Points left on users account after doubling
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_left BIGINT(20) UNSIGNED NOT NULL DEFAULT '1000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_left BIGINT(20) UNSIGNED NOT NULL DEFAULT 1000";
// Charge for doubling points which goes to the webmaster (shreddered in fact!)
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_charge FLOAT(7,5) UNSIGNED NOT NULL DEFAULT '0.030'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_charge FLOAT(7,5) UNSIGNED NOT NULL DEFAULT 0.03000";
// Referal percents
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_ref FLOAT(7,5) UNSIGNED NOT NULL DEFAULT '0.020'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_ref FLOAT(7,5) UNSIGNED NOT NULL DEFAULT 0.02000";
// Shall I use the jackpot to take points from? (Y/N, default=Y)
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_jackpot ENUM('Y','N') NOT NULL DEFAULT 'Y'";
// A user account to take points from (default: 0->none)
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Total payed out points from your doublers
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000";
// Sending mode of mails (immediately/daily reset)
// --> This also means who fast the doubled points will be payed out!
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_send_mode ENUM('DIRECT','RESET') NOT NULL DEFAULT 'DIRECT'";
// Timeout for entries to be purged (default: one week)
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT '".(60*60*24*7)."'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT ".($_CONFIG['one_day']*7)."";
// Number of newest entries to display
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_display_new TINYINT(3) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_display_new TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
// Number of entries which will be payed out soon
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_display_pay TINYINT(3) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_display_pay TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
// Number of entries which are already payed out
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_display_old TINYINT(3) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_display_old TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
// Points used by every member
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD doubler_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD doubler_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000";
// Counter for usage of the doubler
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_counter BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_counter BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
//
// --- MENU SYSTEMS ---
case "0.0.2": // SQL queries for v0.0.2
// Total used points
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_used DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_used DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Gebühr wird vom Verdoppler-Pott abgezogen.";
break;
case "0.0.6": // SQL queries for v0.0.6
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_max_sent TINYINT(3) UNSIGNED NOT NULL DEFAULT '1'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_group_sent TINYINT(3) UNSIGNED NOT NULL DEFAULT '1'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_max_sent TINYINT(3) UNSIGNED NOT NULL DEFAULT 1";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_group_sent TINYINT(3) UNSIGNED NOT NULL DEFAULT 1";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD doubler_sent_all ENUM('Y','N') NOT NULL DEFAULT 'Y'";
// Update notes (these will be set as task text!)
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_user_holidays";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_user_holidays (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-holiday_start VARCHAR(10) NOT NULL DEFAULT '0',
-holiday_end VARCHAR(10) NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+holiday_start VARCHAR(10) NOT NULL DEFAULT 0,
+holiday_end VARCHAR(10) NOT NULL DEFAULT 0,
comments LONGBLOB NOT NULL,
KEY (userid),
PRIMARY KEY(id)
case "0.1.3": // SQL queries for v0.1.3
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD holiday_active ENUM('Y','N') NOT NULL DEFAULT 'N'";
$SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_max_receive WHERE value='0' LIMIT 1";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD holiday_lock BIGINT(20) UNSIGNED NOT NULL DEFAULT '".(60*60*24*2)."'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD holiday_lock BIGINT(20) UNSIGNED NOT NULL DEFAULT '".($_CONFIG['one_day']*2)."'";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Die Mitglieder-Accounts werden nicht mehr gesperrt, sondern nur auf <STRONG>Urlaub</STRONG> geschaltet. Lassen Sie sich nicht davon verwirren, dass sie "freigegeben" sind!";
break;
case "0.1.6": // SQL queries for v0.1.6
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD holiday_activated BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD holiday_activated BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Fehlende Tabellenspalte hinzugefügt.";
break;
case "0.0.7": // SQL queries for v0.0.7
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD mt_start BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD mt_start BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD mt_stage BIGINT(20) UNSIGNED NOT NULL DEFAULT '500'";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_mediadata','Mediendaten','Stellen Sie allgemeine Einstellungen zu den Mediendaten ein.', 10)";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('main','newsletter','Newsletter-Empfang','N','Y', 10)";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD nl_charge FLOAT(10,2) UNSIGNED NOT NULL DEFAULT '5.00'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD nl_receive ENUM('Y','N') NOT NULL DEFAULT 'Y'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD nl_until VARCHAR(10) NOT NULL DEFAULT '0'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD nl_timespan VARCHAR(10) NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD nl_until VARCHAR(10) NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD nl_timespan VARCHAR(10) NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Vor der eigentlichen Freigabe dieser Erweiterungen habe ich sie versehendlich im Archiv mit auf den Server hochgeladen. Diese Version fügt die bereits angekündigte Funktionalitäten, wie zum Beispiel das Einstellen der Abschaltgebühr.";
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
sid VARCHAR(32) NOT NULL DEFAULT '',
ip VARCHAR(15) NOT NULL DEFAULT '',
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-refid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+refid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
module VARCHAR(255) NOT NULL DEFAULT '',
action VARCHAR(255) NOT NULL DEFAULT '',
what VARCHAR(255) NOT NULL DEFAULT '',
is_admin ENUM('Y','N') NOT NULL DEFAULT 'N',
is_member ENUM('Y','N') NOT NULL DEFAULT 'N',
-timestamp VARCHAR(10) NOT NULL DEFAULT '0',
+timestamp VARCHAR(10) NOT NULL DEFAULT 0,
PRIMARY KEY(id),
KEY(userid),
KEY(refid)
case "0.1.1": // SQL queries for v0.1.1
$SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_order' LIMIT 1";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (action, what, title, sort, descr) VALUES ('setup','config_order','Mailbuchungsseite','7','Einstellungen am Mailbuchungsformular.')";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD mail_orders BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD mail_orders BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Maximale Mailbuchung vervollständigt (Admin-Bereich und im Buchungsformular selber).";
break;
case "0.2.3": // SQL queries for v0.2.3
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_min BIGINT(20) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD order_min BIGINT(20) UNSIGNED NOT NULL DEFAULT 10";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Minimum an Empfänger pro Mailbuchung einstellbar. Standart: 10 Empfänger";
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_user_payouts";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_user_payouts (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
payout_total DOUBLE(22,3) UNSIGNED NOT NULL DEFAULT '0.000',
target_account VARCHAR(255) NOT NULL DEFAULT '',
target_bank VARCHAR(255) NOT NULL DEFAULT '',
-payout_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-payout_timestamp VARCHAR(10) NOT NULL DEFAULT '0',
+payout_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+payout_timestamp VARCHAR(10) NOT NULL DEFAULT 0,
status ENUM('NEW','ACCEPTED','REJECTED') NOT NULL DEFAULT 'NEW',
KEY(userid),
KEY(payout_id),
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
type VARCHAR(255) NOT NULL DEFAULT '',
rate DOUBLE(22,3) UNSIGNED NOT NULL DEFAULT '0.000',
-min_points BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+min_points BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY(id)
) TYPE=MyISAM";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_payouts','Auszahlungen','Auszahlungsarten einstellen, neu anlegen oder löschen.','15')";
break;
case "0.2.1": // SQL queries for v0.2.1
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_payouts CHANGE payout_total payout_total DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_payout_types CHANGE rate rate DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_payouts CHANGE payout_total payout_total DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_payout_types CHANGE rate rate DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Problem mit Speicherung der Einstellungen beseitigt.";
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_user_primera";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_user_primera (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
primera_account VARCHAR(255) NOT NULL DEFAULT '',
-primera_amount DOUBLE(22,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-primera_timestamp VARCHAR(10) NOT NULL DEFAULT '0',
+primera_amount DOUBLE(22,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+primera_timestamp VARCHAR(10) NOT NULL DEFAULT 0,
primera_type ENUM('IN','OUT','FAILED') NOT NULL DEFAULT 'FAILED',
primera_api_message TINYTEXT,
primera_api_status VARCHAR(255) NULL DEFAULT NULL,
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_rallye_users";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_rallye_data (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-admin_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+admin_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
title VARCHAR(255) NOT NULL DEFAULT '',
descr LONGBLOB NOT NULL,
template VARCHAR(255) NOT NULL DEFAULT '',
-start_time VARCHAR(10) NOT NULL DEFAULT '0',
-end_time VARCHAR(10) NOT NULL DEFAULT '0',
+start_time VARCHAR(10) NOT NULL DEFAULT 0,
+end_time VARCHAR(10) NOT NULL DEFAULT 0,
auto_add_new_user ENUM('Y','N') NOT NULL DEFAULT 'Y',
is_active ENUM('Y','N') NOT NULL DEFAULT 'N',
send_notify ENUM('Y','N') NOT NULL DEFAULT 'Y',
) TYPE=MyISAM";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_rallye_prices (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-rallye_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-price_level BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-points BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+rallye_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+price_level BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+points BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
info LONGBLOB NOT NULL,
KEY (rallye_id),
PRIMARY KEY(id)
) TYPE=MyISAM";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_rallye_users (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-rallye_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-refs BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+rallye_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+refs BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
KEY (rallye_id),
KEY (userid),
PRIMARY KEY(id)
break;
case "0.1.0": // SQL queries for v0.2.1
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_rallye_users CHANGE curr_points curr_points DOUBLE(23,5) NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_rallye_users CHANGE curr_points curr_points DOUBLE(23,5) NOT NULL DEFAULT 0.00000";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "5 Nachkommastellen implementiert.";
break;
case "0.2.0": // SQL queries for v0.2.0
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_rallye_data ADD min_users BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_rallye_data ADD min_users BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_rallye_data ADD min_prices BIGINT(20) UNSIGNED NOT NULL DEFAULT '3'";
// Update notes (these will be set as task text!)
`level` smallint(6) NOT NULL DEFAULT 0,
`refid` bigint(20) NOT NULL DEFAULT 0,
`refback` float(4,1) NOT NULL DEFAULT 0.0,
-`points` FLOAT( 20,5) DEFAULT '0.00000' NOT NULL,
+`points` FLOAT( 20,5) DEFAULT 0.00000 NOT NULL,
PRIMARY KEY (`id`),
UNIQUE `user_refid` (`userid`,`level`,`refid`),
KEY (`level`),
url VARCHAR(255) NOT NULL DEFAULT '',
password VARCHAR(255) NOT NULL DEFAULT '',
remote_addr VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',
-sponsor_created VARCHAR(10) NOT NULL DEFAULT '0',
-last_online VARCHAR(10) NOT NULL DEFAULT '0',
-last_change VARCHAR(10) NOT NULL DEFAULT '0',
+sponsor_created VARCHAR(10) NOT NULL DEFAULT 0,
+last_online VARCHAR(10) NOT NULL DEFAULT 0,
+last_change VARCHAR(10) NOT NULL DEFAULT 0,
status ENUM('UNCONFIRMED','PENDING','CONFIRMED','LOCKED') NOT NULL DEFAULT 'UNCONFIRMED',
receive_warnings ENUM('Y','N') NOT NULL DEFAULT 'Y',
warning_interval BIGINT(20) UNSIGNED NOT NULL DEFAULT '".($_CONFIG['one_day']*7)."',
-points_amount DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-points_used DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-refid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-ref_count BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+points_amount DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+points_used DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+refid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+ref_count BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
hash VARCHAR(32) NOT NULL DEFAULT '',
last_pay FLOAT(7,2) UNSIGNED NOT NULL DEFAULT '0.00',
last_curr VARCHAR(255) NOT NULL DEFAULT '€',
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_orders";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_orders (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-aid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-regid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-payid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-pay_count BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+aid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+regid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+payid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+pay_count BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
pay_status ENUM('PENDING','PAYED','UNPAYED','DELETED') NOT NULL DEFAULT 'PENDING',
-pay_ordered VARCHAR(10) NOT NULL DEFAULT '0',
-pay_done VARCHAR(10) NOT NULL DEFAULT '0',
+pay_ordered VARCHAR(10) NOT NULL DEFAULT 0,
+pay_done VARCHAR(10) NOT NULL DEFAULT 0,
KEY (payid),
KEY (regid),
KEY (aid),
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_paytypes (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
pay_name VARCHAR(255) NOT NULL DEFAULT '',
-pay_rate DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-pay_min_count BIGINT(20) UNSIGNED NOT NULL DEFAULT '1',
+pay_rate DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+pay_min_count BIGINT(20) UNSIGNED NOT NULL DEFAULT 1,
pay_currency VARCHAR(255) NOT NULL DEFAULT '€',
PRIMARY KEY(id)
)TYPE=MyISAM";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_action_convert (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
ext_name VARCHAR(255) NOT NULL DEFAULT 'sponsor',
-conv_rate BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+conv_rate BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
conv_name VARCHAR(255) NOT NULL DEFAULT 'Mails',
KEY (ext_name),
PRIMARY KEY(id)
what VARCHAR(255) NULL DEFAULT NULL,
title VARCHAR(255) NOT NULL DEFAULT '',
active ENUM('Y','N') NOT NULL DEFAULT 'N',
-sort BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+sort BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
KEY(what),
KEY(action),
PRIMARY KEY(id)
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_registry";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_registry (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-aid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+aid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
ext_name VARCHAR(255) NOT NULL DEFAULT 'sponsor',
is_active ENUM('Y','N') NOT NULL DEFAULT 'N',
-stamp_added VARCHAR(10) NOT NULL DEFAULT '0',
+stamp_added VARCHAR(10) NOT NULL DEFAULT 0,
KEY(ext_name),
KEY(aid),
PRIMARY KEY(id)
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_urls";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_urls (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
url VARCHAR(255) NOT NULL DEFAULT 'http://',
title VARCHAR(255) NOT NULL DEFAULT '',
-clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
status ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING',
KEY(sponsorid),
PRIMARY KEY(id)
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_banner";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_banner (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
url VARCHAR(255) NOT NULL DEFAULT 'http://',
alternate VARCHAR(255) NOT NULL DEFAULT '',
width INT(7) NOT NULL DEFAULT '468',
height INT(7) NOT NULL DEFAULT '60',
-views BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+views BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
status ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING',
KEY(sponsorid),
PRIMARY KEY(id)
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_campaigns";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_campaigns (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-aid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+aid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
campaign_name VARCHAR(255) NOT NULL DEFAULT '',
-campaign_start VARCHAR(10) NOT NULL DEFAULT '0',
-campaign_end VARCHAR(10) NOT NULL DEFAULT '0',
-campaign_amount DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '0.00000',
+campaign_start VARCHAR(10) NOT NULL DEFAULT 0,
+campaign_end VARCHAR(10) NOT NULL DEFAULT 0,
+campaign_amount DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
campaign_expired ENUM('Y','N') NOT NULL DEFAULT 'N',
campaign_locked ENUM('Y','N') NOT NULL DEFAULT 'Y',
-campaign_ended VARCHAR(10) NOT NULL DEFAULT '0',
+campaign_ended VARCHAR(10) NOT NULL DEFAULT 0,
locked_reason tinyblob,
-locked_timestamp VARCHAR(10) NOT NULL DEFAULT '0',
+locked_timestamp VARCHAR(10) NOT NULL DEFAULT 0,
status ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING',
KEY(aid),
KEY(sponsorid),
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_campaign_assigns";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_campaign_assigns (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-campaignid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-urlid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-bannerid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-views BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+campaignid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+urlid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+bannerid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+views BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
KEY(bannerid),
KEY(urlid),
KEY(campaignid),
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_sponsor_display_data";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_sponsor_display_data (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+sponsorid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
data_row VARCHAR(255) NOT NULL DEFAULT '',
display ENUM('Y','N') NOT NULL DEFAULT 'N',
KEY(sponsorid),
//
// General configuration stuff
//
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD sponsor_ref_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '100.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD sponsor_min_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT '1000.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD sponsor_ref_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 100.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD sponsor_min_points DOUBLE(20,5) UNSIGNED NOT NULL DEFAULT 1000.00000";
// Load CSS file
$EXT_CSS = "Y";
break;
case "0.0.2": // SQL queries for v0.0.2
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config CHANGE auto_purge auto_purge BIGINT(20) UNSIGNED NOT NULL DEFAULT '1209600'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config CHANGE auto_purge auto_purge BIGINT(20) UNSIGNED NOT NULL DEFAULT ".($_CONFIG['one_day']*14)."";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "In der Tabelle <STRONG>"._MYSQL_PREFIX."_config</STRONG> musste die Spalte <STRONG>auto_purge</STRONG> (autom. Löschen von Bestätigungsmails angepasst werden (war auf dem Testsystem auf tiny(4) gesetzt.)";
break;
case "0.0.4": // SQL queries for v0.0.4
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD mails_page BIGINT(20) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD mails_page BIGINT(20) UNSIGNED NOT NULL DEFAULT 10";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Anzahl Mails pro Seite in <STRONG>EMail-Details ansehen</STRONG> und <STRONG>EMail-Archiv</STRONG> hinzugefügt.";
case "0.1.2": // SQL queries for v0.1.2
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_refid','Standart-Ref-ID','Stellen Sie hier die User-ID ein, die genommen werden soll, wenn der Gast n icht per Referal-Link Ihren Mailtausch aufgerufen hat.', 7)";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD def_refid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD def_refid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Standart Referal-ID kann per Admin-Bereich eingestellt werden (war vorher nur in modules.php und index.php direkt eingebbar.)";
break;
case "0.2.0": // SQL queries for v0.2.0
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_jackpot CHANGE points points DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_jackpot CHANGE points points DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_payments CHANGE payment payment DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_payments CHANGE price price DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_payments CHANGE payment payment DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_payments CHANGE price price DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE used_points used_points DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_points CHANGE points points DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_points CHANGE locked_points locked_points DOUBLE(22,5) NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE used_points used_points DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_points CHANGE points points DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_points CHANGE locked_points locked_points DOUBLE(22,5) NOT NULL DEFAULT 0.00000";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "5 Nachkommastellen implementiert";
break;
case "0.2.5": // SQL queries for v0.2.5
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE receive_mails receive_mails BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE max_mails max_mails BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE receive_mails receive_mails BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data CHANGE max_mails max_mails BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Spalten <U>max_mails</U> und <U>receive_mails</U> auf BIGINT(20) gesetzt.";
case "0.2.7": // SQL queries for v0.2.7
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_member_menu (`action`,`what`,`title`,`sort`,`visible`,`locked`) VALUES ('main','themes','Designs', 6,'Y','N')";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD curr_theme VARCHAR(255) NOT NULL DEFAULT 'default'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD stats_limit BIGINT(20) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD stats_limit BIGINT(20) UNSIGNED NOT NULL DEFAULT 10";
$SQLs[] = "UPDATE "._MYSQL_PREFIX."_admin_menu SET `what`='config_stats' WHERE `what`='stats' LIMIT 1";
// Update notes (these will be set as task text!)
break;
case "0.2.8": // SQL queries for v0.2.8
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD last_login VARCHAR(10) NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD last_login VARCHAR(10) NOT NULL DEFAULT 0";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Letzter Login wird gespeichert, Cache wird bei installierter Cache-Erweiterung bei Sprachenänderung aufgefrischt.";
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
la_id VARCHAR(255) NOT NULL DEFAULT '',
la_title VARCHAR(255) NOT NULL DEFAULT '',
-la_posx BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-la_posy BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+la_posx BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+la_posy BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
UNIQUE KEY (la_id),
INDEX (la_posx),
INDEX (la_posy),
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_admin_menu_stats";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_admin_menu_stats (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-aid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+aid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
type ENUM('la','action','what') NOT NULL DEFAULT 'what',
-clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+clicks BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
INDEX (aid),
PRIMARY KEY (id)
) TYPE=MyISAM";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data MODIFY password VARCHAR(255) NOT NULL DEFAULT ''";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data MODIFY user_hash VARCHAR(255) NOT NULL DEFAULT ''";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_admins MODIFY password VARCHAR(255) NOT NULL DEFAULT ''";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD rand_no BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD rand_no BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD file_hash VARCHAR(255) NOT NULL DEFAULT ''";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD master_salt VARCHAR(255) NOT NULL DEFAULT ''";
$SQLs[] = "UPDATE "._MYSQL_PREFIX."_config SET rand_no=(ROUND(RAND() * 99999) + 100000) WHERE config=0 LIMIT 1";
case "0.4.3": // SQL queries for v0.4.3
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `proxy_host` VARCHAR(255) NOT NULL DEFAULT ''";
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `proxy_port` INT(5) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `proxy_port` INT(5) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `proxy_username` VARCHAR(255) NOT NULL DEFAULT ''";
$SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` ADD `proxy_password` VARCHAR(255) NOT NULL DEFAULT ''";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_proxy','Proxy-Einstellungen','Sollte Ihr Webserver sich hinter einem Proxy befinden, so können Sie hier MXChange so konfigurieren, dass es Updates durch diesen hindurch sucht!', 15)";
break;
case "0.5.2": // SQL queries for v0.5.2
- $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_refdepths` CHANGE `percents` `percents` FLOAT(8,5) NOT NULL DEFAULT '0.00000'";
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_refdepths` CHANGE `percents` `percents` FLOAT(8,5) NOT NULL DEFAULT 0.00000";
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Prozents&aum;tze können nun fünf Stelle hinter dem Komma sein.";
$SQLs[] = "DROP TABLE IF EXISTS `"._MYSQL_PREFIX."_surfbar_urls`";
$SQLs[] = "CREATE TABLE `"._MYSQL_PREFIX."_surfbar_urls` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`url` VARCHAR(255) NOT NULL DEFAULT '',
`last_salt` VARCHAR(255) NOT NULL DEFAULT '',
-`views_total` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-`views_max` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-`views_allowed` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+`views_total` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`views_max` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`views_allowed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`status` ENUM('PENDING','ACTIVE','LOCKED','STOPPED','REJECTED','DELETED','MIGRATED','DEPLETED') NOT NULL DEFAULT 'PENDING',
`registered` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_locked` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
`lock_reason` VARCHAR(255) NOT NULL DEFAULT '',
`reject_reason` VARCHAR(255) NOT NULL DEFAULT '',
+`fixed_reload` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY(`id`),
UNIQUE KEY `userid_url` (`userid`,`url`),
INDEX `status_userid` (`status`,`userid`),
$SQLs[] = "DROP TABLE IF EXISTS `"._MYSQL_PREFIX."_surfbar_locks`";
$SQLs[] = "CREATE TABLE `"._MYSQL_PREFIX."_surfbar_locks` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-`url_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`url_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`last_surfed` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(`id`),
-INDEX (`userid`),
+UNIQUE KEY `userid_url` (`userid`,`url_id`),
INDEX (`url_id`)
) TYPE=MyISAM COMMENT='Surfbar reload locks'";
$SQLs[] = "DROP TABLE IF EXISTS `"._MYSQL_PREFIX."_surfbar_salts`";
$SQLs[] = "CREATE TABLE `"._MYSQL_PREFIX."_surfbar_salts` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-`url_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`url_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`last_salt` VARCHAR(255) NOT NULL DEFAULT '',
PRIMARY KEY(`id`),
-INDEX (`userid`),
+UNIQUE KEY `userid_url` (`userid`,`url_id`),
INDEX (`url_id`)
) TYPE=MyISAM COMMENT='Surfbar last used salts'";
`count` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`last_online` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
-INDEX (`userid`,`url_id`)
+UNIQUE KEY `userid_url` (`userid`,`url_id`),
+INDEX (`url_id`)
) TYPE=MyISAM COMMENT='Surfbar Statistics'";
// Member actions pending on status
$SQLs[] = "DROP TABLE IF EXISTS `"._MYSQL_PREFIX."_surfbar_actions`";
$SQLs[] = "CREATE TABLE `"._MYSQL_PREFIX."_surfbar_actions` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`status` ENUM('PENDING','ACTIVE','LOCKED','STOPPED','REJECTED','DELETED','MIGRATED','DEPLETED') NOT NULL DEFAULT 'PENDING',
+`status` ENUM('PENDING','ACTIVE','LOCKED','STOPPED','REJECTED','DELETED','MIGRATED','DEPLETED') NULL DEFAULT NULL,
`action` ENUM('EDIT','DELETE','PAUSE','UNPAUSE','FRAMETEST','RETREAT','RESUBMIT','BOOKNOW') NULL DEFAULT NULL,
`new_status` ENUM('PENDING','ACTIVE','LOCKED','STOPPED','REJECTED','DELETED','MIGRATED','DEPLETED') NULL DEFAULT NULL,
PRIMARY KEY (`id`),
-INDEX (`status`)
+UNIQUE KEY `status_action` (`status`,`action`)
) TYPE=MyISAM COMMENT='Surfbar Member Actions'";
// Member actions
// SQL commands to run
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_guest_menu (`action`,`what`,`title`,`visible`,`locked`,`sort`) VALUES ('main','top10','TOP-10','Y','Y', 7)";
$SQLs[] = "INSERT INTO "._MYSQL_PREFIX."_admin_menu (`action`,`what`,`title`,`descr`,`sort`) VALUES ('setup','config_top10','TOP-10 Listen','Stellen Sie hier ein, wie lang die TOP-Listen sein sollen, also wie viele Plätze angezeigt werden sollen.', 8)";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD top10_max TINYINT(3) UNSIGNED NOT NULL DEFAULT '10'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD top10_max TINYINT(3) UNSIGNED NOT NULL DEFAULT 10";
// Load CSS file?
$EXT_CSS = "Y";
// Transfer from a member
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_user_transfers_in (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-from_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-points BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+from_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+points BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
reason VARCHAR(255) NOT NULL DEFAULT '',
-time_trans VARCHAR(14) NOT NULL DEFAULT '0',
+time_trans VARCHAR(14) NOT NULL DEFAULT 0,
trans_id VARCHAR(12) NOT NULL DEFAULT '',
KEY (userid),
KEY (from_uid),
// Transfers to a member
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_user_transfers_out (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-to_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-points BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+to_uid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+points BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
reason VARCHAR(255) NOT NULL DEFAULT '',
-time_trans VARCHAR(14) NOT NULL DEFAULT '0',
+time_trans VARCHAR(14) NOT NULL DEFAULT 0,
trans_id VARCHAR(12) NOT NULL DEFAULT '',
KEY (userid),
KEY (to_uid),
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD transfer_max BIGINT(20) UNSIGNED NOT NULL DEFAULT '50'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD transfer_age BIGINT(20) UNSIGNED NOT NULL DEFAULT '".($_CONFIG['one_day']*28)."'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD transfer_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT '".$_CONFIG['one_day']."'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD transfer_balance BIGINT(20) UNSIGNED NOT NULL DEFAULT '100'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD transfer_code BIGINT(20) UNSIGNED NOT NULL DEFAULT '5'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD transfer_balance BIGINT(20) UNSIGNED NOT NULL DEFAULT 100";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD transfer_code BIGINT(20) UNSIGNED NOT NULL DEFAULT 5";
// Add row(s) to user's data
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_user_data ADD opt_in ENUM('Y','N') NOT NULL DEFAULT 'N'";
$SQLs[] = "DROP TABLE IF EXISTS "._MYSQL_PREFIX."_user_wernis";
$SQLs[] = "CREATE TABLE "._MYSQL_PREFIX."_user_wernis (
id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
wernis_account VARCHAR(255) NOT NULL DEFAULT '',
-wernis_amount DOUBLE(22,5) UNSIGNED NOT NULL DEFAULT '0.00000',
-wernis_timestamp VARCHAR(10) NOT NULL DEFAULT '0',
+wernis_amount DOUBLE(22,5) UNSIGNED NOT NULL DEFAULT 0.00000,
+wernis_timestamp VARCHAR(10) NOT NULL DEFAULT 0,
wernis_type ENUM('IN','OUT','FAILED') NOT NULL DEFAULT 'FAILED',
wernis_api_message TINYTEXT,
wernis_api_status VARCHAR(255) NULL DEFAULT NULL,
// Confiuration
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_min_payout BIGINT(20) UNSIGNED NOT NULL DEFAULT '40000'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_min_withdraw BIGINT(20) UNSIGNED NOT NULL DEFAULT '5000'";
- $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0'";
+ $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_md5 VARCHAR(32) NOT NULL DEFAULT ''";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_url VARCHAR(255) NOT NULL DEFAULT 'http://www.wds66.com/api/'";
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_refid VARCHAR(6) NOT NULL DEFAULT ''";
define('LOCK_TIMESTAMP', "Sperrzeitpunkt");
define('EXTENSION', "Erweiterung");
define('MOD_REWRITE_ERROR', "Sie müssen mod_rewrite in Apache aktiviert haben um die Erweiterung rewrite nutzen zu können.");
+define('ADMIN_BUILD_STATUS_HANDLER', "Status-Handler");
define('MEMBER_MAIL_BONUS_CONFIRMED_ON', "Sie haben diese Bonusmail <span class=\"data\">%s</span> bestätigt.");
define('MEMBER_MAIL_NORMAL_CONFIRMED_ON', "Sie haben diese Klickmail <span class=\"data\">%s</span> bestätigt.");
// -----------------------------------------------------------------------------
//
// Admin has added an URL with given user id and so on
-function SURFBAR_ADMIN_ADD_URL ($url, $limit) {
+function SURFBAR_ADMIN_ADD_URL ($url, $limit, $reload) {
// Do some pre-checks
if (!IS_ADMIN()) {
// Not an admin
} elseif ("".($limit + 0)."" != "".$limit."") {
// Invalid amount entered
return false;
+ } elseif ("".($reload + 0)."" != "".$reload."") {
+ // Invalid amount entered
+ return false;
}
// Register the new URL
- return SURFBAR_REGISTER_URL($url, "0", "ACTIVE", "unlock", $limit);
+ return SURFBAR_REGISTER_URL($url, "0", "ACTIVE", "unlock", array('limit' => $limit, 'reload' => $reload));
}
// Admin unlocked an email so we can migrate the URL
function SURFBAR_ADMIN_MIGRATE_URL ($url, $uid) {
}
// Register the new URL
- return SURFBAR_REGISTER_URL($url, $GLOBALS['userid'], "PENDING", "reg", $limit);
+ return SURFBAR_REGISTER_URL($url, $GLOBALS['userid'], "PENDING", "reg", array('limit' => $limit));
}
// Create list of actions depending on status for the user
function SURFBAR_MEMBER_ACTIONS ($urlId, $status) {
} // END - if
// Look up the record
- $result = SQL_QUERY_ESC("SELECT id, userid, url, views_total, views_max, views_allowed, status, registered, last_locked, lock_reason, views_max, views_allowed
+ $result = SQL_QUERY_ESC("SELECT id, userid, url, views_total, views_max, views_allowed, status, registered, last_locked, lock_reason, views_max, views_allowed, fixed_reload
FROM "._MYSQL_PREFIX."_surfbar_urls
WHERE %s='%s'".$add."
ORDER BY %s %s
return $lastUrlData;
}
// Registers an URL with the surfbar. You should have called SURFBAR_LOOKUP_BY_URL() first!
-function SURFBAR_REGISTER_URL ($url, $uid, $status="PENDING", $addMode="reg", $limit=0) {
+function SURFBAR_REGISTER_URL ($url, $uid, $status="PENDING", $addMode="reg", $extraFields = array()) {
global $_CONFIG;
// Make sure by the user registered URLs are always pending
if ($addMode == "reg") $status = "PENDING";
// Prepare content
- $content = array(
+ $content = array_merge($extraFields, array(
'url' => $url,
'frametester' => FRAMETESTER($url),
'uid' => $uid,
'status' => $status,
- 'limit' => $limit
- );
+ ));
+
+ // Is limit/reload set?
+ if (!isset($config['limit'])) $content['limit'] = 0;
+ if (!isset($config['reload'])) $content['reload'] = 0;
// Insert the URL into database
$content['insert_id'] = SURFBAR_INSERT_URL_BY_ARRAY($content);
if (empty($uid)) $uid = 0;
// Just run the insert query for now
- SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_surfbar_urls (userid,url,status,views_max,views_allowed) VALUES (%s,'%s','%s',%s,%s)",
+ SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_surfbar_urls (userid,url,status,views_max,views_allowed,fixed_reload) VALUES (%s,'%s','%s',%s,%s,%s)",
array(
$uid,
$urlData['url'],
$urlData['status'],
$urlData['limit'],
- $urlData['limit']
+ $urlData['limit'],
+ $urlData['reload']
), __FILE__, __LINE__
);
function SURFBAR_DETERMINE_WAIT_TIME () {
global $_CONFIG;
+ // Get fixed reload lock
+ $fixed = SURFBAR_GET_FIXED_RELOAD();
+
+ // Is the fixed reload time set?
+ if ($fixed > 0) {
+ // Return it
+ return $fixed;
+ } // END - if
+
// Static time is default
$time = $_CONFIG['surfbar_static_time'];
// And query the database
//DEBUG_LOG(__FUNCTION__, __LINE__, "randNum={$randNum},maxRand={$maxRand},surfLock=".SURFBAR_GET_DATA('surf_lock')."", false);
- $result = SQL_QUERY_ESC("SELECT sbu.id, sbu.userid, sbu.url, sbs.last_salt, sbu.views_total, sbu.views_max, sbu.views_allowed, UNIX_TIMESTAMP(l.last_surfed) AS last_surfed
+ $result = SQL_QUERY_ESC("SELECT sbu.id, sbu.userid, sbu.url, sbs.last_salt, sbu.views_total, sbu.views_max, sbu.views_allowed, UNIX_TIMESTAMP(l.last_surfed) AS last_surfed, sbu.fixed_reload
FROM "._MYSQL_PREFIX."_surfbar_urls AS sbu
LEFT JOIN "._MYSQL_PREFIX."_surfbar_salts AS sbs
ON sbu.id=sbs.url_id
);
} else {
// Get data from specified id number
- $result = SQL_QUERY_ESC("SELECT sbu.id, sbu.userid, sbu.url, sbs.last_salt, sbu.views_total, sbu.views_max, sbu.views_allowed, UNIX_TIMESTAMP(l.last_surfed) AS last_surfed
+ $result = SQL_QUERY_ESC("SELECT sbu.id, sbu.userid, sbu.url, sbs.last_salt, sbu.views_total, sbu.views_max, sbu.views_allowed, UNIX_TIMESTAMP(l.last_surfed) AS last_surfed, sbu.fixed_reload
FROM "._MYSQL_PREFIX."_surfbar_urls AS sbu
LEFT JOIN "._MYSQL_PREFIX."_surfbar_salts AS sbs
ON sbu.id=sbs.url_id
// Get data element and return its contents
return SURFBAR_GET_DATA('views_allowed');
}
+// Getter for fixed reload
+function SURFBAR_GET_FIXED_RELOAD () {
+ // Get data element and return its contents
+ return SURFBAR_GET_DATA('fixed_reload');
+}
//
?>
} // END - if
} elseif (isset($content[$column])) {
// Unfinished!
- mxchange_die("{--".__FUNCTION__."--}:UNFINISHED: id={$id}/{$column}[".gettype($statusInfo)."] = {$content[$column]}");
+ mxchange_die("{--".__FUNCTION__."--}:".__LINE__.":UNFINISHED: id={$id}/{$column}[".gettype($statusInfo)."] = {$content[$column]}");
}
} // END - foreach
ADD_DESCR("admin", __FILE__);
// Was an URL added?
-if ((isset($_POST['add'])) && (!empty($_POST['url']))) {
+if ((isset($_POST['add'])) && (!empty($_POST['url'])) && (!empty($_POST['limit']))) {
// Then add this URL
- if (SURFBAR_ADMIN_ADD_URL($_POST['url'], $_POST['limit'])) {
+ if (SURFBAR_ADMIN_ADD_URL($_POST['url'], $_POST['limit'], $_POST['reload'])) {
// URL was added
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SURFBAR_URL_ADDED);
} else {
<span class="admin_note">(0 = Unbegrenzt)</span>
</div>
+ <div class="admin_input" style="padding-top:5px;padding-bottom:5px" align="center">
+ Reloadsperre: <input type="text" name="reload" size="5" maxlength="20" value="0" /> {--_SECONDS--}<br />
+ <span class="admin_note">(0 = Standarteinstellungen)</span>
+ </div>
+
<div class="admin_title top2" style="padding-top:3px;padding-bottom:3px">
<input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
<input type="submit" class="admin_submit" name="add" value="{--ADMIN_SURFBAR_ADD_URL--}" />
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" name="sel[$content[tpl]]" class="admin_normal"
- value="1"></TD>
<TD class="switch_sw$content[sw] bottom2 right2" align="center">
- $content[tpl]</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[tpl]]" class="admin_normal" value="1" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[tpl]
+ </TD>
<TD class="switch_sw$content[sw] bottom2" align="center">
- $content[alnk]</TD>
+ $content[alnk]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" name="sel[$content[id]]" value="1"></TD>
<TD class="switch_sw$content[sw] bottom2 right2" align="center">
- $content[admin]</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="sel[$content[id]]" value="1" />
+ </TD>
<TD class="switch_sw$content[sw] bottom2 right2" align="center">
- $content[action]</TD>
+ $content[admin]
+ </TD>
<TD class="switch_sw$content[sw] bottom2 right2" align="center">
- $content[what]</TD>
+ $content[action]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[what]
+ </TD>
<TD class="switch_sw$content[sw] bottom2" align="center">
- $content[mode]</TD>
+ $content[mode]
+ </TD>
</TR>
<TR>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]"><INPUT
- type="checkbox" name="sel[$content[id]]" value="1"
- class="admin_normal"></TD>
+ <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" class="admin_normal" />
+ </TD>
<TD class="bottom2 right2 switch_sw$content[sw]"">
- $content[cat] </TD>
+ $content[cat]
+ </TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
- $content[vis]</TD>
+ $content[vis]
+ </TD>
<TD align="center" class="bottom2 switch_sw$content[sw]">
- $content[sort]</TD>
+ $content[sort]
+ </TD>
</TR>
<TR>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]"><INPUT
- type="checkbox" name="sel[$content[id]]" value="1"
- class="admin_normal"></TD>
+ <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" class="admin_normal" />
+ </TD>
<TD class="bottom2 right2 switch_sw$content[sw]">
- $content[value] </TD>
+ $content[value]
+ </TD>
<TD class="bottom2 switch_sw$content[sw]">
- $content[comment] </TD>
+ $content[comment]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" name="sel[$content[id]]" class="admin_normal"
- value="1"></TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> $content[from]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> $content[type]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> $content[rate]</TD>
- <TD class="switch_sw$content[sw] bottom2"> $content[mpoi]</TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[from]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[type]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[rate]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2">
+ $content[mpoi]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" claass="admin_normal" name="sel[$content[id]]"
- value="1"></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[level]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> $content[points]</TD>
- <TD class="switch_sw$content[sw] bottom2"> $content[infos]</TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[level]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[points]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2">
+ $content[infos]
+ </TD>
</TR>
<TR>
<TD align="center" class="switch_sw$content[sw] bottom2">
- <INPUT type="checkbox" name="id[$content[id]]" value="1" checked="checked" />
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="id[$content[id]]" value="1" checked="checked" />
</TD>
<TD align="center" class="switch_sw$content[sw] bottom2 right2">
<STRONG>$content[id]</STRONG>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2"><INPUT
- type="checkbox" name="sel[$content[idx]]" value="1"
- class="admin_normal"></TD>
- <TD class="switch_sw$content[sw] bottom2 right2">$content[stamp]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2">$content[uid_from]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2">$content[uid_to]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2">$content[reason]</TD>
- <TD class="switch_sw$content[sw] bottom2">$content[points]</TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[idx]]" value="1" class="admin_normal" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[stamp]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[uid_from]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[uid_to]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[reason]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2">
+ $content[points]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" name="sel[$content[id]]" value="$content[act_val]">
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> $content[name]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> $content[lang]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[css]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[active]</TD>
- <TD class="switch_sw$content[sw] bottom2" align="center"> v$content[ver]</TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" class="admoin_normal" name="sel[$content[id]]" value="$content[act_val]" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[name]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[lang]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[css]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[active]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2" align="center">
+ v$content[ver]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" name="sel[$content[id]]" class="admin_normal"
- value="1"></TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> <A
- href="$content[email_link]">$content[login]</A></TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> <A
- href="mailto:$content[email]">$content[email]</A></TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> $content[mode]</TD>
- <TD class="switch_sw$content[sw] bottom2"> $content[la_mode]</TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ <A href="$content[email_link]">$content[login]</A>
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ <A href="mailto:$content[email]">$content[email]</A>
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[mode]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2">
+ $content[la_mode]
+ </TD>
</TR>
<TR>
- <TD align="center" class="switch_sw$content[sw] bottom2"><INPUT
- type="checkbox" name="id[$content[id]]" value="1" /></TD>
- <TD align="center" class="switch_sw$content[sw] bottom2 right2"><STRONG>$content[id]</STRONG>
+ <TD align="center" class="switch_sw$content[sw] bottom2">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="id[$content[id]]" value="1" />
</TD>
<TD align="center" class="switch_sw$content[sw] bottom2 right2">
- $content[title]</TD>
+ <STRONG>$content[id]</STRONG>
+ </TD>
<TD align="center" class="switch_sw$content[sw] bottom2 right2">
- $content[description]</TD>
+ $content[title]
+ </TD>
<TD align="center" class="switch_sw$content[sw] bottom2 right2">
- $content[fee] {!POINTS!}</TD>
+ $content[description]
+ </TD>
<TD align="center" class="switch_sw$content[sw] bottom2 right2">
- $content[plus]%</TD>
+ $content[fee] {!POINTS!}
+ </TD>
<TD align="center" class="switch_sw$content[sw] bottom2 right2">
- $content[minus]%</TD>
+ $content[plus]%
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+ $content[minus]%
+ </TD>
<TD align="center" class="switch_sw$content[sw] bottom2">
- $content[active]</TD>
+ $content[active]
+ </TD>
</TR>
<TR>
- <TD align="center" class="switch_sw$content[sw] bottom2 right2"><INPUT
- type="checkbox" name="id[$content[id]]" value="$content[status]"
- class="admin_normal"></TD>
<TD align="center" class="switch_sw$content[sw] bottom2 right2">
- $content[code]</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" value="$content[status]" class="admin_normal" />
+ </TD>
<TD align="center" class="switch_sw$content[sw] bottom2 right2">
- $content[name]</TD>
+ $content[code]
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+ $content[name]
+ </TD>
<TD align="center" class="switch_sw$content[sw] bottom2">
- $content[active]</TD>
+ $content[active]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" name="sel[$content[id]]" class="admin_normal"
- value="1"></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[uid]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[start]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[end]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><PRE>$content[comments]</PRE></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[status]</TD>
- <TD class="switch_sw$content[sw] bottom2" align="center">$content[last]</TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[uid]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[start]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[end]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <PRE>$content[comments]</PRE>
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[status]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2" align="center">
+ $content[last]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">
- <INPUT type="checkbox" name="id[$content[id]]" class="admin_normal" value="1">
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2">
- $content[name]
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2">
- $content[rate]
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2">
- $content[min]
- </TD>
- <TD class="switch_sw$content[sw] bottom2">
- $content[curr]
- </TD>
-</TR>
\ No newline at end of file
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1">
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[name]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[rate]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[min]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2">
+ $content[curr]
+ </TD>
+</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">
- <INPUT type="checkbox" name="id[$content[id]]" class="admin_normal" value="1">
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2">
- $content[name]
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2">
- $content[rate]
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2">
- $content[min]
- </TD>
- <TD class="switch_sw$content[sw] bottom2">
- $content[currency]
- </TD>
-</TR>
\ No newline at end of file
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1">
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[name]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[rate]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[min]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2">
+ $content[currency]
+ </TD>
+</TR>
<tr>
<td align="center" class="bottom2 right2 switch_sw$content[sw]">
- <input type="checkbox" name="id[$content[id]]" value="1" class="admin_normal" />
+ <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" value="1" class="admin_normal" />
</td>
<td align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[status]
<tr>
<td align="center" class="bottom2 right2 switch_sw$content[sw]">
- <input type="checkbox" name="id[$content[id]]" value="1" class="admin_normal" />
+ <input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" value="1" class="admin_normal" />
</td>
<td align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[userid]
<TR>
<TD class="switch_sw$content[sw] bottom2 right2 left2" align="center">
- <INPUT type="checkbox" name="task[$content[id]]" value="1" class="admin_normal" />
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[admin]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><A title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{!URL!}/modules.php?module=admin&what=extensions&reg_ext=$content[id]">{--ADMIN_REGISTER_EXTENSION--}</A></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[infos]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[uid]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[type]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[created]]</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="task[$content[id]]" value="1" class="admin_normal" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[admin]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <A title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{!URL!}/modules.php?module=admin&what=extensions&reg_ext=$content[id]">{--ADMIN_REGISTER_EXTENSION--}</A>
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[infos]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[uid]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[type]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[created]]
+ </TD>
</TR>
<TR>
<TD class="switch_sw$content[sw] bottom2 right2 left2" align="center">
- <INPUT type="checkbox" name="task[$content[id]]" value="1" class="admin_normal" />
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[admin]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">---</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[infos]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[uid]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[type]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[created]]</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="task[$content[id]]" value="1" class="admin_normal" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[admin]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ ---
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[infos]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[uid]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[type]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[created]]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" name="sel[$content[id]]" value="1"
- class="admin_normal"></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><A
- href="{!URL!}/modules.php?module=admin&what=$content[mode]edit&sub=$content[action]">$content[action]</A></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[what]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2"> $content[title]</TD>
- <TD class="switch_sw$content[sw] bottom2" align="center"> $content[navi]</TD>
-</TR>
\ No newline at end of file
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" class="admin_normal" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <A href="{!URL!}/modules.php?module=admin&what=$content[mode]edit&sub=$content[action]">$content[action]</A>
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[what]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2">
+ $content[title]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2" align="center">
+ $content[navi]
+ </TD>
+</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><INPUT
- type="checkbox" class="admin_normal" name="sel[$content[id]]"
- value="1"></TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" class="admin_normal" name="sel[$content[id]]" value="1" />
+ </TD>
<TD class="switch_sw$content[sw] bottom2 right2">
- $content[mod]</TD>
+ $content[mod]
+ </TD>
<TD class="switch_sw$content[sw] bottom2 right2">
- $content[title]</TD>
+ $content[title]
+ </TD>
<TD class="switch_sw$content[sw] bottom2 right2" align="center">
- $content[locked]</TD>
+ $content[locked]
+ </TD>
<TD class="switch_sw$content[sw] bottom2 right2" align="center">
- $content[hidden]</TD>
+ $content[hidden]
+ </TD>
<TD class="switch_sw$content[sw] bottom2 right2" align="center">
- $content[admin]</TD>
+ $content[admin]
+ </TD>
<TD class="switch_sw$content[sw] bottom2 right2" align="center">
- $content[mem]</TD>
+ $content[mem]
+ </TD>
</TR>
<TR>
<TD class="switch_sw$content[sw] bottom2 right2 left2" align="center">
- <INPUT type="checkbox" name="task[$content[id]]" value="1" class="admin_normal" />
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[admin]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><A title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{!URL!}/modules.php?module=admin&what=extensions&reg_ext=$content[id]">{--ADMIN_REGISTER_EXTENSION--}</A></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[infos]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[uid]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[type]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[created]]</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="task[$content[id]]" value="1" class="admin_normal" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[admin]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <A title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{!URL!}/modules.php?module=admin&what=extensions&reg_ext=$content[id]">{--ADMIN_REGISTER_EXTENSION--}</A>
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[infos]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[uid]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[type]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[created]]
+ </TD>
</TR>
<TR>
<TD class="switch_sw$content[sw] bottom2 right2 left2" align="center">
- <INPUT type="checkbox" name="task[$content[id]]" value="1" class="admin_normal" />
- </TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[admin]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">---</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[infos]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[uid]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[type]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[created]]</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="task[$content[id]]" value="1" class="admin_normal" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[admin]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ ---
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[infos]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[uid]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[type]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[created]]
+ </TD>
</TR>
<TR>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]"><INPUT
- type="checkbox" name="sel[$content[id]]" value="1"
- class="admin_normal"></TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
- $content[time] {--_SECONDS--}</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" class="admin_normal" />
+ </TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
- $content[pay]</TD>
+ $content[time] {--_SECONDS--}
+ </TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
- $content[price]</TD>
+ $content[pay]
+ </TD>
+ <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ $content[price]
+ </TD>
<TD align="center" class="bottom2 switch_sw$content[sw]">
- $content[title]</TD>
+ $content[title]
+ </TD>
</TR>
<TR>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]"><INPUT
- type="checkbox" name="sel[$content[id]]" value="1"
- class="admin_normal"></TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
- $content[lvl]</TD>
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" class="admin_normal" />
+ </TD>
+ <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ $content[lvl]
+ </TD>
<TD align="center" class="bottom2 switch_sw$content[sw]">
- $content[per]%</TD>
+ $content[per]%
+ </TD>
</TR>
<TR>
- <TD align="center" class="switch_sw$content[sw] bottom right2"
- colspan="2"><INPUT type="checkbox" name="sel[$content[id]]"
- value="1" class="admin_normal"></TD>
- <TD align="center" class="switch_sw$content[sw] bottom right2"><IMG
- src="$content[url]" alt="$content[alt]" border="0"
- title="$content[alt]"></TD>
- <TD align="center" class="switch_sw$content[sw] bottom right2">$content[alt]</TD>
- <TD align="center" class="switch_sw$content[sw] bottom right2">$content[cnt]</TD>
- <TD align="center" class="switch_sw$content[sw] bottom right2">$content[clx]</TD>
- <TD align="center" class="switch_sw$content[sw] bottom" colspan="2">$content[vis]</TD>
+ <TD align="center" class="switch_sw$content[sw] bottom right2" colspan="2">
+ <INPUT type="checkbox" name="sel[$content[id]]" title="{--ID_SELECT--} $content[id]" value="1" class="admin_normal" />
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom right2">
+ <IMG src="$content[url]" alt="$content[alt]" border="0" title="$content[alt]" />
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom right2">
+ $content[alt]
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom right2">
+ $content[cnt]
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom right2">
+ $content[clx]
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom" colspan="2">
+ $content[vis]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"
- height="30"><INPUT type="checkbox" name="sel[$content[id]]"
- class="admin_normal" value="1"> <INPUT type="hidden"
- name="active[$content[id]]" class="admin_normal"
- value="$content[active]"></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"
- height="30">$content[link]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[name]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"
- height="30">$content[is_act]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">$content[email]</TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center"><A
- href="$content[url_link]" target="_blank">$content[url_title]</A></TD>
- <TD class="switch_sw$content[sw] bottom2 right2" align="center">v$content[ver]</TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center" height="30">
+ <INPUT type="checkbox" name="sel[$content[id]]" title="{--ID_SELECT--} $content[id]" class="admin_normal" value="1" />
+ <INPUT type="hidden" name="active[$content[id]]" value="$content[active]" />
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center" height="30">
+ $content[link]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[name]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center" height="30">
+ $content[is_act]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ $content[email]
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ <A href="$content[url_link]" target="_blank">$content[url_title]</A>
+ </TD>
+ <TD class="switch_sw$content[sw] bottom2 right2" align="center">
+ v$content[ver]
+ </TD>
</TR>
<TR>
- <TD class="switch_sw$content[sw] top2 right2" align="center"
- height="30"><INPUT type="checkbox" name="sel[$content[id]]"
- class="admin_normal" value="1"> <INPUT type="hidden"
- name="sender[$content[id]]" value="$content[sender]"></TD>
- <TD class="switch_sw$content[sw] top2 right2 admin_misc" align="center">$content[u_link]</TD>
- <TD class="switch_sw$content[sw] top2 right2 admin_misc">$content[subj]</TD>
- <TD class="switch_sw$content[sw] top2 right2" align="center"><A
- href="$content[tester]" target="_blank">{--ADMIN_TEST_URL--}</A> <INPUT
- type="hidden" name="url[$content[id]]" value="$content[url]">
+ <TD class="switch_sw$content[sw] top2 right2" align="center" height="30">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
+ <INPUT type="hidden" name="sender[$content[id]]" value="$content[sender]" />
+ <INPUT type="hidden" name="url[$content[id]]" value="$content[url]" />
</TD>
<TD class="switch_sw$content[sw] top2 right2 admin_misc" align="center">
- <B title="$content[cat_title]">$content[cat_link]</STRONG></TD>
+ $content[u_link]
+ </TD>
+ <TD class="switch_sw$content[sw] top2 right2 admin_misc">
+ $content[subj]
+ </TD>
+ <TD class="switch_sw$content[sw] top2 right2" align="center">
+ <A href="$content[tester]" target="_blank">{--ADMIN_TEST_URL--}</A>
+ </TD>
+ <TD class="switch_sw$content[sw] top2 right2 admin_misc" align="center">
+ <STRONG title="$content[cat_title]">$content[cat_link]</STRONG>
+ </TD>
<TD class="switch_sw$content[sw] top2 right2 admin_misc" align="center">
- <B title="$content[pay_title]">$content[pay_link]</STRONG></TD>
- <TD class="switch_sw$content[sw] top2 right2 admin_misc" align="center">$content[ordered]</TD>
- <TD class="switch_sw$content[sw] top2 admin_misc" align="center">$content[tsend]</TD>
+ <STRONG title="$content[pay_title]">$content[pay_link]</STRONG>
+ </TD>
+ <TD class="switch_sw$content[sw] top2 right2 admin_misc" align="center">
+ $content[ordered]
+ </TD>
+ <TD class="switch_sw$content[sw] top2 admin_misc" align="center">
+ $content[tsend]
+ </TD>
</TR>
<TR>
- <TD align="center" class="switch_sw$content[sw] bottom2 right2">
- <INPUT type="checkbox" name="id[$content[id]]" class="admin_normal" value="1">
- </TD>
- <TD align="center" class="switch_sw$content[sw] bottom2 right2">
- <A href="$content[email]">$content[gender] $content[surname] $content[family]</A>
- </TD>
- <TD align="center" class="switch_sw$content[sw] bottom2 right2">
- $content[remote]
- </TD>
- <TD align="center" class="switch_sw$content[sw] bottom2">
- $content[created]
- </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+ <A href="$content[email]">$content[gender] $content[surname] $content[family]</A>
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom2 right2">
+ $content[remote]
+ </TD>
+ <TD align="center" class="switch_sw$content[sw] bottom2">
+ $content[created]
+ </TD>
</TR>
<TR>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
- <INPUT type="checkbox" name="id[$content[id]]" value="1" class="admin_normal" />
+ <INPUT type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" value="1" class="admin_normal" />
</TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[userid]
Basisvergütung gutgeschrieben. Die prozentuale Ref-Vergütung wird
jedoch nur von der Basisvergütung berechnet.<br />
<br />
-Es können auch URLs direkt und nur in die Surfbar gebucht werden. Hier
-gilt jedoch ein einstellbarer Festpreis.<br />
+Es können auch URLs direkt und nur in die Surfbar gebucht werden. Sie
+können zudem eigene URLs (nur aus Sponsorennetzwerken nehmen, wo das
+Einbinden der URL in eine Surfbar erlaubt ist!) aus dem Adminbereich
+hinzufügen und dabei eine Reload-Sperre unabhängig von den
+Standarteinstellungen in Sekunden angeben.<br />
<br />
Die Wartezeit ist ebenfalls entweder statisch einstellbar, wenn Sie statische
Vergütung eingestellt haben oder dynamisch. Dabei richtet sich ebenfalls