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
f7e5f1a9
Commit
f7e5f1a9
authored
May 22, 2023
by
Nemo Ma
Committed by
GitHub
May 22, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #150 from hikawiier/waaagh
fix
parents
db2e3817
f5d3e6da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
include/game/titles.func.php
include/game/titles.func.php
+4
-1
winner.php
winner.php
+8
-1
No files found.
include/game/titles.func.php
View file @
f7e5f1a9
...
@@ -61,8 +61,11 @@ function titles_get_desc($tkey,$mode=0)
...
@@ -61,8 +61,11 @@ function titles_get_desc($tkey,$mode=0)
global
$db
,
$gtablepre
,
$gamecfg
;
global
$db
,
$gtablepre
,
$gamecfg
;
include
config
(
"titles"
,
$gamecfg
);
include
config
(
"titles"
,
$gamecfg
);
# 兼容旧显示方式
if
(
$mode
&&
!
is_numeric
(
$tkey
))
$tkey
=
array_search
(
$tkey
,
$titles_list
);
$tkey
=
(
int
)
$tkey
;
$tkey
=
(
int
)
$tkey
;
$n
=
$titles_list
[
$tkey
];
$n
=
$titles_list
[
$tkey
]
?:
$tkey
;
if
(
isset
(
$title_desc
[
$tkey
]))
if
(
isset
(
$title_desc
[
$tkey
]))
{
{
...
...
winner.php
View file @
f7e5f1a9
...
@@ -41,7 +41,14 @@ if($command == 'info') {
...
@@ -41,7 +41,14 @@ if($command == 'info') {
else
else
{
{
$wdata
[
'iconImg'
]
=
$wdata
[
'gd'
]
==
'f'
?
'f_'
.
$wdata
[
'icon'
]
.
'.gif'
:
'm_'
.
$wdata
[
'icon'
]
.
'.gif'
;
$wdata
[
'iconImg'
]
=
$wdata
[
'gd'
]
==
'f'
?
'f_'
.
$wdata
[
'icon'
]
.
'.gif'
:
'm_'
.
$wdata
[
'icon'
]
.
'.gif'
;
$wdata
[
'nickinfo'
]
=
!
empty
(
$wdata
[
'nick'
])
?
titles_get_desc
(
$wdata
[
'nick'
])
:
''
;
if
(
!
empty
(
$wdata
[
'nick'
])
&&
!
is_numeric
(
$wdata
[
'nick'
]))
{
$wdata
[
'nickinfo'
]
=
titles_get_desc
(
$wdata
[
'nick'
],
1
);
}
else
{
$wdata
[
'nickinfo'
]
=
!
empty
(
$wdata
[
'nick'
])
||
$wdata
[
'nick'
]
==
0
?
titles_get_desc
(
$wdata
[
'nick'
])
:
''
;
}
}
}
$winfo
[
$wdata
[
'gid'
]]
=
$wdata
;
$winfo
[
$wdata
[
'gid'
]]
=
$wdata
;
}
}
...
...
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