-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #252 from kdnetwork/fix-crypto
修改网站 密码 和 cookie 的散列计算方式
- Loading branch information
Showing
6 changed files
with
80 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
define('SYSTEM_DEV', true); | ||
define('SYSTEM_NO_CHECK_VER', true); | ||
define('SYSTEM_NO_CHECK_LOGIN', true); | ||
define('SYSTEM_NO_PLUGIN', true); | ||
include __DIR__ . '/../init.php'; | ||
global $m,$i; | ||
$cv = option::get('core_version'); | ||
if (!empty($cv) && $cv >= '5.01') { | ||
msg('您的云签到已升级到 V5.01 版本,请勿重复更新<br/><br/>请立即删除 /setup/update5.00to5.01.php'); | ||
} | ||
$m->query("ALTER TABLE `" . DB_PREFIX . "users` CHANGE `pw` `pw` TEXT;", true); | ||
|
||
option::set('core_version', '5.01'); | ||
unlink(__FILE__); | ||
msg('您的云签到已成功升级到 V5.01 版本,请立即删除 /setup/update5.00to5.01.php,谢谢', SYSTEM_URL); |