ich update grade main 2.0.19 Forum auf die neue 2.0.20 und habe durch die Benutzung des Patchvorganges eine merkwürdige Anweisung in der *.Rej Datei. Normalerweise kenne ich das so, das zuerst die Zeile mit der Originalposition angezeigt wir und dann nochmal mit den Änderungen. Hier finde ich aber das:
Code: Alles auswählen
***************
*** 1047,1063 ****
}
$db->sql_freeresult($result);
! $confirm_chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9');
!
! list($usec, $sec) = explode(' ', microtime());
! mt_srand($sec * $usec);
!
! $max_chars = count($confirm_chars) - 1;
! $code = '';
! for ($i = 0; $i < 6; $i++)
! {
! $code .= $confirm_chars[mt_rand(0, $max_chars)];
! }
$confirm_id = md5(uniqid($user_ip));
--- 1051,1060 ----
}
$db->sql_freeresult($result);
! // Generate the required confirmation code
! // NB 0 (zero) could get confused with O (the letter) so we make change it
! $code = dss_rand();
! $code = strtoupper(str_replace('0', 'o', substr($code, 6)));
$confirm_id = md5(uniqid($user_ip));
***************
Vielen Dank im voraus