X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-nickname.php;h=618d44b9f92184a1cf8706357b5d18a6e94bf864;hb=5ea4a58fa13d33b4133a6fda5a83abf083002ebf;hp=8ca9f150f25a2ed7fae9a18bc335db859603fe0d;hpb=618048c5fb61f84848cf37abe3972cd509cdac04;p=mailer.git diff --git a/inc/extensions/ext-nickname.php b/inc/extensions/ext-nickname.php index 8ca9f150f2..618d44b9f9 100644 --- a/inc/extensions/ext-nickname.php +++ b/inc/extensions/ext-nickname.php @@ -1,7 +1,7 @@ ODER die angemeldete EMail-Adresse eingegeben werden."); + setExtensionUpdateNotes("Zum Zusenden eines neuen Passwortes kann jetzt entweder der Nickname / Mitglieder-Id ODER die angemeldete EMail-Adresse eingegeben werden."); break; case '0.1.3': // SQL queries for v0.1.3 @@ -175,16 +176,16 @@ switch (getExtensionMode()) { case '0.1.9': // SQL queries for v0.1.9 addAdminMenuSql('user','list_nickname','Nickname-Historie','Listet alle verwendeten Nicknames der Mitglieder auf.', 12); - addExtensionSql("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_nickname_history`"); + addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_nickname_history`'); addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_nickname_history` ( -id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, -userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, -nickname VARCHAR(255) NOT NULL DEFAULT '', -added TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -last_used TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00', -INDEX userid (userid), -INDEX (last_used DESC), -PRIMARY KEY (id) +`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, +`userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, +`nickname` VARCHAR(255) NOT NULL DEFAULT '', +`added` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, +`last_used` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00', +INDEX `userid` (`userid`), +INDEX (`last_used` DESC), +PRIMARY KEY (`id`) ) TYPE={?_TABLE_TYPE?} COMMENT='History of used nicknames'"); // Update notes (these will be set as task text!) @@ -203,9 +204,9 @@ PRIMARY KEY (id) break; default: // Unknown extension mode - DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode())); + logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); break; -} +} // END - switch -// +// [EOF] ?>