* 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
} // 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')))) {
} // 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&what=order&code=' . getCode('MORE_RECEIVERS3');
} // END - if