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 '

' . OCC_WORD_CHAIR . ' username entered is invalid.

'; } else { // username valid $newpwd = oc_password_generate(); updateConfigSetting('OC_chair_pwd', oc_password_hash($newpwd)) or err('Unable to create new password'); $msg = ' Per your request, we have issued you a new ' . OCC_WORD_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'], OCC_WORD_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 ' . OCC_WORD_CHAIR . '\'s username and click the Reset Password button


'; } printFooter(); ?>