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!!!
|
||||
// $_POST = $_GET;
|
||||
$testEnabled = true;
|
||||
|
||||
$action = $_POST['a'];
|
||||
|
||||
@ -230,6 +229,10 @@ $oldValues = $_POST['o'];
|
||||
if (($user == null) || ($password == null) || ($action == null))
|
||||
die('Nope');
|
||||
|
||||
if($testEnabled){
|
||||
if($_GET['test']==true)
|
||||
$_POST = $_GET;
|
||||
}
|
||||
|
||||
$con = new connector($user, $password, $server);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user