Ok, dokładniejsza instrukcja, powinno działać na 99,9%. Edytuj wcześniejsze kopie bezpieczeństwa.
header.php:
$forum_head['microid'] = '<meta name="microid" content="mailto+http:sha1:'.sha1(sha1('mailto:'.$user['email']).sha1(forum_link($forum_url['user'], $id))).'" />';
zamień na:
$forum_head['microid'] = '<meta name="microid" content="mailto+http:sha1:'.md5(md5('mailto:'.$user['email']).md5(forum_link($forum_url['user'], $id))).'" />';
login.php:
else if ((!$sha1_in_db && $db_password_hash == md5($form_password)) || ($sha1_in_db && $db_password_hash == sha1($form_password)))
zamień na:
else if ((!$sha1_in_db && $db_password_hash == md5($form_password)) || ($sha1_in_db && $db_password_hash == md5($form_password)))
forum_setcookie($cookie_name, base64_encode($user_id.'|'.$form_password_hash.'|'.$expire.'|'.sha1($salt.$form_password_hash.forum_hash($expire, $salt))), $expire);
zamień na:
forum_setcookie($cookie_name, base64_encode($user_id.'|'.$form_password_hash.'|'.$expire.'|'.md5($salt.$form_password_hash.forum_hash($expire, $salt))), $expire);
profile.php:
forum_setcookie($cookie_name, base64_encode($forum_user['id'].'|'.$new_password_hash.'|'.$expire.'|'.sha1($user['salt'].$new_password_hash.forum_hash($expire, $user['salt']))), $expire);
zamień na:
forum_setcookie($cookie_name, base64_encode($forum_user['id'].'|'.$new_password_hash.'|'.$expire.'|'.md5($user['salt'].$new_password_hash.forum_hash($expire, $user['salt']))), $expire);
register.php:
forum_setcookie($cookie_name, base64_encode($new_uid.'|'.$password_hash.'|'.$expire.'|'.sha1($salt.$password_hash.forum_hash($expire, $salt))), $expire);
zamień na:
forum_setcookie($cookie_name, base64_encode($new_uid.'|'.$password_hash.'|'.$expire.'|'.md5($salt.$password_hash.forum_hash($expire, $salt))), $expire);
include\functions.php:
$key = substr(sha1(uniqid(rand(), true)), 0, $len);
zamień na:
$key = substr(md5(uniqid(rand(), true)), 0, $len);
return sha1(str_replace('&', '&', $target_url).$forum_user['csrf_token']);
zamień na:
return md5(str_replace('&', '&', $target_url).$forum_user['csrf_token']);
return sha1($salt.sha1($str));
zamień na:
return md5($salt.md5($str));
if ($cookie['expire_hash'] !== sha1($forum_user['salt'].$forum_user['password'].forum_hash(intval($cookie['expiration_time']), $forum_user['salt'])))
zamień na:
if ($cookie['expire_hash'] !== md5($forum_user['salt'].$forum_user['password'].forum_hash(intval($cookie['expiration_time']), $forum_user['salt'])))
forum_setcookie($cookie_name, base64_encode($forum_user['id'].'|'.$forum_user['password'].'|'.$expire.'|'.sha1($forum_user['salt'].$forum_user['password'].forum_hash($expire, $forum_user['salt']))), $expire);
zamień na:
forum_setcookie($cookie_name, base64_encode($forum_user['id'].'|'.$forum_user['password'].'|'.$expire.'|'.md5($forum_user['salt'].$forum_user['password'].forum_hash($expire, $forum_user['salt']))), $expire);
Żyj tak, jakbyś miał umrzeć jutro. Ucz się tak, jakbyś miał żyć wiecznie. ~Mahatma Gandhi
PunBB |
Simple Machines Forum