Time to POST it
Moved away from sending data in GET request and now using POST requests.
This commit is contained in:
parent
fdd8d12320
commit
0f18a99213
23
c.php
23
c.php
@ -176,24 +176,25 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$action = $_GET['a'];
|
$action = $_POST['a'];
|
||||||
|
|
||||||
$server = 'localhost';
|
$server = 'localhost';
|
||||||
$user = $_GET['u'];
|
$user = $_POST['u'];
|
||||||
$password = $_GET['p'];
|
$password = $_POST['p'];
|
||||||
|
|
||||||
$database = $_GET['d'];
|
$database = $_POST['d'];
|
||||||
$table = $_GET['t'];
|
$table = $_POST['t'];
|
||||||
$start = $_GET['s'];
|
$start = $_POST['s'];
|
||||||
$limit = $_GET['l'];
|
$limit = $_POST['l'];
|
||||||
$query = $_GET['q'];
|
$query = $_POST['q'];
|
||||||
$header = $_GET['h'];
|
$header = $_POST['h'];
|
||||||
$values = $_GET['v'];
|
$values = $_POST['v'];
|
||||||
$oldValues = $_GET['o'];
|
$oldValues = $_POST['o'];
|
||||||
|
|
||||||
if(($user == null) || ($password == null) || ($action == null))
|
if(($user == null) || ($password == null) || ($action == null))
|
||||||
die('Nope');
|
die('Nope');
|
||||||
|
|
||||||
|
|
||||||
$con = new connector($user, $password, $server);
|
$con = new connector($user, $password, $server);
|
||||||
|
|
||||||
switch ($action){
|
switch ($action){
|
||||||
|
Loading…
Reference in New Issue
Block a user