From 305d6eacc126cd5f0897b21698bc955c6e5129fa Mon Sep 17 00:00:00 2001 From: painejake Date: Tue, 4 Apr 2017 12:49:25 +0100 Subject: [PATCH] Add .email template --- Templates/Email.php | 119 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 Templates/Email.php diff --git a/Templates/Email.php b/Templates/Email.php new file mode 100644 index 0000000..dc8c9b1 --- /dev/null +++ b/Templates/Email.php @@ -0,0 +1,119 @@ + '/Domain Name(?>[\x20\t]*)(.*?)(?=Registrant Name)/is', + 2 => '/Registrant Name(?>[\x20\t]*)(.*?)(?=Admin Name)/is', + 3 => '/Admin Name(?>[\x20\t]*)(.*?)(?=Tech Name)/is', + 4 => '/Tech Name(?>[\x20\t]*)(.*?)(?=Name Server)/is', + 5 => '/Name Server(?>[\x20\t]*)(.*?)$/is', + ); + + /** + * Items for each block + * + * @var array + * @access protected + */ + protected $blockItems = array( + 1 => array( + // Registrar Details + '/Registry Registrant ID(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'registrar:id', + '/Registrar(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'registrar:name', + '/Abuse Contact Email(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'registrar:email', + '/Registrar Abuse Contact Phone(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'registrar:phone', + '/Registrar URL(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'registrar:url', + + // Registration Details + '/^creation date:(.+)$/im' => 'created', + '/^updated date:(.+)$/im' => 'changed', + '/^registry expiry date:(.+)$/im' => 'expires', + '/^domain status:(.+)$/im' => 'registered', + ), + 2 => array( + // Owner details + '/Registrant Name(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:owner:name', + '/Registrant Organization(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:owner:organization', + '/Registrant Street(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:owner:address', + '/Registrant City(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:owner:city', + '/Registrant State\/Province(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:owner:state', + '/Registrant Postal Code(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:owner:zipcode', + '/Registrant Country(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:owner:country', + '/Registrant Phone(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:owner:phone', + '/Registrant Fax(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:owner:fax', + '/Registrant Email(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:owner:email', + ), + 3 => array( + // Admin details + '/Admin Name(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:admin:name', + '/Admin Organization(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:admin:organization', + '/Admin Street(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:admin:address', + '/Admin City(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:admin:city', + '/Admin State\/Province(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:admin:state', + '/Admin Postal Code(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:admin:zipcode', + '/Admin Country(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:admin:country', + '/Admin Phone(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:admin:phone', + '/Admin Fax(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:admin:fax', + '/Admin Email(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:admin:email', + ), + 4 => array( + // Tech details + '/Tech Name(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:tech:name', + '/Tech Organization(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:tech:organization', + '/Tech Street(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:tech:address', + '/Tech City(?>[\.]*):(?>[\x20\t]*)(.+)$/im' => 'contacts:tech:city', + '/Tech State\/Province(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:tech:state', + '/Tech Postal Code(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:tech:zipcode', + '/Tech Country(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:tech:country', + '/Tech Phone(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:tech:phone', + '/Tech Fax(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:tech:fax', + '/Tech Email(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'contacts:tech:email', + ), + 5 => array( + // Name servers + '/Name Server(?>[\.]*):(?>[\x20\t]*)(.*)$/im' => 'nameserver', + ) + ); +} \ No newline at end of file