From a58167017ef130f86c4e10086b2c6a752bfe6d8c Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 6 Oct 2014 15:44:01 +0200 Subject: [PATCH] Added testing option. --- c.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/c.php b/c.php index 69ef486..a03fee6 100644 --- a/c.php +++ b/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);