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
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
...
@@ -5,26 +5,35 @@
...
@@ -5,26 +5,35 @@
DROP
TABLE
IF
EXISTS
bra_game
;
DROP
TABLE
IF
EXISTS
bra_game
;
CREATE
TABLE
bra_game
(
CREATE
TABLE
bra_game
(
gamenum
mediumint
(
8
)
unsigned
NOT
NULL
default
0
,
`gamenum`
mediumint
(
8
)
unsigned
NOT
NULL
DEFAULT
'0'
,
gamestate
tinyint
unsigned
NOT
NULL
default
0
,
`gamestate`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
starttime
int
(
10
)
unsigned
NOT
NULL
default
0
,
`groomid`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
winmode
tinyint
unsigned
NOT
NULL
default
0
,
`groomnums`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
winner
char
(
15
)
NOT
NULL
default
''
,
`starttime`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
arealist
varchar
(
255
)
NOT
NULL
default
''
,
`winmode`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
areanum
tinyint
unsigned
NOT
NULL
default
0
,
`winner`
char
(
15
)
NOT
NULL
DEFAULT
''
,
areatime
int
(
10
)
unsigned
NOT
NULL
default
0
,
`arealist`
varchar
(
255
)
NOT
NULL
DEFAULT
''
,
areawarn
tinyint
unsigned
NOT
NULL
default
0
,
`areanum`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
validnum
smallint
unsigned
NOT
NULL
default
0
,
`areatime`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
alivenum
smallint
unsigned
NOT
NULL
default
0
,
`areawarn`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
deathnum
smallint
unsigned
NOT
NULL
default
0
,
`validnum`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
afktime
int
(
10
)
unsigned
NOT
NULL
default
0
,
`alivenum`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
optime
int
(
10
)
unsigned
NOT
NULL
default
0
,
`deathnum`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
weather
tinyint
unsigned
NOT
NULL
default
0
,
`afktime`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
hack
tinyint
(
1
)
unsigned
NOT
NULL
default
0
,
`optime`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
combonum
smallint
unsigned
NOT
NULL
default
0
,
`weather`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
gamevars
int
unsigned
NOT
NULL
default
0
,
`hack`
tinyint
(
1
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`hdamage`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`hplayer`
char
(
15
)
NOT
NULL
DEFAULT
''
,
`combonum`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`gamevars`
text
NOT
NULL
,
`noisevars`
varchar
(
1000
)
NOT
NULL
DEFAULT
''
,
`rdown`
tinyint
(
1
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`bdown`
tinyint
(
1
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`ldown`
tinyint
(
1
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`kdown`
tinyint
(
1
)
unsigned
NOT
NULL
DEFAULT
'0'
,
PRIMARY
KEY
(
gamenum
)
PRIMARY
KEY
(
`groomid`
)
)
TYPE
=
MyISAM
;
)
TYPE
=
MyISAM
;
...
@@ -41,26 +50,28 @@ INSERT INTO bra_game (gamenum) VALUES (0);
...
@@ -41,26 +50,28 @@ INSERT INTO bra_game (gamenum) VALUES (0);
DROP
TABLE
IF
EXISTS
bra_users
;
DROP
TABLE
IF
EXISTS
bra_users
;
CREATE
TABLE
bra_users
(
CREATE
TABLE
bra_users
(
uid
mediumint
(
8
)
unsigned
NOT
NULL
auto_increment
,
`uid`
mediumint
(
8
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
username
char
(
15
)
NOT
NULL
default
''
,
`username`
char
(
15
)
NOT
NULL
DEFAULT
''
,
`password`
char
(
32
)
NOT
NULL
default
''
,
`password`
char
(
32
)
NOT
NULL
DEFAULT
''
,
groupid
tinyint
unsigned
NOT
NULL
default
0
,
`groupid`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
lastgame
smallint
unsigned
NOT
NULL
default
0
,
`roomid`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
ip
char
(
15
)
NOT
NULL
default
''
,
`lastgame`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
credits
mediumint
unsigned
NOT
NULL
default
0
,
`ip`
char
(
15
)
NOT
NULL
DEFAULT
''
,
credits2
mediumint
unsigned
NOT
NULL
default
0
,
`credits`
int
(
10
)
NOT
NULL
DEFAULT
'0'
,
achievement
text
NOT
NULL
default
''
,
`credits2`
mediumint
(
9
)
NOT
NULL
DEFAULT
'0'
,
nick
text
NOT
NULL
default
''
,
`achievement`
text
NOT
NULL
,
nicks
text
NOT
NULL
default
''
,
`achrev`
text
NOT
NULL
,
validgames
smallint
unsigned
NOT
NULL
default
0
,
`daily`
varchar
(
255
)
NOT
NULL
DEFAULT
''
,
wingames
smallint
unsigned
NOT
NULL
default
0
,
`nick`
text
NOT
NULL
,
gender
char
(
1
)
NOT
NULL
default
0
,
`nicks`
text
NOT
NULL
,
icon
tinyint
unsigned
NOT
NULL
default
0
,
`validgames`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
club
tinyint
unsigned
NOT
NULL
default
0
,
`wingames`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
motto
char
(
30
)
NOT
NULL
default
''
,
`gender`
char
(
1
)
NOT
NULL
DEFAULT
'0'
,
killmsg
char
(
30
)
NOT
NULL
default
''
,
`icon`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
lastword
char
(
30
)
NOT
NULL
default
''
,
`club`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`motto`
char
(
30
)
NOT
NULL
DEFAULT
''
,
`killmsg`
char
(
30
)
NOT
NULL
DEFAULT
''
,
`lastword`
char
(
30
)
NOT
NULL
DEFAULT
''
,
PRIMARY
KEY
(
uid
),
PRIMARY
KEY
(
uid
),
UNIQUE
KEY
username
(
username
)
UNIQUE
KEY
username
(
username
)
...
@@ -78,117 +89,128 @@ CREATE TABLE bra_users (
...
@@ -78,117 +89,128 @@ CREATE TABLE bra_users (
DROP
TABLE
IF
EXISTS
bra_winners
;
DROP
TABLE
IF
EXISTS
bra_winners
;
CREATE
TABLE
bra_winners
(
CREATE
TABLE
bra_winners
(
gid
mediumint
unsigned
NOT
NULL
default
0
,
`gid`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
type
tinyint
unsigned
NOT
NULL
default
0
,
`type`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
name
char
(
15
)
NOT
NULL
default
''
,
`nick`
text
NOT
NULL
,
pass
char
(
32
)
NOT
NULL
default
''
,
`skillpoint`
smallint
unsigned
NOT
NULL
default
'0'
,
gd
char
(
1
)
NOT
NULL
default
'm'
,
`name`
char
(
15
)
NOT
NULL
DEFAULT
''
,
sNo
smallint
unsigned
NOT
NULL
default
0
,
`pass`
char
(
32
)
NOT
NULL
DEFAULT
''
,
icon
tinyint
unsigned
NOT
NULL
default
0
,
`gd`
char
(
1
)
NOT
NULL
DEFAULT
'm'
,
club
tinyint
unsigned
NOT
NULL
default
0
,
`sNo`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
endtime
int
(
10
)
unsigned
NOT
NULL
default
0
,
`icon`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
hp
smallint
unsigned
NOT
NULL
default
0
,
`club`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
mhp
smallint
unsigned
NOT
NULL
default
0
,
`endtime`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
sp
smallint
unsigned
NOT
NULL
default
0
,
`hp`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
msp
smallint
unsigned
NOT
NULL
default
0
,
`mhp`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
att
smallint
unsigned
NOT
NULL
default
0
,
`sp`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
def
smallint
unsigned
NOT
NULL
default
0
,
`msp`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
pls
tinyint
unsigned
NOT
NULL
default
0
,
`ss`
smallint
unsigned
NOT
NULL
default
'0'
,
lvl
tinyint
unsigned
NOT
NULL
default
0
,
`mss`
smallint
unsigned
NOT
NULL
default
'0'
,
`exp`
smallint
unsigned
NOT
NULL
default
0
,
`att`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
money
smallint
unsigned
NOT
NULL
default
0
,
`def`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
bid
smallint
unsigned
NOT
NULL
default
0
,
`pls`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`inf`
char
(
10
)
not
null
default
''
,
`lvl`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
rage
tinyint
unsigned
NOT
NULL
default
0
,
`exp`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
pose
tinyint
(
1
)
unsigned
NOT
NULL
default
0
,
`money`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
tactic
tinyint
(
1
)
unsigned
NOT
NULL
default
0
,
`bid`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
killnum
smallint
unsigned
NOT
NULL
default
0
,
`inf`
char
(
10
)
NOT
NULL
DEFAULT
''
,
killnum2
smallint
unsigned
NOT
NULL
default
0
,
`rage`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
state
tinyint
unsigned
NOT
NULL
default
0
,
`pose`
tinyint
(
1
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`wp`
smallint
unsigned
not
null
default
0
,
`tactic`
tinyint
(
1
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`wk`
smallint
unsigned
not
null
default
0
,
`killnum`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`wg`
smallint
unsigned
not
null
default
0
,
`killnum2`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`wc`
smallint
unsigned
not
null
default
0
,
`state`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`wd`
smallint
unsigned
not
null
default
0
,
`wp`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`wf`
smallint
unsigned
not
null
default
0
,
`wk`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`teamID`
char
(
15
)
not
null
default
''
,
`wg`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`teamPass`
char
(
15
)
not
null
default
''
,
`wc`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`wd`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`wf`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
`teamID`
char
(
15
)
NOT
NULL
DEFAULT
''
,
`teamPass`
char
(
15
)
NOT
NULL
DEFAULT
''
,
`teamMate`
text
NOT
NULL
default
''
,
`teamIcon`
smallint
unsigned
NOT
NULL
default
'0'
,
wep
char
(
30
)
NOT
NULL
default
''
,
wep
char
(
30
)
NOT
NULL
default
''
,
wepk
char
(
5
)
not
null
default
''
,
wepk
char
(
40
)
not
null
default
''
,
wepe
mediumint
unsigned
NOT
NULL
default
0
,
wepe
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
weps
char
(
5
)
not
null
default
0
,
weps
char
(
10
)
not
null
default
'0'
,
wepsk
char
(
5
)
not
null
default
''
,
wepsk
char
(
40
)
not
null
default
''
,
wep2
char
(
30
)
NOT
NULL
default
''
,
wep2k
char
(
40
)
not
null
default
''
,
wep2e
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
wep2s
char
(
10
)
not
null
default
'0'
,
wep2sk
char
(
40
)
not
null
default
''
,
arb
char
(
30
)
NOT
NULL
default
''
,
arb
char
(
30
)
NOT
NULL
default
''
,
arbk
char
(
5
)
not
null
default
''
,
arbk
char
(
40
)
not
null
default
''
,
arbe
mediumint
unsigned
NOT
NULL
default
0
,
arbe
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
arbs
char
(
5
)
not
null
default
0
,
arbs
char
(
10
)
not
null
default
'0'
,
arbsk
char
(
5
)
not
null
default
''
,
arbsk
char
(
40
)
not
null
default
''
,
arh
char
(
30
)
NOT
NULL
default
''
,
arh
char
(
30
)
NOT
NULL
default
''
,
arhk
char
(
5
)
not
null
default
''
,
arhk
char
(
40
)
not
null
default
''
,
arhe
mediumint
unsigned
NOT
NULL
default
0
,
arhe
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
arhs
char
(
5
)
not
null
default
0
,
arhs
char
(
10
)
not
null
default
'0'
,
arhsk
char
(
5
)
not
null
default
''
,
arhsk
char
(
40
)
not
null
default
''
,
ara
char
(
30
)
NOT
NULL
default
''
,
ara
char
(
30
)
NOT
NULL
default
''
,
arak
char
(
5
)
not
null
default
''
,
arak
char
(
40
)
not
null
default
''
,
arae
mediumint
unsigned
NOT
NULL
default
0
,
arae
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
aras
char
(
5
)
not
null
default
0
,
aras
char
(
10
)
not
null
default
'0'
,
arask
char
(
5
)
not
null
default
''
,
arask
char
(
40
)
not
null
default
''
,
arf
char
(
30
)
NOT
NULL
default
''
,
arf
char
(
30
)
NOT
NULL
default
''
,
arfk
char
(
5
)
not
null
default
''
,
arfk
char
(
40
)
not
null
default
''
,
arfe
mediumint
unsigned
NOT
NULL
default
0
,
arfe
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
arfs
char
(
5
)
not
null
default
0
,
arfs
char
(
10
)
not
null
default
'0'
,
arfsk
char
(
5
)
not
null
default
''
,
arfsk
char
(
40
)
not
null
default
''
,
art
char
(
30
)
NOT
NULL
default
''
,
art
char
(
30
)
NOT
NULL
default
''
,
artk
char
(
5
)
not
null
default
''
,
artk
char
(
40
)
not
null
default
''
,
arte
mediumint
unsigned
NOT
NULL
default
0
,
arte
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
arts
char
(
5
)
not
null
default
0
,
arts
char
(
10
)
not
null
default
'0'
,
artsk
char
(
5
)
not
null
default
''
,
artsk
char
(
40
)
not
null
default
''
,
itm0
char
(
30
)
NOT
NULL
default
''
,
itm0
char
(
30
)
NOT
NULL
default
''
,
itmk0
char
(
5
)
not
null
default
''
,
itmk0
char
(
40
)
not
null
default
''
,
itme0
mediumint
unsigned
NOT
NULL
default
0
,
itme0
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
itms0
char
(
5
)
not
null
default
0
,
itms0
char
(
10
)
not
null
default
'0'
,
itmsk0
char
(
5
)
not
null
default
''
,
itmsk0
char
(
40
)
not
null
default
''
,
itm1
char
(
30
)
NOT
NULL
default
''
,
itm1
char
(
30
)
NOT
NULL
default
''
,
itmk1
char
(
5
)
not
null
default
''
,
itmk1
char
(
40
)
not
null
default
''
,
itme1
mediumint
unsigned
NOT
NULL
default
0
,
itme1
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
itms1
char
(
5
)
not
null
default
0
,
itms1
char
(
10
)
not
null
default
'0'
,
itmsk1
char
(
5
)
not
null
default
''
,
itmsk1
char
(
40
)
not
null
default
''
,
itm2
char
(
30
)
NOT
NULL
default
''
,
itm2
char
(
30
)
NOT
NULL
default
''
,
itmk2
char
(
5
)
not
null
default
''
,
itmk2
char
(
40
)
not
null
default
''
,
itme2
mediumint
unsigned
NOT
NULL
default
0
,
itme2
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
itms2
char
(
5
)
not
null
default
0
,
itms2
char
(
10
)
not
null
default
'0'
,
itmsk2
char
(
5
)
not
null
default
''
,
itmsk2
char
(
40
)
not
null
default
''
,
itm3
char
(
30
)
NOT
NULL
default
''
,
itm3
char
(
30
)
NOT
NULL
default
''
,
itmk3
char
(
5
)
not
null
default
''
,
itmk3
char
(
40
)
not
null
default
''
,
itme3
mediumint
unsigned
NOT
NULL
default
0
,
itme3
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
itms3
char
(
5
)
not
null
default
0
,
itms3
char
(
10
)
not
null
default
'0'
,
itmsk3
char
(
5
)
not
null
default
''
,
itmsk3
char
(
40
)
not
null
default
''
,
itm4
char
(
30
)
NOT
NULL
default
''
,
itm4
char
(
30
)
NOT
NULL
default
''
,
itmk4
char
(
5
)
not
null
default
''
,
itmk4
char
(
40
)
not
null
default
''
,
itme4
mediumint
unsigned
NOT
NULL
default
0
,
itme4
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
itms4
char
(
5
)
not
null
default
0
,
itms4
char
(
10
)
not
null
default
'0'
,
itmsk4
char
(
5
)
not
null
default
''
,
itmsk4
char
(
40
)
not
null
default
''
,
itm5
char
(
30
)
NOT
NULL
default
''
,
itm5
char
(
30
)
NOT
NULL
default
''
,
itmk5
char
(
5
)
not
null
default
''
,
itmk5
char
(
40
)
not
null
default
''
,
itme5
mediumint
unsigned
NOT
NULL
default
0
,
itme5
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
itms5
char
(
5
)
not
null
default
0
,
itms5
char
(
10
)
not
null
default
'0'
,
itmsk5
char
(
5
)
not
null
default
''
,
itmsk5
char
(
40
)
not
null
default
''
,
itm6
char
(
30
)
NOT
NULL
default
''
,
itm6
char
(
30
)
NOT
NULL
default
''
,
itmk6
char
(
5
)
not
null
default
''
,
itmk6
char
(
40
)
not
null
default
''
,
itme6
mediumint
unsigned
NOT
NULL
default
0
,
itme6
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
itms6
char
(
5
)
not
null
default
0
,
itms6
char
(
10
)
not
null
default
'0'
,
itmsk6
char
(
5
)
not
null
default
''
,
itmsk6
char
(
40
)
not
null
default
''
,
motto
char
(
30
)
NOT
NULL
default
''
,
`motto`
char
(
30
)
NOT
NULL
DEFAULT
''
,
wmode
tinyint
unsigned
NOT
NULL
default
0
,
`wmode`
tinyint
(
3
)
unsigned
NOT
NULL
DEFAULT
'0'
,
vnum
smallint
unsigned
NOT
NULL
default
0
,
`vnum`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
gtime
int
(
10
)
unsigned
NOT
NULL
default
0
,
`gtime`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
gstime
int
(
10
)
unsigned
NOT
NULL
default
0
,
`gstime`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
getime
int
(
10
)
unsigned
NOT
NULL
default
0
,
`getime`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
hdmg
int
unsigned
NOT
NULL
default
0
,
`hdmg`
int
(
10
)
unsigned
NOT
NULL
DEFAULT
'0'
,
hdp
char
(
15
)
NOT
NULL
default
''
,
`hdp`
char
(
15
)
NOT
NULL
DEFAULT
''
,
hkill
smallint
unsigned
NOT
NULL
default
0
,
`hkill`
smallint
(
5
)
unsigned
NOT
NULL
DEFAULT
'0'
,
hkp
char
(
15
)
NOT
NULL
default
''
,
`hkp`
char
(
15
)
NOT
NULL
DEFAULT
''
,
UNIQUE
KEY
(
gid
)
UNIQUE
KEY
(
gid
)
)
TYPE
=
MyISAM
;
)
TYPE
=
MyISAM
;
...
...
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