]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-order.php
Introduced (means, being added and then used) more wrappers for ext-order/other
[mailer.git] / inc / modules / member / what-order.php
index a084b89e4a183d00f3de18ee64636fefff2e7cc4..f0d56c922af0e6d8fbffa81a0d71af5104a97af6 100644 (file)
@@ -100,7 +100,7 @@ LIMIT 1",
                 * and check the text and subject against some filters
                 */
                $data['url'] = '';
-               if (getConfig('allow_url_in_text') == 'Y') {
+               if (!isAllowUrlInTextEnabled()) {
                        // Test submitted text against some filters (length, URLs in text etc.)
                        if ((isInStringIgnoreCase('https://', postRequestElement('text'))) || (isInStringIgnoreCase('http://', postRequestElement('text'))) || (isInStringIgnoreCase('www', postRequestElement('text')))) {
                                // URL found
@@ -118,7 +118,7 @@ LIMIT 1",
                } // END - if
 
                // Shall I test the subject line against URLs?
-               if (getConfig('allow_url_in_subject') == 'Y') {
+               if (!isAllowUrlInSubjectEnabled()) {
                        // Check the subject line for issues
                        setPostRequestElement('subject', str_replace(chr(92), '[nl]', substr(postRequestElement('subject'), 0, 200)));
                        if ((isInStringIgnoreCase('https://', postRequestElement('subject'))) || (isInStringIgnoreCase('http://', postRequestElement('subject'))) || (isInStringIgnoreCase('www', postRequestElement('subject')))) {
@@ -134,7 +134,7 @@ LIMIT 1",
                } // END - if
 
                // Enougth receivers entered?
-               if ((postRequestElement('receiver') < getConfig('order_min')) && (!isAdmin())) {
+               if ((postRequestElement('receiver') < getOrderMin()) && (!isAdmin())) {
                        // Less than allowed receivers entered!
                        $data['url'] = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('MORE_RECEIVERS3');
                } // END - if