<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
<?php /** * sfValidatorEmailMx validates emails width mx record. * * @package symfony * @subpackage validator * @author Rustam Miniakhmetov <pycmam[at]gmail.com> */ class sfValidatorEmailMx extends sfValidatorEmail { /** * @see sfValidatorEmail */ protected function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $ this ->addMessage( 'mx_error' , 'No MX records for domain %domain%.' ); } protected function doClean($value) { $value = parent::doClean($value); list(,$domain) = explode( '@' , $value); if ($ this ->checkMx($domain)) { return $value; } else { throw new sfValidatorError($ this , 'mx_error' , array( 'domain' => $domain)); } } protected function checkMx($domain) { if (function_exists( 'checkdnsrr' )) { return ( bool )checkdnsrr($domain, 'MX' ); } else { return true ; } } } * This source code was highlighted with Source Code Highlighter .
* This source code was highlighted with Source Code Highlighter .
- <? php
- // ...
- $ this -> validatorSchema [ 'mail' ] = new sfValidatorEmailMx (array (), array (
- 'invalid' => 'E-Mail was entered incorrectly.' ,
- 'max_length' => 'Maximum length of email% max_length% characters.' ,
- 'mx_error' => 'There can be no% domain% mail on the server.' ,
- ))
Source: https://habr.com/ru/post/51240/
All Articles