Code style changed, ext-user continued:
[mailer.git] / inc / modules / member / what-order.php
index 8914ad5202f5f25d3ccdba8785d88a8507a966ac..16eb57d7a2afd0f2dee71c34f07e3ef5057c6848 100644 (file)
@@ -294,7 +294,7 @@ LIMIT 1",
                                                                postRequestElement('url'),
                                                                bigintval(postRequestElement('cat')),
                                                                bigintval($content['target_send']),
-                                                               bigintval(postRequestElement('zip'), true, false),
+                                                               bigintval(postRequestElement('zip'), TRUE, FALSE),
                                                                postRequestElement('html')
                                                        ), __FILE__, __LINE__);
                                        } else {
@@ -335,7 +335,7 @@ LIMIT 1",
                                                                postRequestElement('url'),
                                                                bigintval(postRequestElement('cat')),
                                                                bigintval($content['target_send']),
-                                                               bigintval(postRequestElement('zip'), true, false),
+                                                               bigintval(postRequestElement('zip'), TRUE, FALSE),
                                                        ), __FILE__, __LINE__);
                                        }
 
@@ -478,7 +478,7 @@ ORDER BY
                                $userid_cnt = '0';
                                while (list($userid) = SQL_FETCHROW($result_userids)) {
                                        // Check for holiday system
-                                       $isHolidayActive = false;
+                                       $isHolidayActive = FALSE;
                                        if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
                                                // Check user's holiday status
                                                $result_holiday = SQL_QUERY_ESC("SELECT
@@ -509,7 +509,7 @@ LIMIT 1",
                                                $isHolidayActive = ($count == 1);
                                        } // END - if
 
-                                       if ($isHolidayActive === false) {
+                                       if ($isHolidayActive === FALSE) {
                                                // Check if the user want's to receive mails?
                                                $result_ver = SQL_QUERY_ESC("SELECT `zip` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid`=%s".$HTML." AND `receive_mails` > 0 AND `status`='CONFIRMED' LIMIT 1",
                                                        array(bigintval($userid)), __FILE__, __LINE__);
@@ -578,10 +578,10 @@ LIMIT 1",
                                } // END - switch
 
                                // Load final template
-                               loadTemplate('member_order_points', false, $content);
+                               loadTemplate('member_order_points', FALSE, $content);
 
                                // Reset variables
-                               $OLD_ORDER = false;
+                               $OLD_ORDER = FALSE;
                                $subject = '';
                                $text = '';
                                $target = '';
@@ -615,7 +615,7 @@ LIMIT 1",
                                        } // END - if
 
                                        // Old order is grabbed
-                                       $OLD_ORDER = true;
+                                       $OLD_ORDER = TRUE;
                                } else {
                                        // Default output for that your members don't forget it...
                                        $content['url']         = 'http://';
@@ -647,7 +647,7 @@ LIMIT 1",
 
                                        if (isPostRequestElementSet('zip')) {
                                                // Output entered ZIP code
-                                               $content['zip_content'] = loadTemplate('member_order_zip2', true, postRequestElement('zip'));
+                                               $content['zip_content'] = loadTemplate('member_order_zip2', TRUE, postRequestElement('zip'));
                                        } // END - if
 
                                        // No HTML extension installed by default
@@ -656,11 +656,11 @@ LIMIT 1",
                                        // HTML extension
                                        if ((isExtensionActive('html_mail')) && (postRequestElement('html') == 'Y')) {
                                                // Extension is active so output valid HTML tags
-                                               $content['html_extension'] = loadTemplate('member_order_html_ext', true);
+                                               $content['html_extension'] = loadTemplate('member_order_html_ext', TRUE);
                                        } // END - if
 
                                        // Output form for page 2
-                                       loadTemplate('member_order_page2', false, $content);
+                                       loadTemplate('member_order_page2', FALSE, $content);
                                } else {
                                        // No HTML extension installed by default
                                        $content['html_extension'] = '<input type="hidden" name="html" value="N" />';
@@ -668,7 +668,7 @@ LIMIT 1",
                                        // Remember maybe entered ZIP code in constant
                                        if (isExtensionActive('html_mail')) {
                                                // Add some content when html extension is active
-                                               $content['html_extension'] = loadTemplate('member_order_html_intro', true);
+                                               $content['html_extension'] = loadTemplate('member_order_html_intro', TRUE);
                                        } // END - if
 
                                        // Default is no ZIP code
@@ -686,11 +686,11 @@ LIMIT 1",
                                                                'zip' => ''
                                                        );
                                                }
-                                               $content['zip_content'] = loadTemplate('member_order_zip1', true, $data);
+                                               $content['zip_content'] = loadTemplate('member_order_zip1', TRUE, $data);
                                        } // END - if
 
                                        // Output form for page 1 (ZIP code or HTML)
-                                       loadTemplate('member_order_page1', false, $content);
+                                       loadTemplate('member_order_page1', FALSE, $content);
                                }
                        } else {
                                // No mail types defined