public function SetupFields() { $this->CreateTable('users'); $this->AddField('username', 'username', 'users', 'Username', itTEXT); $this->AddField('password', 'password', 'users', 'Password', itPASSWORD); $this->AddField('role', 'role', 'users'); $this->AddField('email_confirm_code', 'email_confirm_code', 'users'); uEmailer::InitialiseTemplate('account_activate', 'Confirm your email address', '<p>Please verify your email by clicking the link below:</p><p><a href="{home_url_abs}/{activate_link}">{home_url_abs}/{activate_link}</a></p>', array('email', 'active_link')); }
public function SetupParents() { $this->SetRewrite(array('{e}', '{c}')); uEmailer::InitialiseTemplate('account_resetpw', 'Reset your password', '<p>You can reset your password by clicking the link below:</p><p><a href="{home_url_abs}/{activate_link}">{home_url_abs}/{activate_link}</a></p>', array('email', 'activate_link')); }