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
ed64e223
Commit
ed64e223
authored
Sep 26, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
93ab0326
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
include/user.func.php
include/user.func.php
+7
-7
templates/default/gambling.htm
templates/default/gambling.htm
+1
-1
templates/default/notice.htm
templates/default/notice.htm
+1
-1
user_profile.php
user_profile.php
+1
-1
No files found.
include/user.func.php
View file @
ed64e223
...
...
@@ -11,7 +11,7 @@ elseif(preg_match('/[,|<|>|&|;|#|"|\s|\p{C}]+/u',$username)) { return
'name_invalid'
;
}
elseif
(
preg_match
(
$nmlimit
,
$username
))
{
return
'name_banned'
;
}
return
'name_ok'
;
}
function
pass_check
(
$pass
,
$rpass
){
//
未经md5处理的
function
pass_check
(
$pass
,
$rpass
){
//
未经md5处理的
if
(
!
isset
(
$pass
)
||
strlen
(
$pass
)
===
0
||
!
isset
(
$rpass
)
||
strlen
(
$rpass
)
===
0
){
return
'pass_not_set'
;
}
elseif
(
$pass
!=
$rpass
)
{
...
...
@@ -25,7 +25,7 @@ function pass_check($pass,$rpass){//未
}
/**
*
获得用户的真实IP地址
*
获得用户的真实IP地址
*
* @access public
* @return string
...
...
@@ -42,7 +42,7 @@ function real_ip()
if
(
isset
(
$_SERVER
[
'HTTP_X_FORWARDED_FOR'
]))
{
$arr
=
explode
(
','
,
$_SERVER
[
'HTTP_X_FORWARDED_FOR'
]);
/*
取X-Forwarded-For中第一个非unknown的有效IP字符串
*/
/*
取X-Forwarded-For中第一个非unknown的有效IP字符串 */
foreach
(
$arr
AS
$ip
)
{
$ip
=
trim
(
$ip
);
...
...
@@ -105,12 +105,12 @@ function get_iconlist(){
return
$iconarray
;
}
function
get_utitlelist
(){
//
称号
function
get_utitlelist
(){
//
称号
global
$nicks
,
$utitlelist
;
$utarr
=
explode
(
'/'
,
$nicks
);
//
字符串转数组
$utarr
=
explode
(
'/'
,
$nicks
);
//
字符串转数组
$utlist
=
Array
();
//array_unshift($utarr,0);//
数组右移一位以与$utitlelist对应
foreach
(
$utarr
as
$key
=>
$val
){
//$utitlelist
在resources里
//array_unshift($utarr,0);//
数组右移一位以与$utitlelist对应
foreach
(
$utarr
as
$key
=>
$val
){
//$utitlelist
在resources里
$utlist
[
$key
]
=
$val
;
}
return
$utlist
;
...
...
templates/default/gambling.htm
View file @
ed64e223
<!--{if $gbnum}-->
当前奖池:{$gbpool}。
<!--{else}-->
当前还未开设赌局。
<!--{/if}-->
当前分成系数:{$nowodds}
<span
class=
"yellow"
id=
"gbinfo"
>
$gbinfo
...
...
templates/default/notice.htm
View file @
ed64e223
{template header}
{template header}
...
...
user_profile.php
View file @
ed64e223
...
...
@@ -41,7 +41,7 @@ if (!valid_achievement($ach)) {
$ach
=
init_achievement
(
$ach
);
$db
->
query
(
"UPDATE
{
$tablepre
}
users SET achievement='
$ach
' WHERE username='
$n
'"
);
}
//
ɾ͵
//
解析成就的完成情况
global
$gamecfg
;
require
config
(
"gamecfg"
,
$gamecfg
);
for
(
$i
=
0
;
$i
<
$achievement_count
;
$i
++
)
...
...
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