public function ajaxupdatememberAction() { if (count($_POST)) { $auth = Zend_Auth::getInstance(); $member = new FM_Components_Member(array('uname' => $auth->getIdentity())); if (FM_Components_Member::update(array('uid' => $member->getId()), $_POST)) { print '1'; exit; } else { print '0'; exit; } } }
public function ajaxupdatepwdAction() { if ($_POST) { $member = new FM_Components_Member(array('pwd' => $_POST['old'])); if ($member && $member->getId()) { if (FM_Components_Member::update(array('id' => $member->getId()), array('pwd' => $_POST['newPwd']))) { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: Password Admin @ 4Monmouth.com' . "\r\n" . 'Reply-To: nobody@4monmouth.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($member->getEmail(), 'Password Change @ 4Monmouth.com', FM_Components_EmailFormatter::updatePasswordNoOrg($_POST), $headers); print '1'; exit; } } print '2'; exit; } print '0'; exit; }
public function ajaxupdateuserinfoAction() { if ($_POST['uid']) { if (FM_Components_Member::update(array('uid' => $_POST['uid']), array($_POST['key'] => $_POST['value']))) { print '1'; exit; } else { print '0'; exit; } } }