Create a php file called for example
updatepassword.php and upload it to the same directory as your
settings.php. The file should look like this:
Code:
<?
include(Settings.php");
$user_info = mysql_query("SELECT * FROM $UserTable WHERE ugroup <> 'admin'");
while ($u = mysql_fetch_array($user_info))
{
$userpassword = md5($u[password]);
mysql_query("UPDATE $UserTable SET password = '$userpassword' WHERE login = '$u[login]'");
echo $u[login] .'\'s password updated<BR />';
}
?>
Only run the file once and delete it from your server after.
This script requires that you've uploaded the user passwords as clear text (i.e. readable by humans). All passwords except for the admin password will be encrypted.
/Bylla