沙滩今天来了没?等你呢..
--------------------------------------------------------------------------------
沙滩 TRIM掉还是想输出ERROR两种都想要..
能具体点,越具体越好...
比如,那个文件,查找某关键词 在上面 or下面 or replach 某代码...
|
|
#2 (页面定位) | |
![]() 注册日期: 2005-09-06
住址: Wuhan
帖子: 1203
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
………………
晕 抱歉, 我总忽略了你 因为每次来CH都是吃饭时间…… 今天一定写给你 ![]() 引用:
|
|
|
|
|
|
|
#3 (页面定位) | |
![]() 注册日期: 2005-09-06
住址: Wuhan
帖子: 1203
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
俺就给你写TRIM版吧……
否则还要加短语什么的 麻烦着哪…… 修改 register.php 搜索 代码:
// check for missing fields
if (empty($vbulletin->GPC['username'])
OR empty($vbulletin->GPC['email'])
OR empty($vbulletin->GPC['emailconfirm'])
OR ($vbulletin->GPC['coppauser'] AND empty($vbulletin->GPC['parentemail']))
OR (empty($vbulletin->GPC['password']) AND empty($vbulletin->GPC['password_md5']))
OR (empty($vbulletin->GPC['passwordconfirm']) AND empty($vbulletin->GPC['passwordconfirm_md5']))
)
{
$userdata->error('fieldmissing');
}
代码:
$vbulletin->GPC['username'] = str_replace(' ', '', $vbulletin->GPC['username']);
![]() 引用:
|
|
|
|
|