]> git.mxchange.org Git - mailer.git/commitdiff
Handled unconfirmed mails, renamed array index
authorRoland Häder <roland@mxchange.org>
Thu, 14 Jul 2011 18:53:55 +0000 (18:53 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 14 Jul 2011 18:53:55 +0000 (18:53 +0000)
13 files changed:
DOCS/TODOs.txt
inc/language/de.php
inc/modules/member/what-unconfirmed.php
templates/de/html/member/member_mail_bonus_deleted.tpl
templates/de/html/member/member_mail_bonus_new.tpl
templates/de/html/member/member_mail_bonus_queue.tpl
templates/de/html/member/member_mail_bonus_send.tpl
templates/de/html/member/member_mail_normal_active.tpl
templates/de/html/member/member_mail_normal_admin.tpl
templates/de/html/member/member_mail_normal_deleted.tpl
templates/de/html/member/member_mail_normal_new.tpl
templates/de/html/member/member_mail_normal_send.tpl
templates/de/html/member/member_mail_normal_temp.tpl

index 9d532c75212a948817371881635a884371693f61..755bab4c48dd588863a426e7befe637cb3537cae 100644 (file)
@@ -54,8 +54,8 @@
 ./inc/functions.php:2232:      // @TODO Rename column data_type to e.g. mail_status
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/install-functions.php:57:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
-./inc/language/de.php:1065:    // @TODO Rewrite these two constants
-./inc/language/de.php:1081:    // @TODO Rewrite these three constants
+./inc/language/de.php:1067:    // @TODO Rewrite these two constants
+./inc/language/de.php:1083:    // @TODO Rewrite these three constants
 ./inc/language/de.php:757:// @TODO Are these constants longer used?
 ./inc/language-functions.php:255:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:44:// @TODO Rewrite all language constants to this function.
 ./inc/modules/member/what-rallyes.php:89:      // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&amp;what=impressum&amp;admin=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
 ./inc/modules/member/what-reflinks.php:52:// @TODO Move this into a filter
 ./inc/modules/member/what-transfer.php:128:                            // @TODO Rewrite this to a filter
-./inc/modules/member/what-unconfirmed.php:144: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
-./inc/modules/member/what-unconfirmed.php:209:                         // @TODO This 'userid' cannot be saved because of encapsulated EL code
+./inc/modules/member/what-unconfirmed.php:162: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
+./inc/modules/member/what-unconfirmed.php:227:                         // @TODO This 'userid' cannot be saved because of encapsulated EL code
 ./inc/modules/order.php:74:            // @TODO Unused: 2,4
 ./inc/monthly/monthly_bonus.php:64:    // @TODO Rewrite this to a filter
 ./inc/mysql-manager.php:1249:                  // @TODO Try to rewrite this to $content = SQL_FETCHARRAY()
index 57b479d7f1da1e644e1e4a3353daca70dc08d88e..7e169ee0476462d308f6d70571025ee54a06661f 100644 (file)
@@ -439,7 +439,7 @@ addMessages(array(
        'MEMBER_NO_MAILS_TO_CONFIRM' => "Keine Mails &uuml;brig zum Best&auml;tigen.",
        'MEMBER_SID' => "Mail-Id",
        'CONFIRM_LINK' => "Best&auml;tigungslink",
-       'CONFIRM_LINK2' => "Best.link",
+       'CONFIRM_LINK2' => "Best&auml;tigen",
        'MAIL_ALREADY_CONFIRMED' => "Mail bereits verg&uuml;tet oder Link ist nicht mehr g&uuml;ltig.",
        'MAIL_STATS_404' => "Konnte Daten aus der Statistik-Tabelle nicht laden.",
        'USER_404' => "Mitgliedsdaten nicht gefunden! Sind Sie noch angemeldet?",
@@ -1057,10 +1057,12 @@ addMessages(array(
        'MEMBER_RANDOM_REFID_CONFIRMED' => "Anzahl Mails best&auml;tigt, damit Ihr Account per Zufall selektiert wird",
        'MEMBER_YOUR_REFID_IS' => "Sie wurden geworben von",
 
-       'MEMBER_MAIL_BONUS_CONFIRMED_ON' => "Sie haben diese Bonusmail <span class=\"data\">%s</span> best&auml;tigt.",
+       'MEMBER_MAIL_BONUS_CONFIRMED_ON' => "Sie haben diese Bonusmail am|um <span class=\"data\">%s</span> best&auml;tigt.",
        'MEMBER_MAIL_BONUS_CONFIRMED_UNKNOWN' => "Es konnte nicht festgestellt werden, wann Sie die Bonus-Mail <span class=\"data\">%s</span> best&auml;tigt hatten.",
+       'MEMBER_MAIL_BONUS_NEVER_CONFIRMED' => "Sie haben diese Bonusmail <span class=\"data\">%s</span> noch nicht best&auml;tigt.",
        'MEMBER_MAIL_NORMAL_CONFIRMED_ON' => "Sie haben diese Klick-Mail <span class=\"data\">%s</span> best&auml;tigt.",
        'MEMBER_MAIL_NORMAL_CONFIRMED_UNKNOWN' => "Es konnte nicht festgestellt werden, wann Sie die Klick-Mail <span class=\"data\">%s</span> best&auml;tigt hatten.",
+       'MEMBER_MAIL_NORMAL_NEVER_CONFIRMED' => "Sie haben diese Klick-Mail <span class=\"data\">%s</span> noch nicht best&auml;tigt.",
 
        // @TODO Rewrite these two constants
        'MEMBER_MAIL_NORMAL_DETAILS_TITLE' => "Details zur Klick-Mail <span class=\"data\">%s</span>:",
index b49e1031e230266815c54b42fa12ea0621480c08..af971c9247ccee4f912790b756a10121bcf05c03 100644 (file)
@@ -67,14 +67,23 @@ LIMIT 1",
        $content = SQL_FETCHARRAY($result_data);
 
        // Translate some data
-       $content['timestamp']   = generateDateTime($content['timestamp'], 2);
-       $content['userid']      = getMemberId();
-       $content['user_status'] = '{%message,MEMBER_MAIL_BONUS_CONFIRMED_UNKNOWN=' . $content['id'] . '%}';
+       $content['timestamp'] = generateDateTime($content['timestamp'], '2');
+       $content['userid'] = getMemberId();
+       $content['user_mail_status'] = '{%message,MEMBER_MAIL_BONUS_CONFIRMED_UNKNOWN=' . $content['id'] . '%}';
 
        // Is ext-user active?
        if (isExtensionActive('user')) {
-               // Get timestamp from insert
-               $content['user_status'] = '{%message,MEMBER_MAIL_BONUS_CONFIRMED_ON=' . generateDateTime(getEpocheTimeFromUserStats('bonusid', $content['id']), '2') . '%}';
+               // Default is never confirmed
+               $content['user_mail_status'] = '{%message,MEMBER_MAIL_BONUS_NEVER_CONFIRMED=' . $content['id'] . '%}';
+
+               // Get the timestamp from the mail
+               $confirmedStamp = getEpocheTimeFromUserStats('bonusid', $content['id']);
+
+               // Have confirmed it?
+               if ($confirmedStamp > 0) {
+                       // Get timestamp from insert
+                       $content['user_mail_status'] = '{%message,MEMBER_MAIL_BONUS_CONFIRMED_ON=' . generateDateTime($confirmedStamp, '2') . '%}';
+               } // END - if
        } // END - if
 
        // Display it depending on mail (data) type
@@ -106,14 +115,23 @@ LIMIT 1",
        $content = SQL_FETCHARRAY($result_data);
 
        // Translate some data
-       $content['timestamp']   = generateDateTime($content['timestamp'], '2');
-       $content['userid']      = getMemberId();
-       $content['user_status'] = '{%message,MEMBER_MAIL_NORMAL_CONFIRMED_UNKNOWN=' . $content['id'] . '%}';
+       $content['timestamp'] = generateDateTime($content['timestamp'], '2');
+       $content['userid'] = getMemberId();
+       $content['user_mail_status'] = '{%message,MEMBER_MAIL_NORMAL_CONFIRMED_UNKNOWN=' . $content['id'] . '%}';
 
        // Is ext-user active?
        if (isExtensionActive('user')) {
-               // Get timestamp from insert
-               $content['user_status'] = '{%message,MEMBER_MAIL_NORMAL_CONFIRMED_ON=' . generateDateTime(getEpocheTimeFromUserStats('mailid', $content['id']), '2') . '%}';
+               // Default is never confirmed
+               $content['user_mail_status'] = '{%message,MEMBER_MAIL_NORMAL_NEVER_CONFIRMED=' . $content['id'] . '%}';
+
+               // Get the timestamp from the mail
+               $confirmedStamp = getEpocheTimeFromUserStats('mailid', $content['id']);
+
+               // Have confirmed it?
+               if ($confirmedStamp > 0) {
+                       // Get timestamp from insert
+                       $content['user_mail_status'] = '{%message,MEMBER_MAIL_NORMAL_CONFIRMED_ON=' . generateDateTime($confirmedStamp, '2') . '%}';
+               } // END - if
        } // END - if
 
        // Display it depending on mail (data) type
index 304189033ce0b4f97fecf613e12f6a562eae8c31..cdb2ed8268982dab2a5534b8afdad6b193b9d706 100644 (file)
@@ -58,7 +58,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index 73b24057a40d6dc68933723d5c140ef31dc163ab..b04b6ed99a672f13f2b59a861c6d0f851ecbae87 100644 (file)
@@ -58,7 +58,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index 45105f0cdbd66f22234e26ae985ca1053eed9148..649019f7c7992de63373e21ba4c4226777cc989f 100644 (file)
@@ -58,7 +58,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index c230f69dc05c940aeb6dfe7f3cbb01faee1204be..d0c361e7ede177f47e9d75917b3ba254eda7b678 100644 (file)
@@ -60,7 +60,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index e9a1d76729a19aa89b2516f1f23a4e10f1a0c291..e220da1ae3539228ce7a51e3ee13b601c4b4b780 100644 (file)
@@ -52,7 +52,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index 8f1dcb711afe94da3641d8f1d7a7f951306e708c..39106dd2b87cb883943a839bd091c9603a33c122 100644 (file)
@@ -52,7 +52,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index bb3ed41be96a22656e3f0cbd1e1f0a7733a423f5..6a7937a071a9bdbbc6bdf62a4f1471bf2dd4870a 100644 (file)
@@ -52,7 +52,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index 66157687096d3b3a4be7bf69df0945a6a154faa3..3e8c523f74f582a355c7a5e11bd375b9a1a224ea 100644 (file)
@@ -52,7 +52,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index 4c07de5d692ac0099ca0e19c788cbe4b70087f52..0a7480bc8d9453ed8a585f2962876c7c78f13ccd 100644 (file)
@@ -54,7 +54,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>
index 26e73c935ec8615b2cbc4555c10e92f233b446f6..51dda1c7a1a74fd3a05906c273be6c0444e00490 100644 (file)
@@ -52,7 +52,7 @@
 </tr>
 <tr>
        <td colspan="2" align="center" class="table_footer">
-               <strong>$content[user_status]</strong>
+               $content[user_mail_status]
        </td>
 </tr>
 </table>