Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
bd866fa7
Unverified
Commit
bd866fa7
authored
Aug 27, 2019
by
Virink
Committed by
GitHub
Aug 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #209 from virink/v2.1.x
(Fix: Core) "split" was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7…
parents
56cd0ef0
ea550da0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
mysqli.js
source/core/php/template/database/mysqli.js
+8
-8
postgresql.js
source/core/php/template/database/postgresql.js
+8
-8
postgresql_pdo.js
source/core/php/template/database/postgresql_pdo.js
+8
-8
No files found.
source/core/php/template/database/mysqli.js
View file @
bd866fa7
...
...
@@ -10,8 +10,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$hst=$m?stripslashes($_POST["
${
arg1
}
"]):$_POST["
${
arg1
}
"];
$usr=$m?stripslashes($_POST["
${
arg2
}
"]):$_POST["
${
arg2
}
"];
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$port=
split
(":",$hst)[1];
$hst=
split
(":",$hst)[0];
$port=
explode
(":",$hst)[1];
$hst=
explode
(":",$hst)[0];
$T=@mysqli_connect($hst,$usr,$pwd,"",$port);
$q=@mysqli_query($T,"SHOW DATABASES");
while($rs=@mysqli_fetch_row($q)){
...
...
@@ -29,8 +29,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$usr=$m?stripslashes($_POST["
${
arg2
}
"]):$_POST["
${
arg2
}
"];
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$dbn=$m?stripslashes($_POST["
${
arg4
}
"]):$_POST["
${
arg4
}
"];
$port=
split
(":",$hst)[1];
$hst=
split
(":",$hst)[0];
$port=
explode
(":",$hst)[1];
$hst=
explode
(":",$hst)[0];
$T=@mysqli_connect($hst,$usr,$pwd,"",$port);
$q=@mysqli_query($T, "SHOW TABLES FROM \`{$dbn}\`");
while($rs=@mysqli_fetch_row($q)){
...
...
@@ -50,8 +50,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$dbn=$m?stripslashes($_POST["
${
arg4
}
"]):$_POST["
${
arg4
}
"];
$tab=$m?stripslashes($_POST["
${
arg5
}
"]):$_POST["
${
arg5
}
"];
$port=
split
(":",$hst)[1];
$hst=
split
(":",$hst)[0];
$port=
explode
(":",$hst)[1];
$hst=
explode
(":",$hst)[0];
$T=@mysqli_connect($hst,$usr,$pwd,"",$port);
@mysqli_select_db($T, $dbn);
$q=@mysqli_query($T, "SHOW COLUMNS FROM \`{$tab}\`");
...
...
@@ -73,8 +73,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$dbn=$m?stripslashes($_POST["
${
arg4
}
"]):$_POST["
${
arg4
}
"];
$sql=base64_decode($_POST["
${
arg5
}
"]);
$port=
split
(":",$hst)[1];
$hst=
split
(":",$hst)[0];
$port=
explode
(":",$hst)[1];
$hst=
explode
(":",$hst)[0];
$T=@mysqli_connect($hst,$usr,$pwd,"",$port);
@mysqli_query($T,"SET NAMES $_POST[
${
arg6
}
]");
@mysqli_select_db($T,$dbn);
...
...
source/core/php/template/database/postgresql.js
View file @
bd866fa7
...
...
@@ -11,8 +11,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$usr=$m?stripslashes($_POST["
${
arg2
}
"]):$_POST["
${
arg2
}
"];
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$arr=array(
'host'=>
split
(':',$hst)[0],
'port'=>
split
(':',$hst)[1],
'host'=>
explode
(':',$hst)[0],
'port'=>
explode
(':',$hst)[1],
'user'=>$usr,
'password'=>$pwd,
);
...
...
@@ -50,8 +50,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$dbn=$m?stripslashes($_POST["
${
arg4
}
"]):$_POST["
${
arg4
}
"];
$arr=array(
'host'=>
split
(':',$hst)[0],
'port'=>
split
(':',$hst)[1],
'host'=>
explode
(':',$hst)[0],
'port'=>
explode
(':',$hst)[1],
'user'=>$usr,
'password'=>$pwd,
'dbname'=>$dbn,
...
...
@@ -92,8 +92,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$dbn=$m?stripslashes($_POST["
${
arg4
}
"]):$_POST["
${
arg4
}
"];
$tab=$m?stripslashes($_POST["
${
arg5
}
"]):$_POST["
${
arg5
}
"];
$arr=array(
'host'=>
split
(':',$hst)[0],
'port'=>
split
(':',$hst)[1],
'host'=>
explode
(':',$hst)[0],
'port'=>
explode
(':',$hst)[1],
'user'=>$usr,
'password'=>$pwd,
'dbname'=>$dbn,
...
...
@@ -137,8 +137,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$sql=base64_decode($_POST["
${
arg5
}
"]);
$encode=$m?stripslashes($_POST["
${
arg6
}
"]):$_POST["
${
arg6
}
"];
$arr=array(
'host'=>
split
(':',$hst)[0],
'port'=>
split
(':',$hst)[1],
'host'=>
explode
(':',$hst)[0],
'port'=>
explode
(':',$hst)[1],
'user'=>$usr,
'password'=>$pwd,
'dbname'=>$dbn,
...
...
source/core/php/template/database/postgresql_pdo.js
View file @
bd866fa7
...
...
@@ -10,8 +10,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$hst=$m?stripslashes($_POST["
${
arg1
}
"]):$_POST["
${
arg1
}
"];
$usr=$m?stripslashes($_POST["
${
arg2
}
"]):$_POST["
${
arg2
}
"];
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$host=
split
(':',$hst)[0];
$port=
split
(':',$hst)[1];
$host=
explode
(':',$hst)[0];
$port=
explode
(':',$hst)[1];
$arr=array(
'host'=>$host,
'port'=>$port,
...
...
@@ -46,8 +46,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$usr=$m?stripslashes($_POST["
${
arg2
}
"]):$_POST["
${
arg2
}
"];
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$dbn=$m?stripslashes($_POST["
${
arg4
}
"]):$_POST["
${
arg4
}
"];
$host=
split
(':',$hst)[0];
$port=
split
(':',$hst)[1];
$host=
explode
(':',$hst)[0];
$port=
explode
(':',$hst)[1];
$arr=array(
'host'=>$host,
'port'=>$port,
...
...
@@ -85,8 +85,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$pwd=$m?stripslashes($_POST["
${
arg3
}
"]):$_POST["
${
arg3
}
"];
$dbn=$m?stripslashes($_POST["
${
arg4
}
"]):$_POST["
${
arg4
}
"];
$tab=$m?stripslashes($_POST["
${
arg5
}
"]):$_POST["
${
arg5
}
"];
$host=
split
(':',$hst)[0];
$port=
split
(':',$hst)[1];
$host=
explode
(':',$hst)[0];
$port=
explode
(':',$hst)[1];
$arr=array(
'host'=>$host,
'port'=>$port,
...
...
@@ -127,8 +127,8 @@ module.exports = (arg1, arg2, arg3, arg4, arg5, arg6) => ({
$dbn=$m?stripslashes($_POST["
${
arg4
}
"]):$_POST["
${
arg4
}
"];
$sql=base64_decode($_POST["
${
arg5
}
"]);
$encode=$m?stripslashes($_POST["
${
arg6
}
"]):$_POST["
${
arg6
}
"];
$host=
split
(':',$hst)[0];
$port=
split
(':',$hst)[1];
$host=
explode
(':',$hst)[0];
$port=
explode
(':',$hst)[1];
$arr=array(
'host'=>$host,
'port'=>$port,
...
...
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