From 679b6b85ad1f8c9110334101a1568510ad15891b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 23 Aug 2013 22:43:16 +0200 Subject: [PATCH] preparing to beta4 --- inc/poche/Tools.class.php | 4 +-- install/update.php | 71 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 install/update.php diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 52d0f2d5..8661ab6e 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -238,7 +238,7 @@ class Tools public static function createMyConfig() { $myconfig_file = './inc/poche/myconfig.inc.php'; - + if (!is_writable('./inc/poche/')) { self::logm('you don\'t have write access to create ./inc/poche/myconfig.inc.php'); die('You don\'t have write access to create ./inc/poche/myconfig.inc.php.'); @@ -248,7 +248,7 @@ class Tools { $fp = fopen($myconfig_file, 'w'); fwrite($fp, ' + + + + + + + + + updating poche + + +

update poche to 1.0-beta4

+ +

Changelog

+ +

To update your poche, please fill the following fields.

+

+

+
+
+
+
+

+login($_POST['login'], sha1($_POST['password'] . $_POST['login'] . SALT)); + if ($user != array()) { + $myconfig_file = '../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)) + { + $content = str_replace('1.0-beta3', '1.0-beta4', file_get_contents($myconfig_file)); + file_put_contents($myconfig_file, $content); + } +?> +

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 -- 2.41.0