Functionality disabled
'; } elseif (isset($_POST['submit']) && ($_POST['submit'] == "Reset Password") && preg_match("/^\w+$/",$_POST['uname'])) { if (oc_strtolower($OC_configAR['OC_chair_uname']) != oc_strtolower($_POST['uname'])) { print 'Chair username entered is invalid.
'; } else { // username valid $newpwd = newPassword(); updateConfigSetting('OC_chair_pwd', hashPassword($newpwd)) or err('Unable to create new password'); $msg = ' Per your request, we have issued you a new Chair password for accessing the ' . $OC_configAR['OC_confName'] . ' OpenConf system. The new password is: ' . $newpwd . ' You may change this password at any time by signing in to the OpenConf system and updating your profile. '; if (sendEmail($OC_configAR['OC_pcemail'], "Chair Password Reset", $msg)) { print 'We have emailed you a new password. Once you receive it, please sign in and change it.'; } else { warn('We have generated a new password for you, but were unable to email it. Please contact the OpenConf administrator'); } } } else { print 'Enter Chair\'s username and click the Reset Password button
'; } printFooter(); ?>