Ignore:
Timestamp:
May 22, 2006 5:29:19 AM (18 years ago)
Author:
scdev
Message:

Q - Added "sc-" to all css class selectors; Finished reworking Upload and ImageThumb? (now with GD support!); More PHP 5 upgrades.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FormValidator.inc.php

    r119 r121  
    426426        return true;
    427427    }
    428 //     function validateEmail($form_name, $allow_fullname=false)
    429 //     {
    430 //         $email = getFormData($form_name);
    431 //         if ('' == trim($email)) {
    432 //             return false;
    433 //         }
    434 //
    435 //         // Test email address format.
    436 //         if ($allow_fullname) {
    437 //             if (!$this->checkRegex($form_name, '/^[^<>@]*<?[^\s@\[\]<>()]+\@[A-Za-z0-9.-]+\.[A-Za-z]{2,5}>?$/i', true, sprintf(_("<strong>%s</strong> is not a valid email address."), $email))) {
    438 //                 App::logMsg(sprintf('The email address %s is not valid.', getFormData($form_name)), LOG_DEBUG, __FILE__, __LINE__);
    439 //                 return false;
    440 //             }
    441 //         } else {
    442 //             if (!$this->checkRegex($form_name, '/^[^\s@\[\]<>()]+\@[A-Za-z0-9.-]+\.[A-Za-z]{2,5}$/i', true, sprintf(_("<strong>%s</strong> is not a valid email address."), $email))) {
    443 //                 App::logMsg(sprintf('The email address %s is not valid.', getFormData($form_name)), LOG_DEBUG, __FILE__, __LINE__);
    444 //                 return false;
    445 //             }
    446 //         }
    447 //
    448 //         // Test length.
    449 //         if (!$this->stringLength($form_name, 0, 255, sprintf(_("<strong>Email address</strong> must contain less than 256 characters."), $email))) {
    450 //             App::logMsg(sprintf('The email address %s must contain less than 256 characters.', getFormData($form_name)), LOG_DEBUG, __FILE__, __LINE__);
    451 //             return false;
    452 //         }
    453 //
    454 //         // Check domain exists and has valid MX record.
    455 //         preg_match('/^[^<>@]*<?[^\s@\[\]<>()]+\@([A-Za-z0-9.-]+\.[A-Za-z]{2,5})>?$/i', $email, $matches);
    456 //         if (!empty($matches[1])) {
    457 //             if (!checkdnsrr($matches[1] . '.', 'MX') && gethostbyname($matches[1]) == $matches[1]) {
    458 //                 $this->addError($form_name, sprintf(_("<strong>%s</strong> is not a valid email domain name"), $matches[1]));
    459 //                 App::logMsg(sprintf('The email address %s contains an invalid email domain name (%s).', getFormData($form_name), $matches[1]), LOG_DEBUG, __FILE__, __LINE__);
    460 //                 return false;
    461 //             }
    462 //         }
    463 //
    464 //         return true;
    465 //     }
    466428
    467429    /**
Note: See TracChangeset for help on using the changeset viewer.