摘要:
$this->User->id = $user['User']['id']; $this->User->saveField("last_login", time()); 阅读全文
摘要:
1、数据库必须要有的字段,email(会员邮箱地址)key(随机激活码,可以使用md5(rand(10000,99999)这样极简单的)active(bool类型,默认为0,激活后变成1)还可以有其它信息之类的字段2、注册的时候插入数据库里的有:填写的邮箱、生成一个随机的字符串放在key里、active默认为03、插入数据后发送邮件,你可以搜索phpmailer,比较简单,发送的类容是一条链接,格式如下:http://www.xxxxxx.com/active.php?username=用户名&active=激活码4、你建一个active.php的文件,内容就是查询该用户的资料,如果u 阅读全文