X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=install%2Fupdate.php;h=ccc0566f2c5e05adf6dbef4ec36d907ac0c09c54;hb=38b418b7d63783fa0c7b920b7de6a1f6930fc7cb;hp=8c93af6d2e1ad7718c8aeb27a9711e21408b157a;hpb=0269cd821311500acffed61edb1bc168d3fb5ec8;p=github%2Fwallabag%2Fwallabag.git diff --git a/install/update.php b/install/update.php old mode 100755 new mode 100644 index 8c93af6d..ccc0566f --- a/install/update.php +++ b/install/update.php @@ -1,9 +1,9 @@ @@ -16,25 +16,23 @@ $old_salt = '464v54gLLw928uz4zUBqkRJeiPY68zCX'; updating poche -

update poche to 1.0-beta3

+

update poche to 1.0-beta4

Changelog

-

-

-

+

To update your poche, please fill the following fields.

@@ -46,26 +44,20 @@ $old_salt = '464v54gLLw928uz4zUBqkRJeiPY68zCX'; login($_POST['login'], sha1($_POST['password'] . $_POST['login'] . $old_salt)); + $user = $store->login($_POST['login'], sha1($_POST['password'] . $_POST['login'] . SALT)); if ($user != array()) { - $new_salt = md5(time() . $_SERVER['SCRIPT_FILENAME'] . rand()); $myconfig_file = '../inc/poche/myconfig.inc.php'; - if (!is_writable('../inc/poche/')) { - die('You don\'t have write access to create ./inc/poche/myconfig.inc.php.'); + # just change version number in config file + + if (!is_writable('../inc/poche/myconfig.inc.php')) { + die('You don\'t have write access to open ./inc/poche/myconfig.inc.php.'); } - if (!file_exists($myconfig_file)) + if (file_exists($myconfig_file)) { - $fp = fopen($myconfig_file, 'w'); - - fwrite($fp, 'updatePassword($user['id'], sha1($_POST['password'] . $_POST['login'] . $new_salt)); ?>

your poche is up to date!

don't forget to delete ./install/ folder after the update.