ich habe ein Forum quasi "übernommen" - keine Info über irgendwas, Mods oder sonstiges - nun also heute ein update von 2.0.21 auf 2.0.22 gemacht - löppt, allet jut!
Nun gabs aber ein paar Probleme mit den Freunden von der Spam-Fraktion, also dacht ich, bauste mal fluchs den AVC ein.
Nun stoß ich auf folgendes Problem:
Diesen Code soll ich finden
- Code: Alles auswählen
// Generate the required confirmation code
// NB 0 (zero) could get confused with O (the letter) so we make change it
$code = dss_rand();
$code = substr(str_replace('0', 'Z', strtoupper(base_convert($code, 16, 35))), 2, 6);
und mit folgendem ersetzen
- Code: Alles auswählen
// Generate the required confirmation code
$code_length = mt_rand(4, 6);
$code = dss_rand();
$code = strtoupper(base_convert($code, 16, 35));
$code = str_replace('I', '', $code); // The letter I could get confused with the letter J and the number 1 (one) so we remove it
$code = str_replace('0', '', $code); // NB 0 (zero) could get confused with O (the letter) so we remove it
$code = substr($code, 2, $code_length);
Nun finde ich aber in der usercp_regsiter.php folgenden Code
- Code: Alles auswählen
// Generate the required confirmation code
// NB 0 (zero) could get confused with O (the letter) so we make change it
$code = dss_rand();
$code = substr(str_replace('0', 'Z', strtoupper(base_convert($code, 16, 35))), 2, 6);
$confirm_id = md5(uniqid($user_ip));
$sql = 'INSERT INTO ' . CONFIRM_TABLE . " (confirm_id, session_id, code)
VALUES ('$confirm_id', '". $userdata['session_id'] . "', '$code')";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not insert new confirm code information', '', __LINE__, __FILE__, $sql);
}
unset($code);
$confirm_image = '<img src="' . append_sid("profile.$phpEx?mode=confirm&id=$confirm_id") . '" alt="" title="" />';
$s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';
$template->assign_block_vars('switch_confirm', array());
Tja, und nu steh ich auf dem Schlauch!
Wißt Ihr Rat?
Viele Grüße vom
Steinchen