From bb5a7d9ede48558c6f096dc3c8e267f12513ec4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20L=C5=93uillet?=
Date: Fri, 16 Aug 2013 20:19:31 +0200
Subject: updating script
---
install/update.php | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
create mode 100644 install/update.php
(limited to 'install/update.php')
diff --git a/install/update.php b/install/update.php
new file mode 100644
index 00000000..392ab801
--- /dev/null
+++ b/install/update.php
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+ updating poche
+
+
+ update poche to 1.0-beta3
+
+ Changelog
+
+
+ - this awesome updating step
+ - error message when install folder exists
+ - more tests before installation (write access, etc.)
+ - updated README to make installation easier
+ - german language thanks to HLFH
+ - spanish language thanks to Nitche
+ - new file ./inc/poche/myconfig.inc.php created to store language and salt
+ - #119: salt is now created when installing poche
+ - #130: robotx.txt added
+ - #136: error during readability import
+ - #137: mixed content alert in https
+ - #138: change pattern to parse url with #
+
+
+
+
+
+login($_POST['login'], sha1($_POST['password'] . $_POST['login'] . $old_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.');
+ }
+
+ 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.
+ go back to your poche
+
+
+
\ No newline at end of file
--
cgit v1.2.3
From abed0f212266895f67add983a478cd0eb88487a9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20L=C5=93uillet?=
Date: Fri, 16 Aug 2013 20:40:31 +0200
Subject: some precisons in updating poche
---
install/update.php | 1 +
1 file changed, 1 insertion(+)
(limited to 'install/update.php')
diff --git a/install/update.php b/install/update.php
index 392ab801..f628d1f1 100644
--- a/install/update.php
+++ b/install/update.php
@@ -35,6 +35,7 @@ $old_salt = '464v54gLLw928uz4zUBqkRJeiPY68zCX';
#138: change pattern to parse url with #
+ To update your poche, please fill the following fields.