spacecp_profilevalidate.php 546 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: spacecp_profilevalidate.php 6790 2010-03-25 12:30:53Z cnteacher $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. $profilevalidate = array(
  12. 'telephone' => '/^((\\(?\\d{3,4}\\)?)|(\\d{3,4}-)?)\\d{7,8}$/',
  13. 'mobile' => '/^(\+)?(86)?0?1\\d{10}$/',
  14. 'zipcode' => '/^\\d{5,6}$/',
  15. 'revenue' => '/^\\d+$/',
  16. 'height' => '/^\\d{1,3}$/',
  17. 'weight' => '/^\\d{1,3}$/',
  18. 'qq' => '/^[1-9]*[1-9][0-9]*$/'
  19. );
  20. ?>