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
49e802d8
Commit
49e802d8
authored
Mar 19, 2023
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add php8 support
parent
c253c786
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
include/common.inc.php
include/common.inc.php
+1
-1
install.php
install.php
+9
-13
No files found.
include/common.inc.php
View file @
49e802d8
...
@@ -15,7 +15,7 @@ require GAME_ROOT.'./include/game/revclubskills.func.php';
...
@@ -15,7 +15,7 @@ require GAME_ROOT.'./include/game/revclubskills.func.php';
require
GAME_ROOT
.
'./include/game/dice.func.php'
;
require
GAME_ROOT
.
'./include/game/dice.func.php'
;
error_reporting
(
E_ALL
);
error_reporting
(
E_ALL
);
set_error_handler
(
'gameerrorhandler'
);
set_error_handler
(
'gameerrorhandler'
);
$magic_quotes_gpc
=
get_magic_quotes_gpc
()
;
$magic_quotes_gpc
=
false
;
extract
(
gstrfilter
(
$_COOKIE
));
extract
(
gstrfilter
(
$_COOKIE
));
extract
(
gstrfilter
(
$_POST
));
extract
(
gstrfilter
(
$_POST
));
extract
(
gstrfilter
(
$_GET
));
extract
(
gstrfilter
(
$_GET
));
...
...
install.php
View file @
49e802d8
...
@@ -663,8 +663,8 @@ if(!$action) {
...
@@ -663,8 +663,8 @@ if(!$action) {
$quit
=
TRUE
;
$quit
=
TRUE
;
}
}
if
(
@
ini_get
(
file_uploads
))
{
if
(
function_exists
(
'ini_get'
)
&&
ini_get
(
'file_uploads'
))
{
$max_size
=
@
ini_get
(
upload_max_filesize
);
$max_size
=
ini_get
(
'upload_max_filesize'
);
$curr_upload_status
=
$lang
[
'attach_enabled'
]
.
$max_size
;
$curr_upload_status
=
$lang
[
'attach_enabled'
]
.
$max_size
;
$msg
.=
$lang
[
'attach_enabled_info'
]
.
$max_size
.
"
\t
"
;
$msg
.=
$lang
[
'attach_enabled_info'
]
.
$max_size
.
"
\t
"
;
}
else
{
}
else
{
...
@@ -1308,11 +1308,7 @@ function createtable($db, $sql, $dbcharset) {
...
@@ -1308,11 +1308,7 @@ function createtable($db, $sql, $dbcharset) {
}
}
function
setconfig
(
$string
)
{
function
setconfig
(
$string
)
{
if
(
!
get_magic_quotes_gpc
())
{
$string
=
str_replace
(
'\''
,
'\\\''
,
$string
);
$string
=
str_replace
(
'\''
,
'\\\''
,
$string
);
}
else
{
$string
=
str_replace
(
'\"'
,
'"'
,
$string
);
}
return
$string
;
return
$string
;
}
}
...
...
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