WWWAdmin works, but the password parts don't!Short Answer:This is most likely because you do not have the crypt function available to use or the crypt function on your OS us different than the one on the machine I created these scripts on.
Long Answer:Here are some fixes:
WebAdmin:aeb/uHhRv6x2LQvxyii4Azf1Systems Not Supporting Crypt (Macintosh, Windows, etc..):
$test_passwd = crypt($FORM{'password'}, substr($passwd, 0, 2)); if ($test_passwd eq $passwd && $FORM{'username'} eq $username) { open(PASSWD,">$basedir/$passwd_file") || &error(no_change); $new_password = crypt($FORM{'passwd_1'}, substr($passwd, 0, 2)); ...Change this to: if ($FORM{'password'} eq $passwd && $FORM{'username'} eq $username) { open(PASSWD,">$basedir/$passwd_file") || &error(no_change); $new_password = $FORM{'passwd_1'}; ... Then, on line 678 (almost the end) you will find a block of code: $test_passwd = crypt($FORM{'password'}, substr($passwd, 0, 2)); if (!($test_passwd eq $passwd && $FORM{'username'} eq $username)) { &error(bad_combo); }Change this to: if (!($FORM{'password'} eq $passwd && $FORM{'username'} eq $username)) { &error(bad_combo); } Then, open up passwd.txt (or whatever you renamed your password file to) and change the line from: WebAdmin:aepTOqxOi4i8UTo: WebAdmin:WebBoardOr whatever you want your new username:password combination to be.
|