Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Loiseau
GameOfWords
Commits
06a311f7
Commit
06a311f7
authored
May 13, 2017
by
Mathieu Loiseau
Browse files
register bug corrected
parent
8845197f
Changes
2
Hide whitespace changes
Inline
Side-by-side
controllers/register.class.php
View file @
06a311f7
...
...
@@ -169,7 +169,7 @@ class register
}
array_push
(
$sql
,
"SELECT @USER_ID as `id`;"
);
try
{
if
(
$db
->
transaction
(
$sql
)){
if
(
$db
->
transaction
(
$sql
,
false
)){
$this
->
userid
=
$db
->
fetch_object
()
->
id
;
redirect
(
''
);
}
...
...
views/page.header.html
View file @
06a311f7
...
...
@@ -61,10 +61,10 @@ $notif->readNotif();
<?php
if ( $GLOBALS['userlogged'] ) { ?>
<li><a
href=
"?mode=profile"
title=
"<?php echo htmlspecialchars($GLOBALS['user']->username); ?>"
>
<?php echo $lang['menu_profile']; ?>
</a></li>
<li><a
href=
"?mode=score"
title=
"score"
>
<?php echo $lang['scores']; ?>
</a></li>
<li><a
class=
"active"
href=
"
?mode=infos"
title=
"rules"
>
<?php echo $lang['rules']; ?>
</a></li>
<li><a
href=
"?mode=logout"
title=
"logout"
>
<?php echo $lang['logout']; ?>
</a></li>
<li><a
href=
"
index.php
?mode=profile"
title=
"<?php echo htmlspecialchars($GLOBALS['user']->username); ?>"
>
<?php echo $lang['menu_profile']; ?>
</a></li>
<li><a
href=
"
index.php
?mode=score"
title=
"score"
>
<?php echo $lang['scores']; ?>
</a></li>
<li><a
href=
"index.php
?mode=infos"
title=
"rules"
>
<?php echo $lang['rules']; ?>
</a></li>
<li><a
href=
"
index.php
?mode=logout"
title=
"logout"
>
<?php echo $lang['logout']; ?>
</a></li>
<li
id=
"notification_li"
>
<span
id=
"notification_count"
></span>
<a
href=
"#"
id=
"notificationLink"
><img
src=
"style/default.css/imgs/info.svg"
style=
"width:25px;height:25px;"
></a>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment