1

(11 replies, posted in Feature requests)

oh yes! thanks for reminding me smile

for reference again, this is around line 80 in register.php:

// Check that someone from this IP didn't register a user within the last hour (DoS prevention)
    $result = $db->query('SELECT 1 FROM '.$db->prefix.'users WHERE registration_ip=\''.get_remote_address().'\' AND registered>'.(time() - 3600)) or error('Unable to fetch user info', __FILE__, __LINE__, $db->error());

...I guess you alter the number of seconds (3600) here

2

(11 replies, posted in Feature requests)

we had to revisited this issue today, so for reference, this is what you change:

in include/functions.php, around line 680

// Try to determine the correct remote IP-address
//
function get_remote_address()
{
    //return $_SERVER['REMOTE_ADDR'];
    return "127.0.0.1";
}

(commented out REMOTE_ADDR and replaced it with 127.0.0.1)

3

(3 replies, posted in PunBB 1.2 troubleshooting)

thanks Elzar, works like a charm!

for others, these are the lines in PunBB 1.2.11 that needs to be altered:

in register.php: line 89 + 94
in profile.php: line 210 + 718

remove strtolower( at the beginning and one ) at the end on all lines.


best, Vegard

hello all,

(I've tried to search for an answer but haven't found one.)

it seems that PunBB forces all e-mail adresses to be all lowercase. I now have a case where some users have some letters in their mail adress in uppercase - First.Last@theirserver.tld - and their mail server does not allow e-mails to first.last@theirserver.tld, which naturally causes their registrations to bounce to me.

I've tried to change their adresses as admin to include the uppercase letters, but it is again forced to lowercase. And when registring an account with an adress like this it is forced to lowercase.

is there anyway to allow for uppercase letters in e-mail adresses? I haven't found it in any admin settings, but I guess I could change it in the source code (my php skills are minimal so I would need quite a detailed explanation I'm afraid...)

running PunBB 1.2.11


best,
Vegard