比思論壇

標題: 禁止使用純數字註冊 [打印本頁]

作者: admin    時間: 2011-2-17 12:21
標題: 禁止使用純數字註冊
修改文件2個:
打開source\module\member\member_register.php
查找第一處(共有3處),在第176行:
  1. if(!$activation) {
複製代碼
  1. if(preg_match('/^\d*$/', $username)) {
  2. showmessage('profile_username_isnumber');


  3. }
複製代碼
打開source\language\lang_message.php
查找
  1. 'profile_username_toolong' => '對不起,你的用戶名超過 15 個字符,請返回輸入一個較短的用戶名。',
複製代碼
  1. 'profile_username_isnumber' => '對不起,本站不允許使用純數字作為用戶名。',
複製代碼





歡迎光臨 比思論壇 (http://108.170.5.76/) Powered by Discuz! X2.5