getMaxTextLength()) { // Text is too long! $filterData['redirect'] = 'modules.php?module=login&what=order&code=' . getCode('OVERLENGTH'); interruptFilterChain(); } // END - if } // END - if // Return the data for next filter //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); return $filterData; } // Filter for generic check of mail type function FILTER_MAIL_ORDER_GENERIC_CHECK_TYPE ($filterData) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); // Is mail type set? if ((!isset($filterData['mail_type'])) || ($filterData['mail_type'] < 1)) { // Not correctly set $filterData['redirect'] = 'modules.php?module=login&what=order&code=' . getCode('NO_MAIL_TYPE'); interruptFilterChain(); } // END - if // Return the data for next filter //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); return $filterData; } // Filter for generic check of URL function FILTER_MAIL_ORDER_GENERIC_CHECK_URL ($filterData) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); // Validate URL if (!isUrlValid($filterData['url'])) { // URL is invalid! $filterData['redirect'] = 'modules.php?module=login&what=order&code=' . getCode('INVALID_URL'); interruptFilterChain(); } // END - if // Return the data for next filter //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); return $filterData; } // Filter for generic check of receiver amount function FILTER_MAIL_ORDER_GENERIC_CHECK_RECEIVER ($filterData) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); // Enougth receivers entered? if (($filterData['receiver'] < getOrderMin()) && (!isAdmin())) { // Less than allowed receivers entered! $filterData['redirect'] = 'modules.php?module=login&what=order&code=' . getCode('MORE_RECEIVERS3'); interruptFilterChain(); } // END - if // Return the data for next filter //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); return $filterData; } // [EOF] ?>