Added testing option.
This commit is contained in:
parent
58a32d7999
commit
a58167017e
7
c.php
7
c.php
@ -209,8 +209,7 @@ class connector
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DEBUG!!!
|
$testEnabled = true;
|
||||||
// $_POST = $_GET;
|
|
||||||
|
|
||||||
$action = $_POST['a'];
|
$action = $_POST['a'];
|
||||||
|
|
||||||
@ -230,6 +229,10 @@ $oldValues = $_POST['o'];
|
|||||||
if (($user == null) || ($password == null) || ($action == null))
|
if (($user == null) || ($password == null) || ($action == null))
|
||||||
die('Nope');
|
die('Nope');
|
||||||
|
|
||||||
|
if($testEnabled){
|
||||||
|
if($_GET['test']==true)
|
||||||
|
$_POST = $_GET;
|
||||||
|
}
|
||||||
|
|
||||||
$con = new connector($user, $password, $server);
|
$con = new connector($user, $password, $server);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user