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