function registerNow() { $members = new Members(); $members->setValues($_REQUEST); if ($members->newMember()) { Common::jsonSuccess("Member Added Successfully"); } else { Common::jsonError("Error"); } }
function changeLogin() { $members = new Members(); $oldMember = new Members(); $mailClass = new mailClass(); $members->setValues($_REQUEST); $oldMember->setMemberUsername($_REQUEST['members_username_log']); $oldMember->extractor($oldMember->getMemberByUsername()); if ($members->changeLogin()) { $mailClass->MemberChangeLogin($oldMember->memberTitle(), $oldMember->memberFirstName(), $oldMember->memberLastName(), $_REQUEST['members_username_log'], $oldMember->memberEmail(), $_REQUEST['member_password']); Common::jsonSuccess(""); } else { Common::jsonError("Error"); } }