Added testing option.

This commit is contained in:
Przemek Grondek 2014-10-06 15:44:01 +02:00
parent 58a32d7999
commit a58167017e

7
c.php
View File

@ -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);