diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 52d0f2d..8661ab6 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, ' + + + + + + +
+ +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.
+ + + + \ No newline at end of file