<?php
function userbymail($email)
{
+ $email = strtolower($email);
foreach (glob("profile/*") as $useropt) {
if ($mailopt = @file_get_contents("$useropt/email.txt")
- and rtrim($mailopt) == $email) {
+ and strtolower(rtrim($mailopt)) == $email) {
return substr($useropt, strlen('profile/'));
}
}