Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
72f2017d
Commit
72f2017d
authored
Apr 01, 2023
by
hisuinohoshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c2f7ec23
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
171 additions
and
140 deletions
+171
-140
install/bra.sql
install/bra.sql
+159
-137
login.php
login.php
+10
-1
templates/default/roomlist.htm
templates/default/roomlist.htm
+2
-2
No files found.
install/bra.sql
View file @
72f2017d
This diff is collapsed.
Click to expand it.
login.php
View file @
72f2017d
...
@@ -129,7 +129,16 @@ if(!$db->num_rows($result)) {
...
@@ -129,7 +129,16 @@ if(!$db->num_rows($result)) {
gexit
(
$_ERROR
[
'wrong_pw'
],
__file__
,
__line__
);
gexit
(
$_ERROR
[
'wrong_pw'
],
__file__
,
__line__
);
}
}
}
}
# 重新登录后将房间号设为0
# 重新登录后退出当前房间
if
(
!
empty
(
$userdata
[
'roomid'
]))
{
$result
=
$db
->
query
(
"SELECT groomnums FROM
{
$gtablepre
}
game WHERE groomid =
{
$userdata
[
'roomid'
]
}
"
);
if
(
$db
->
num_rows
(
$result
))
{
$join_nums
=
$db
->
fetch_array
(
$result
)[
0
]
-
1
;
$db
->
query
(
"UPDATE
{
$gtablepre
}
game SET groomnums =
{
$join_nums
}
WHERE groomid =
{
$userdata
[
'roomid'
]
}
"
);
}
}
$db
->
query
(
"UPDATE
{
$gtablepre
}
users SET ip='
$onlineip
',roomid=0 WHERE username = '
$username
'"
);
$db
->
query
(
"UPDATE
{
$gtablepre
}
users SET ip='
$onlineip
',roomid=0 WHERE username = '
$username
'"
);
gsetcookie
(
'user'
,
$username
);
gsetcookie
(
'user'
,
$username
);
gsetcookie
(
'pass'
,
$password
);
gsetcookie
(
'pass'
,
$password
);
...
...
templates/default/roomlist.htm
View file @
72f2017d
<span
class=
"evergreen"
>
当前房间列表:
</span><br>
<span
class=
"evergreen"
>
当前房间列表:
<
br>
(房间状态更新可能存在延迟,如果发现房间状态不对请刷新几次)
<
/span><br>
<div
style=
"height:5px;"
>
</div>
<div
style=
"height:5px;"
>
</div>
<form
method=
"post"
name=
"roomact"
onsubmit=
"return false;"
>
<form
method=
"post"
name=
"roomact"
onsubmit=
"return false;"
>
<input
type=
"hidden"
name=
"roomact"
id=
"roomact"
value=
""
>
<input
type=
"hidden"
name=
"roomact"
id=
"roomact"
value=
""
>
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<!--<td class="b1" width="120px">运行时间</td>-->
<!--<td class="b1" width="120px">运行时间</td>-->
<td
class=
"b1"
width=
"80px"
>
操作
</td>
<td
class=
"b1"
width=
"80px"
>
操作
</td>
</tr>
</tr>
<!--{loop range(1,
3
) $rkey}-->
<!--{loop range(1,
$max_rooms
) $rkey}-->
<tr>
<tr>
<td
class=
"b3"
width=
"60px"
height=
"30px"
>
<td
class=
"b3"
width=
"60px"
height=
"30px"
>
$rkey
$rkey
...
...
Write
Preview
Markdown
is supported
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