`points_used` FLOAT(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',
+`hash` VARCHAR(32) NULL DEFAULT NULL,
+`last_pay` FLOAT(7,2) UNSIGNED NOT NULL DEFAULT 0.00,
`last_curr` VARCHAR(255) NOT NULL DEFAULT '€',
INDEX (`refid`),
INDEX (`email`),
UNIQUE KEY (`hash`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Sponsor orders
//
addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_sponsor_orders`');
addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_sponsor_orders` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`sponsorid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`sponsor_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`admin_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`regid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-`payid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`payment_id` 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,
-INDEX (`payid`),
+INDEX (`payment_id`),
INDEX (`regid`),
INDEX (`admin_id`),
-INDEX (`sponsorid`),
+INDEX (`sponsor_id`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Pay-types
//
`pay_min_count` BIGINT(20) UNSIGNED NOT NULL DEFAULT 1,
`pay_currency` VARCHAR(255) NOT NULL DEFAULT '€',
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Points-to-action converting
//
`conv_name` VARCHAR(255) NOT NULL DEFAULT 'Mails',
INDEX (`ext_name`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Sponsor menu system (default)
//
UNIQUE KEY `action_what` (`action`,`what`),
UNIQUE KEY (`what`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Registry for performable actions by your sponsors
//
INDEX (`ext_name`),
INDEX (`admin_id`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// URLs from the sponsors
//
addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_sponsor_urls`');
addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_sponsor_urls` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`sponsorid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`sponsor_id` 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,
`status` ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING',
-INDEX (`sponsorid`),
+INDEX (`sponsor_id`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Banners of any size from the sponsors
//
addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_sponsor_banner`');
addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_sponsor_banner` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`sponsorid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`sponsor_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`url` VARCHAR(255) NOT NULL DEFAULT 'http://',
`alternate` VARCHAR(255) NOT NULL DEFAULT '',
`width` INT(7) UNSIGNED NOT NULL DEFAULT 468,
`height` INT(7) UNSIGNED NOT NULL DEFAULT 60,
`views` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`status` ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING',
-INDEX (`sponsorid`),
+INDEX (`sponsor_id`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Campaigns
//
addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_sponsor_campaigns`');
addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_sponsor_campaigns` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`sponsorid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`sponsor_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`admin_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`campaign_name` VARCHAR(255) NOT NULL DEFAULT '',
`campaign_start` VARCHAR(10) NOT NULL DEFAULT 0,
`locked_timestamp` VARCHAR(10) NOT NULL DEFAULT 0,
`status` ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING',
INDEX (`admin_id`),
-INDEX (`sponsorid`),
+INDEX (`sponsor_id`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Campaigns + URLs + Banner
//
INDEX (`urlid`),
INDEX (`campaignid`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Allowed data to display (administrative)
//
`data_row` VARCHAR(255) NOT NULL DEFAULT '',
`display` ENUM('Y','N') NOT NULL DEFAULT 'N',
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Allowed data to display (sponsor-side)
//
addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_sponsor_display_data`');
addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_sponsor_display_data` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`sponsorid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`sponsor_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`data_row` VARCHAR(255) NOT NULL DEFAULT '',
`display` ENUM('Y','N') NOT NULL DEFAULT 'N',
-INDEX (`sponsorid`),
+INDEX (`sponsor_id`),
PRIMARY KEY (`id`)
-)TYPE={?_TABLE_TYPE?}");
+) TYPE={?_TABLE_TYPE?}");
//
// Default allowed data to display
//
addAdminMenuSql('sponsor','allow_sponsor_data','Datenverwaltung','Stellen Sie hier ein, welche Daten der Sponsor im Mitgliedsbereich über sicht anzeigen darf und welche nicht.', 7);
addAdminMenuSql('sponsor','list_sponsor_pays','Bestellungen...','Bestellungen der Sponsoren auflisten / bearbeiten.', 8);
addAdminMenuSql('sponsor','list_sponsor_menu','Sponsorenmenü','Das Sponsorenmenü kann hier geändert werden.', 9);
- addAdminMenuSql('sponsor','list_sponsor_campaigns','Kampagnen...','Verwaltung aller von Ihren Sponsoren eingerichteten Kampagnen.', 10);
- addAdminMenuSql('sponsor','list_sponsor_urls','URL-Verwaltung','Verwaltung (freischalten, sperren, löschen, testen, bearbeiten usw.) von gebuchten URLs.', 11);
- addAdminMenuSql('sponsor','list_sponsor_banner','Banner-Verwaltung','Verwaltung (freischalten, sperren, löschen, testen, bearbeiten usw.) von gebuchten Bannern.', 12);
+ addAdminMenuSql('sponsor','list_sponsor_campaigns','Kampagnen...','Management aller von Ihren Sponsoren eingerichteten Kampagnen.', 10);
+ addAdminMenuSql('sponsor','list_sponsor_urls','URL-Management','Management (freischalten, sperren, löschen, testen, bearbeiten usw.) von gebuchten URLs.', 11);
+ addAdminMenuSql('sponsor','list_sponsor_banner','Banner-Management','Management (freischalten, sperren, löschen, testen, bearbeiten usw.) von gebuchten Bannern.', 12);
addAdminMenuSql('sponsor','list_sponsor_reg','Sponsor-Aktionen','Alle Sponsor-Aktionen auflisten und verwalten.', 13);
addAdminMenuSql('sponsor','list_sponsor_pay','Buchungspakete','Die Sponsoren können sich {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Pakete kaufen. Hier können Sie diese verwalten.', 14);
addAdminMenuSql('sponsor','list_sponsor_conv','{OPEN_CONFIG}POINTS{CLOSE_CONFIG} umwandeln...','Mit den vom Sponsor gekauften {OPEN_CONFIG}POINTS{CLOSE_CONFIG} kann er Aktionen buchen. Hier stellen Sie die Umrechnungsrate von {OPEN_CONFIG}POINTS{CLOSE_CONFIG} nach Sponsoraktionen um. Beispiel: 1 {OPEN_CONFIG}POINTS{CLOSE_CONFIG} = 10 Mails.', 15);
addSponsorMenuSql('main','welcome','Willkommen','N', 1);
addSponsorMenuSql('main','account','Ihr Account','N', 2);
addSponsorMenuSql('main','campaigns','Kampagnen','N', 3);
- addSponsorMenuSql('main','list_urls','URL-Verwaltung','N', 4);
- addSponsorMenuSql('main','list_banner','Banner-Verwaltung','N', 5);
+ addSponsorMenuSql('main','list_urls','URL-Management','N', 4);
+ addSponsorMenuSql('main','list_banner','Banner-Management','N', 5);
addSponsorMenuSql('main','settings','Einstellungen','N', 6);
addSponsorMenuSql('main','fillup','Konto auffüllen','N', 7);
addSponsorMenuSql('main','stats','Statistiken','N', 8);
// Update notes (these will be set as task text!)
setExtensionUpdateNotes('');
break;
- }
+ } // END - switch
break;
case 'modify': // When the extension got modified
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-}
+} // END - switch
// [EOF]
?>