<?php
+date_default_timezone_set('Europe/Amsterdam');
+
function login_password_verify($input, $test)
{
if (substr($test, 0, 1) != '$') {
}
# find password data by user name
- $userdir = 'profile/'.strtolower($inuser);
+ $userdir = 'profile/'.preg_replace('/[^a-z0-9]+/', '-', strtolower($inuser));
$pwfile = "$userdir/.passwd";
if (!file_exists($pwfile)) return;
$usertest = trim(file_get_contents($pwfile));