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
79d69e22
Commit
79d69e22
authored
May 23, 2023
by
Nemo Ma
Committed by
GitHub
May 23, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #158 from hikawiier/waaagh
fix?
parents
d2992c8a
2ae1d254
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
include/state.func.php
include/state.func.php
+6
-5
No files found.
include/state.func.php
View file @
79d69e22
...
@@ -90,9 +90,12 @@
...
@@ -90,9 +90,12 @@
$kname
=
''
;
$kname
=
''
;
$killmsg
=
''
;
$killmsg
=
''
;
}
}
$dname
=
$name
;
if
(
!
$type
)
if
(
!
$type
)
{
{
$dname
=
(
!
empty
(
$nick
)
||
$nick
==
0
)
?
$nick
.
'|'
.
$name
:
$name
;
$alivenum
--
;
$alivenum
--
;
$deathnum
++
;
$deathnum
++
;
$result
=
$db
->
query
(
"SELECT lastword FROM
{
$gtablepre
}
users WHERE username = '
$name
'"
);
$result
=
$db
->
query
(
"SELECT lastword FROM
{
$gtablepre
}
users WHERE username = '
$name
'"
);
...
@@ -107,9 +110,7 @@
...
@@ -107,9 +110,7 @@
//$knick = $db->result($result, 0);
//$knick = $db->result($result, 0);
//$kname= !empty($knick) || $knick == 0 ? $knick.'+'.$ : 'none';
//$kname= !empty($knick) || $knick == 0 ? $knick.'+'.$ : 'none';
$dname
=
!
empty
(
$nick
)
||
$nick
==
0
?
$nick
.
'|'
.
$name
:
$name
;
addnews
(
$now
,
'death'
.
$state
,
$dname
,
$type
,
$kname
,
$annex
,
$lastword
);
addnews
(
$now
,
'death'
.
$state
,
$dname
,
$type
,
$knname
,
$annex
,
$lastword
);
//$alivenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}players WHERE hp>0 AND type=0"), 0);
//$alivenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}players WHERE hp>0 AND type=0"), 0);
...
@@ -176,8 +177,8 @@
...
@@ -176,8 +177,8 @@
$db
->
query
(
"INSERT INTO
{
$tablepre
}
chat (type,`time`,send,recv,msg) VALUES ('3','
$now
','
$dname
','
$dpls
','
$lastword
')"
);
$db
->
query
(
"INSERT INTO
{
$tablepre
}
chat (type,`time`,send,recv,msg) VALUES ('3','
$now
','
$dname
','
$dpls
','
$lastword
')"
);
//发送news
//发送news
$dname
=
(
!
empty
(
$pd
[
'nick'
])
||
$pd
[
'nick'
]
==
0
)
?
$pd
[
'nick'
]
.
'|'
.
$pd
[
'name'
]
:
$pd
[
'name'
];
$dname
=
!
$pd
[
'type'
]
&&
(
!
empty
(
$pd
[
'nick'
])
||
$pd
[
'nick'
]
==
0
)
?
$pd
[
'nick'
]
.
'|'
.
$pd
[
'name'
]
:
$pd
[
'name'
];
$kname
=
(
!
empty
(
$pa
[
'nick'
])
||
$pa
[
'nick'
]
==
0
)
?
$pa
[
'nick'
]
.
'|'
.
$pa
[
'name'
]
:
$pa
[
'name'
];
$kname
=
!
$pa
[
'type'
]
&&
(
!
empty
(
$pa
[
'nick'
])
||
$pa
[
'nick'
]
==
0
)
?
$pa
[
'nick'
]
.
'|'
.
$pa
[
'name'
]
:
$pa
[
'name'
];
addnews
(
$now
,
'death'
.
$pd
[
'state'
],
$dname
,
$dtype
,
$kname
,
$pa
[
'wep_name'
],
$lastword
);
addnews
(
$now
,
'death'
.
$pd
[
'state'
],
$dname
,
$dtype
,
$kname
,
$pa
[
'wep_name'
],
$lastword
);
return
$lastword
;
return
$lastword
;
...
...
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