Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2014-11-09 01:46:57 +0300
committerChaoyi Zha <summermontreal@gmail.com>2014-11-09 01:46:57 +0300
commitffa5b370ee4d1ab35746943a7fc962b2e6cab2d6 (patch)
tree20e63baa327fc3ca91a2d8336ce08793c620903d
parent59b9d493104497609263aa07616ef381dfa8cb11 (diff)
prettify wrong password combo msg1.1.0
-rw-r--r--admin/ucp-settingsp.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/ucp-settingsp.php b/admin/ucp-settingsp.php
index 2a2cc62..faa4e53 100644
--- a/admin/ucp-settingsp.php
+++ b/admin/ucp-settingsp.php
@@ -28,7 +28,10 @@ if ($action == 'changepw') {
$hpw = $fetch['password'];
$islegit = $polrauth->processlogin($username, $currpw);
if (!$islegit) {
- die('Invalid current password. <a href="index.php">Back</a>');
+ require_once 'header.php';
+ echo "Invalid current password. <a href=\"index.php\">Back</a>";
+ require_once 'footer.php';
+ die();
}
$sqr = "UPDATE auth SET password = '{$hashed}' WHERE `username`='{$username}';";