OK…
Had a few more minutes ( a result of not wanting to shovel snow & ice )
Here is a crude fix to make it work…
Go to the allmon directory and open login.php
replace the following text at the bottom of the file… (eveything you see)
Start here>>>
fclose($fp);
// First, try DES and Blowfish.
$test_pw = crypt($pass, $fpass); // Use original crypt'ed password to supply salt.
if($test_pw == $fpass); // authentication success.
// >
$line = substr($user, 0, 6) . " - " . date(‘Y-m-d H:i:s’) . " - $_SERVER[REMOTE_ADDR]";
file_put_contents(‘iplog.txt’, $line . PHP_EOL, FILE_APPEND);
// <
return TRUE;
// If we're still testing, try APR1-MD5
$test_pw = crypt_apr1_md5($pass, $fpass); // Use original crypt'ed password to supply salt.
if($test_pw == $fpass); // authentication success.
// >
$line = substr($user, 0, 6) . " - " . date(‘Y-m-d H:i:s’) . " - $_SERVER[REMOTE_ADDR]";
file_put_contents(‘iplog.txt’, $line . PHP_EOL, FILE_APPEND);
// <
return TRUE;
// Password didn't match. Bail out.
return FALSE;
<< end here.
Copy what you see and paste it in your file to match the begging and the end of what you see.
I highlighted the major inserts, but there was some sytax changes within existing.
So this will create a file that is appended in the allmon directory with the first 6 digits of the login username, date and ip address on each line. Named ‘iplog.txt’
I had to use the method of just grabbing the first 6 digits of the username as I was having issues parsing the appache user string. So smaller user names may show with unexpected char’s.
Gives you a framework to make it what you want.
you might need to touch/create the initial filename and give it write permissions ???
Make a backup of your original file before you start.