]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-newsletter.php
Old config.php is now automatically updated to new config-local.php format, several...
[mailer.git] / inc / modules / member / what-newsletter.php
index 3294b49517c63fd164491c8d70a57c9931606643..cc14a7c17792275c0f8895e2b47a1d5ac744f978 100644 (file)
@@ -52,7 +52,7 @@ ADD_DESCR('member', __FILE__);
 
 // Load status
 $result = SQL_QUERY_ESC("SELECT nl_receive, nl_until, nl_timespan FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
 
 // Load status
 $result = SQL_QUERY_ESC("SELECT nl_receive, nl_until, nl_timespan FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
-       array(getUserId()), __FILE__, __LINE__);
+array(getUserId()), __FILE__, __LINE__);
 list($status, $until, $span) = SQL_FETCHROW($result);
 SQL_FREERESULT($result);
 
 list($status, $until, $span) = SQL_FETCHROW($result);
 SQL_FREERESULT($result);
 
@@ -62,7 +62,7 @@ define('__CHARGE_VALUE', translateComma(getConfig('nl_charge')));
 if ((IS_FORM_SENT()) && ($status == 'Y') && ($span == '0')) {
        // Save request
        SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET nl_timespan='".(getConfig('one_day') * 30)."' WHERE userid=%s LIMIT 1",
 if ((IS_FORM_SENT()) && ($status == 'Y') && ($span == '0')) {
        // Save request
        SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET nl_timespan='".(getConfig('one_day') * 30)."' WHERE userid=%s LIMIT 1",
-               array(getUserId()), __FILE__, __LINE__);
+       array(getUserId()), __FILE__, __LINE__);
 
        // Load admin message
        $admin_msg = LOAD_EMAIL_TEMPLATE("admin_newsletter_request", array(), getUserId());
 
        // Load admin message
        $admin_msg = LOAD_EMAIL_TEMPLATE("admin_newsletter_request", array(), getUserId());
@@ -90,17 +90,17 @@ VALUES ('0','NEW','NL_UNSUBSCRIBE','{--ADMIN_NL_SUBJECT--}','".$admin_msg."', UN
        // Set status message and submit button
        switch ($status)
        {
        // Set status message and submit button
        switch ($status)
        {
-       case 'Y': // Receives the newsletter
-               define('__STATUS_VALUE', getMessage('NL_MEMBER_ON'));
-               define('__UNTIL_VALUE' , '');
-               define('NL_SUBMIT'     , getMessage('NL_MEMBER_SUBMIT_OFF'));
-               break;
+               case 'Y': // Receives the newsletter
+                       define('__STATUS_VALUE', getMessage('NL_MEMBER_ON'));
+                       define('__UNTIL_VALUE' , '');
+                       define('NL_SUBMIT'     , getMessage('NL_MEMBER_SUBMIT_OFF'));
+                       break;
 
 
-       case 'N': // Does not receive the newsletter
-               define('__STATUS_VALUE', getMessage('NL_MEMBER_OFF'));
-               define('__UNTIL_VALUE' , generateDateTime($until, '2'));
-               define('NL_SUBMIT'     , getMessage('NL_MEMBER_SUBMIT_ON'));
-               break;
+               case 'N': // Does not receive the newsletter
+                       define('__STATUS_VALUE', getMessage('NL_MEMBER_OFF'));
+                       define('__UNTIL_VALUE' , generateDateTime($until, '2'));
+                       define('NL_SUBMIT'     , getMessage('NL_MEMBER_SUBMIT_ON'));
+                       break;
        }
 
        // Load template and member settings
        }
 
        // Load template and member settings