} // Update their password so they are sha1 encrypted mysql_update("UPDATE `accounts` SET `password`='{$p_pass}' WHERE `id`='{$old}';"); $updated_pass += 1; } } } // validate players if ($all_account !== false) { $time = time(); foreach ($all_account as $all) { $chars = user_character_list_player_id($all); if ($chars !== false) { // since char list is not false, we found a character list // Lets loop through the character list foreach ($chars as $c) { // Is character not compatible yet? if (user_character_is_compatible($c) == 0) { // Then lets make it compatible: mysql_insert("INSERT INTO `znote_players` (`player_id`, `created`, `hide_char`, `comment`) VALUES ('{$c}', '{$time}', '0', '')"); $updated_char += 1; } } } } } echo "<br><b><font color=\"green\">SUCCESS</font></b><br><br>"; echo 'Updated accounts: ' . $updated_acc . '<br>'; echo 'Updated characters: : ' . $updated_char . '<br>'; echo 'Detected:' . $updated_pass . ' accounts with plain passwords. These passwords has been given sha1 encryption.<br>'; echo '<br>All accounts and characters are compatible with Znote AAC<br>';
// Update their password so they are sha1 encrypted mysql_update("UPDATE `accounts` SET `password`='{$p_pass}' WHERE `id`='{$old}';"); $updated_pass += 1; } } } // validate players if ($all_account !== false) { $time = time(); foreach ($all_account as $all) { $chars = user_character_list_player_id($all); if ($chars !== false) { // since char list is not false, we found a character list // Lets loop through the character list foreach ($chars as $c) { // Is character not compatible yet? if (user_character_is_compatible($c['id']) == 0) { // Then lets make it compatible: $cid = $c['id']; mysql_insert("INSERT INTO `znote_players` (`player_id`, `created`, `hide_char`, `comment`) VALUES ('{$cid}', '{$time}', '0', '')"); $updated_char += 1; } } } } } echo "<br><b><font color=\"green\">SUCCESS</font></b><br><br>"; echo 'Updated accounts: ' . $updated_acc . '<br>'; echo 'Updated characters: : ' . $updated_char . '<br>'; echo 'Detected:' . $updated_pass . ' accounts with plain passwords. These passwords has been given sha1 encryption.<br>'; echo '<br>All accounts and characters are compatible with Znote AAC<br>';