Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/10/2018 in all areas

  1. Blesta Addons

    Block certain TLD's?

    i have tested the code now, you can use this regex 'cpanel_domain' => [ 'format' => [ 'rule' => [[$this, 'validateHostName']], 'message' => Language::_('Cpanel.!error.cpanel_domain.format', true) ], 'test' => [ 'rule' => ['substr_compare', 'test', 0, 4, true], 'message' => Language::_('Cpanel.!error.cpanel_domain.test', true) ], 'block' => [ // 'if_set' => true, 'rule' => ['matches', '/^((?!.ga|.tk|.td|.cf).)*$/'], 'message' => 'this domain is not alowded' ], ],
    2 points
  2. mobbdeep

    Block certain TLD's?

    This worked. Thank you!
    1 point
×
×
  • Create New...