@@ -113,13 +113,13 @@ |
||
113 | 113 | </table> |
114 | 114 | <span class="pull-right"> |
115 | 115 | <?php |
116 | - $sql = "SELECT `uid`,`playerid` FROM `players` WHERE `playerid` = '" . $profile->playerid . "' "; |
|
117 | - $result = $db_connection->query($sql); |
|
116 | + $sql = "SELECT `uid`,`playerid` FROM `players` WHERE `playerid` = '" . $profile->playerid . "' "; |
|
117 | + $result = $db_connection->query($sql); |
|
118 | 118 | |
119 | - if ($result->num_rows > 0) { |
|
120 | - ?> <a class="btn btn-sm btn-primary" href="<?php echo $settings['url'] . 'editPlayer/' . $result->fetch_object()->uid ?> "> My Player</a> <?php |
|
121 | - } |
|
122 | - ?> |
|
119 | + if ($result->num_rows > 0) { |
|
120 | + ?> <a class="btn btn-sm btn-primary" href="<?php echo $settings['url'] . 'editPlayer/' . $result->fetch_object()->uid ?> "> My Player</a> <?php |
|
121 | + } |
|
122 | + ?> |
|
123 | 123 | </span> |
124 | 124 | </div> |
125 | 125 | </div> |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | if (formtoken::validateToken($_POST)) { |
16 | 16 | $sql = "SELECT `user_password_hash` FROM `users` WHERE `user_id` = '" . $_SESSION['user_id'] . "';"; |
17 | 17 | $result = $db_connection->query($sql)->fetch_object(); |
18 | - if ($_POST['user_password'] == $_POST['user_password_again'] && password_verify($_POST['current_password'],$result->user_password_hash)) { |
|
18 | + if ($_POST['user_password'] == $_POST['user_password_again'] && password_verify($_POST['current_password'], $result->user_password_hash)) { |
|
19 | 19 | $sql = "UPDATE `users` SET `user_password_hash`= '" . password_hash($_POST['user_password'], PASSWORD_DEFAULT) . "' WHERE `user_id` = '" . $_SESSION['user_id'] . "';"; |
20 | 20 | $result_of_query = $db_connection->query($sql); |
21 | 21 | message($lang['passChanged']); |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | <div class="panel-body"> |
45 | 45 | <div class="row"> |
46 | 46 | <div style="padding-top:4%;" class="col-md-3 col-lg-3 " align="center"> |
47 | - <?php if(!isset($_SESSION['profile_link'])) { |
|
48 | - if(isset($_SESSION['user_email']) && $settings['gravatar']) { ?> |
|
49 | - <a href="<?php echo $settings['url'] . 'profile' ?>"> <img alt="User Pic" src="<?php get_gravatar($_SESSION['user_email'],64,'retro') ?>" class="img-circle img-responsive"></a> |
|
47 | + <?php if (!isset($_SESSION['profile_link'])) { |
|
48 | + if (isset($_SESSION['user_email']) && $settings['gravatar']) { ?> |
|
49 | + <a href="<?php echo $settings['url'] . 'profile' ?>"> <img alt="User Pic" src="<?php get_gravatar($_SESSION['user_email'], 64, 'retro') ?>" class="img-circle img-responsive"></a> |
|
50 | 50 | <?php } else {?> |
51 | 51 | <a href="<?php echo $settings['url'] . 'profile' ?>"> <img alt="User Pic" src="<?php echo $settings['url'] . 'assets/img/profile/' . $_SESSION['user_profile'] . '.jpg' ?>" class="img-circle img-responsive"></a> |
52 | 52 | <?php } ?> |