]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-unconfirmed.php
Missing SVN properties set
[mailer.git] / inc / modules / member / what-unconfirmed.php
index 287077856b2ce8c3cc74c7f312bdecf947d2f97f..0679b212c177c77858bc501b8fa9b7e7f4ee1dd2 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/19/2003 *
- * ===============                              Last change: 07/13/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 10/19/2003 *
+ * ===================                          Last change: 07/13/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-unconfirmed.php                             *
@@ -70,7 +70,7 @@ LIMIT 1",
        $content['is_notify'] = translateYesNo($content['is_notify']);
        $content['sender']    = getMessage('USERNAME_ADMIN_SHORT');
        $content['time']      = createFancyTime($content['time']);
-       $content['userid']    = getUserId();
+       $content['userid']    = getMemberId();
 
        // Get timestamp from insert
        $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_BONUS_CONFIRMED_ON'),
@@ -109,7 +109,7 @@ LIMIT 1",
        $content['category']  = getCategory($content['cat_id']);
        $content['points']    = translateComma($content['points']);
        $content['time']      = createFancyTime($content['time']);
-       $content['userid']    = getUserId();
+       $content['userid']    = getMemberId();
 
        // Get timestamp from insert
        $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_NORMAL_CONFIRMED_ON'),
@@ -126,17 +126,17 @@ LIMIT 1",
 if (isExtensionActive('bonus')) {
        // Load bonus id
        $result = SQL_QUERY_ESC("SELECT `stats_id`, `bonus_id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `bonus_id` DESC, stats_id DESC",
-               array(getUserId()), __FILE__, __LINE__);
+               array(getMemberId()), __FILE__, __LINE__);
 } else {
        // Don't load bonus id
        $result = SQL_QUERY_ESC("SELECT `stats_id`, `stats_id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `stats_id` DESC",
-               array(getUserId()), __FILE__, __LINE__);
+               array(getMemberId()), __FILE__, __LINE__);
 }
 
 // Mails left for confirmation?
 if (SQL_NUMROWS($result) > 0) {
        // Please confirm these mails!
-       $sum = 0; $OUT = ''; $SW = 2;
+       $sum = '0'; $OUT = ''; $SW = 2;
 
        // Init content
        $content = array();
@@ -205,15 +205,15 @@ LIMIT 1",
 
                        // Prepare data for template
                        $content = array(
-                               'sw'      => $SW,
-                               'userid'  => getUserId(),
-                               'data'    => bigintval($DATA),
-                               'type'    => $type,
-                               'subject' => $subject,
-                               'sender'  => $sender,
-                               'stamp'   => generateDateTime($timestamp, 2),
-                               'cat'     => getCategory($cat),
-                               'points'  => translateComma($pay),
+                               'sw'        => $SW,
+                               'userid'    => getMemberId(),
+                               'data'      => bigintval($DATA),
+                               'type'      => $type,
+                               'subject'   => $subject,
+                               'sender'    => $sender,
+                               'timestamp' => generateDateTime($timestamp, 2),
+                               'cat'       => getCategory($cat),
+                               'points'    => translateComma($pay),
                        );
 
                        // Load row template