+ pocheTools::redirect();
+}
+elseif (isset($_GET['config'])) {
+ if (isset($_POST['password']) && isset($_POST['password_repeat'])) {
+ if ($_POST['password'] == $_POST['password_repeat'] && $_POST['password'] != "") {
+ pocheTools::logm('password updated');
+ if (!MODE_DEMO) {
+ $store->updatePassword(encode_string($_POST['password'] . $_SESSION['login']));
+ #your password has been updated
+ }
+ else {
+ #in demo mode, you can\'t update password
+ }
+ }
+ #else
+ #your password can\'t be empty and you have to repeat it in the second field
+ }