Unverified Commit bd866fa7 authored by Virink's avatar Virink Committed by GitHub

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
......@@ -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);
......
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment