Server : LiteSpeed System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : apotdzgr ( 7060) PHP Version : 8.0.30 Disable Function : NONE Directory : /home/apotdzgr/www/wp-content/plugins/mycryptocheckout/vendor/plainview/sdk/form2/inputs/ |
Upload File : |
<?php namespace plainview\sdk_mcc\form2\inputs; /** @brief Text input with e-mail formatting. @author Edward Plainview <edward@plainview.se> @copyright GPL v3 @version 20130524 **/ class email extends text { public $type = 'email'; public function _construct() { $this->add_validation_method( 'email' ); } public function validate_email() { $value = $this->get_post_value(); // Check the email address only if (1) it is required or (2) there is something there. if ( $value == '' && ! $this->is_required() ) return; if ( ! \plainview\sdk_mcc\base::is_email( $value ) ) $this->validation_error()->unfiltered_label( 'The e-mail address in %s is not valid!', '<em>' . $this->get_label()->content . '</em>' ); } }