public function verifyEmailToken($token, $email) { $verify = 0; $account = new Cart66Account(); $account->loadByEmail($email); if ($account->opt_out == 1) { $verify = -1; } else { $md5 = md5($account->id . $account->email . $account->created_at . '*c66*(#)'); if ($token == $md5) { $verify = 1; } else { $verify = -2; } } return $verify; }