Jump to content

Tobias

Member
  • Posts

    2
  • Joined

  • Last visited

About Tobias

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Tobias's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Corrected Version: <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); function userdata_field_matches($fieldname,$value,$all_vars) { return (array_key_exists($fieldname,$all_vars) && preg_match("/$value/",$all_vars[$fieldname])); } function block_fuli8_tk($vars) { if (userdata_field_matches("email", "@qq\.com", $vars)) return "Error: Userdata validation error"; if (userdata_field_matches("lastname", "fuli8\.tk", $vars)) return "Error: Userdata validation error"; if (userdata_field_matches("firstname", "5666Q\.COM", $vars)) return "Error: Userdata validation error"; } add_hook("ClientDetailsValidation",1,"block_fuli8_tk"); ?>
  2. As a workaround place this snippet in your $WHMCS_ROOT/include/hooks folder: <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); function userdata_field_matches($fieldname,$value,$all_vars) { return (array_key_exists($fieldname,$all_vars) && preg_match("/$value/",$all_vars[$fieldname]); } function validate_user_data($vars) { if (userdata_field_matches("email", "@qq\.com", $vars) return "Error: Userdata validation error"; if (userdata_field_matches("lastname", "fuli8\.tk", $vars) return "Error: Userdata validation error"; if (userdata_field_matches("firstname", "5666Q\.COM", $vars) return "Error: Userdata validation error"; } add_hook("ClientDetailsValidation",1,"validate_user_data"); ?>
  3. Welcome to WHMCS.Community Tobias! We're glad you're here please take some time to familiarise yourself with the Community Rules & Guidelines and take a moment to introduce yourself to other WHMCS.Community members in the Introduce Yourself Board.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated