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
f13552d3
Commit
f13552d3
authored
Feb 07, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
Try fixing HTTP 500 on Prior news page commented out the added 3 winner table fields.
parent
77f1538e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
10 deletions
+11
-10
game.php
game.php
+1
-1
include/admin/gamecheck.php
include/admin/gamecheck.php
+4
-3
include/news.func.php
include/news.func.php
+1
-1
rank.php
rank.php
+1
-1
user.php
user.php
+1
-1
user_profile.php
user_profile.php
+1
-1
valid.php
valid.php
+1
-1
winner.php
winner.php
+1
-1
No files found.
game.php
View file @
f13552d3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
define
(
'CURSCRIPT'
,
'game'
);
define
(
'CURSCRIPT'
,
'game'
);
require
'./include/common.inc.php'
;
require
'./include/common.inc.php'
;
require
GAME_ROOT
.
'./include/game.func.php'
;
require
GAME_ROOT
.
'./include/game.func.php'
;
require
GAME_ROOT
.
'./include/game/titles.func.php'
;
require
_once
GAME_ROOT
.
'./include/game/titles.func.php'
;
if
(
!
$cuser
||!
$cpass
)
{
gexit
(
$_ERROR
[
'no_login'
],
__file__
,
__line__
);
}
if
(
!
$cuser
||!
$cpass
)
{
gexit
(
$_ERROR
[
'no_login'
],
__file__
,
__line__
);
}
if
(
$mode
==
'quit'
)
{
if
(
$mode
==
'quit'
)
{
...
...
include/admin/gamecheck.php
View file @
f13552d3
...
@@ -42,9 +42,10 @@ if($gamestate >= 20){
...
@@ -42,9 +42,10 @@ if($gamestate >= 20){
//$db->query("ALTER TABLE {$tablepre}users ADD wingames smallint unsigned NOT NULL default '0' AFTER validgames");
//$db->query("ALTER TABLE {$tablepre}users ADD wingames smallint unsigned NOT NULL default '0' AFTER validgames");
//哇 还是老祖宗留下的方法好啊
//哇 还是老祖宗留下的方法好啊
$db
->
query
(
"ALTER TABLE
{
$tablepre
}
winners ADD nick text not null AFTER type"
);
//UNCOMMENT THOSE WHEN YELLOWLIFE IS PUSHED TO MOMOBAKO-SERIES
$db
->
query
(
"ALTER TABLE
{
$tablepre
}
winners ADD ss smallint unsigned NOT NULL default '0' AFTER msp"
);
//$db->query("ALTER TABLE {$tablepre}winners ADD nick text not null AFTER type");
$db
->
query
(
"ALTER TABLE
{
$tablepre
}
winners ADD mss smallint unsigned NOT NULL default '0' AFTER ss"
);
//$db->query("ALTER TABLE {$tablepre}winners ADD ss smallint unsigned NOT NULL default '0' AFTER msp");
//$db->query("ALTER TABLE {$tablepre}winners ADD mss smallint unsigned NOT NULL default '0' AFTER ss");
include
template
(
'admin_menu'
);
include
template
(
'admin_menu'
);
...
...
include/news.func.php
View file @
f13552d3
...
@@ -4,7 +4,7 @@ if(!defined('IN_GAME')) {
...
@@ -4,7 +4,7 @@ if(!defined('IN_GAME')) {
exit
(
'Access Denied'
);
exit
(
'Access Denied'
);
}
}
require
'./include/game/titles.func.php'
;
require
_once
'./include/game/titles.func.php'
;
function
nparse_news
(
$start
=
0
,
$range
=
0
){
//$type = '') {
function
nparse_news
(
$start
=
0
,
$range
=
0
){
//$type = '') {
global
$week
,
$nowep
,
$db
,
$tablepre
,
$lwinfo
,
$plsinfo
,
$hplsinfo
,
$wthinfo
,
$typeinfo
,
$exdmginf
,
$newslimit
;
global
$week
,
$nowep
,
$db
,
$tablepre
,
$lwinfo
,
$plsinfo
,
$hplsinfo
,
$wthinfo
,
$typeinfo
,
$exdmginf
,
$newslimit
;
...
...
rank.php
View file @
f13552d3
...
@@ -4,7 +4,7 @@ define('CURSCRIPT', 'rank');
...
@@ -4,7 +4,7 @@ define('CURSCRIPT', 'rank');
require
'./include/common.inc.php'
;
require
'./include/common.inc.php'
;
require
'./include/game.func.php'
;
require
'./include/game.func.php'
;
require
'./include/game/titles.func.php'
;
require
_once
'./include/game/titles.func.php'
;
$result
=
$db
->
query
(
"SELECT COUNT(*) FROM
{
$tablepre
}
users"
);
$result
=
$db
->
query
(
"SELECT COUNT(*) FROM
{
$tablepre
}
users"
);
$count
=
$db
->
result
(
$result
,
0
);
$count
=
$db
->
result
(
$result
,
0
);
...
...
user.php
View file @
f13552d3
...
@@ -4,7 +4,7 @@ define('CURSCRIPT', 'user');
...
@@ -4,7 +4,7 @@ define('CURSCRIPT', 'user');
require
'./include/common.inc.php'
;
require
'./include/common.inc.php'
;
require
'./include/user.func.php'
;
require
'./include/user.func.php'
;
require
'./include/game/titles.func.php'
;
require
_once
'./include/game/titles.func.php'
;
if
(
!
$cuser
||!
$cpass
)
{
gexit
(
$_ERROR
[
'no_login'
],
__file__
,
__line__
);
}
if
(
!
$cuser
||!
$cpass
)
{
gexit
(
$_ERROR
[
'no_login'
],
__file__
,
__line__
);
}
...
...
user_profile.php
View file @
f13552d3
...
@@ -4,7 +4,7 @@ define('CURSCRIPT', 'user_profile');
...
@@ -4,7 +4,7 @@ define('CURSCRIPT', 'user_profile');
require
'./include/common.inc.php'
;
require
'./include/common.inc.php'
;
require
'./include/user.func.php'
;
require
'./include/user.func.php'
;
require
'./include/game/titles.func.php'
;
require
_once
'./include/game/titles.func.php'
;
$_REQUEST
=
gstrfilter
(
$_REQUEST
);
$_REQUEST
=
gstrfilter
(
$_REQUEST
);
if
(
$_REQUEST
[
"playerID"
]
==
""
)
if
(
$_REQUEST
[
"playerID"
]
==
""
)
...
...
valid.php
View file @
f13552d3
...
@@ -4,7 +4,7 @@ define('CURSCRIPT', 'valid');
...
@@ -4,7 +4,7 @@ define('CURSCRIPT', 'valid');
require
'./include/common.inc.php'
;
require
'./include/common.inc.php'
;
require
'./include/user.func.php'
;
require
'./include/user.func.php'
;
require
'./include/game/titles.func.php'
;
require
_once
'./include/game/titles.func.php'
;
if
(
!
$cuser
||!
$cpass
)
{
gexit
(
$_ERROR
[
'no_login'
],
__file__
,
__line__
);
}
if
(
!
$cuser
||!
$cpass
)
{
gexit
(
$_ERROR
[
'no_login'
],
__file__
,
__line__
);
}
if
(
$gamestate
<
20
)
{
gexit
(
$_ERROR
[
'no_start'
],
__file__
,
__line__
);
}
if
(
$gamestate
<
20
)
{
gexit
(
$_ERROR
[
'no_start'
],
__file__
,
__line__
);
}
...
...
winner.php
View file @
f13552d3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
define
(
'CURSCRIPT'
,
'winner'
);
define
(
'CURSCRIPT'
,
'winner'
);
require
'./include/common.inc.php'
;
require
'./include/common.inc.php'
;
require
'./include/game/titles.func.php'
;
require
_once
'./include/game/titles.func.php'
;
if
(
!
isset
(
$command
)){
$command
=
'ref'
;}
if
(
!
isset
(
$command
)){
$command
=
'ref'
;}
if
(
$command
==
'info'
)
{
if
(
$command
==
'info'
)
{
...
...
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