diff --git a/help/resetpw.php b/help/resetpw.php index 31b0781a..34393d62 100644 --- a/help/resetpw.php +++ b/help/resetpw.php @@ -68,7 +68,7 @@ Cheers, OpenFlights.org"; - if (isset($_POST["unittest"])) { + if (defined(UNIT_TEST_MODE) && UNIT_TEST_MODE && isset($_POST["unittest"])) { echo $link . "***" . $row['challenge']; exit(0); } diff --git a/php/apsearch.php b/php/apsearch.php index f71be97c..c497f43c 100644 --- a/php/apsearch.php +++ b/php/apsearch.php @@ -238,7 +238,7 @@ TXT; - if (isset($_POST["unittest"])) { + if (defined(UNIT_TEST_MODE) && UNIT_TEST_MODE && isset($_POST["unittest"])) { echo $title . "\n\n" . $body; exit; } diff --git a/php/config.php.sample b/php/config.php.sample index c166c2c5..46bf784c 100644 --- a/php/config.php.sample +++ b/php/config.php.sample @@ -1,4 +1,7 @@