' . oc_('Email address entered is invalid') . '

'; printFooter(); exit; } $q = "SELECT reviewerid, username, email FROM " . OCC_TABLE_REVIEWER . " WHERE email='" . safeSQLstr(oc_strtolower($_POST['email'])) . "'"; $r = ocsql_query($q) or err("Error checking email ".mysql_errno()); if (($rnum=mysql_num_rows($r)) == 0) { print '

' . oc_('Email address entered is invalid') . ' (2)

'; } elseif ($rnum > 1) { err("multiple accounts with this email address"); } else { $e = mysql_fetch_array($r); //T: %s = conference short name (e.g., CONF2012) $msg = "\n" . sprintf(oc_('Your username for accessing the %s OpenConf system is:'), $OC_configAR['OC_confName']) . "\n\n " . $e['username'] . "\n\n"; sendEmail($_POST['email'], oc_('Username Recovery'), $msg, $OC_configAR['OC_notifyReviewerEmailUsername']); print sprintf(oc_('We have emailed your username. Once you receive it, you may sign in here.'), 'signin.php') . '

'; printFooter(); exit; } } else { print '

' . oc_('Please enter the email you registered with below') . '

'; } print '
' . oc_('Email') . ':

'; printFooter(); ?>