我最近发现这个名为usercake(http://usercake.com/)的小用户类脚本,具有所有基本功能,似乎运行良好.
我的问题:第一个用户被添加到数据库中,但之后它无法正常工作.很明显,我只是有点错误,我没有搞清楚(我不太了解oop php).没有错误发生(我可以看到),电子邮件被发送出去.
我用同样的命运安装了多个地方.我想解决它,因为使用这个脚本可以节省大量重新启动轮时间.
这是我拥有它的URL:http://rawcomposition.com/birding/loggedin/register.php 这是在验证所有内容后调用的函数:
public function userCakeAddUser()
{
global $db,$emailActivation,$websiteUrl,$db_table_prefix;
//Prevent this function being called if there were construction errors
if($this->status)
{
//Construct a secure hash for the plain text password
$secure_pass = generateHash($this->clean_password);
//Construct a unique activation token
$this->activation_token = generateActivationToken();
//Do we need to send out an activation email?
if($emailActivation)
{
//User must activate their account first
$this->user_active = 0;
$mail = new userCakeMail();
//Build the activation message
$activation_message = lang("ACTIVATION_MESSAGE",array($websiteUrl,$this->activation_token));
//Define …Run Code Online (Sandbox Code Playgroud)