Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Brinck Bill
- * T3IF2
- * bribi093@school.lu
- */
- //Include the config.inc.php file
- require_once("config.inc.php");
- //Check if the user is logged in
- if(isset($_SERVER["REMOTE_USER"]) && $_SERVER["REMOTE_USER"] != "") {
- //Check if the $_POST variable fAll is set
- if (isset($_POST["fAll"])) {
- //Call function getMinValueOfSensor and output the return value
- echo functions::getMinValueOfSensor($db, null, null, null, 1);
- } else {
- //Store values in variables and sanitize them
- $date = functions::sanitize_string_for_html($_POST["fDate"], $db, 0);
- $start = functions::sanitize_string_for_html($_POST["fTimeStart"], $db, 0);
- $end = functions::sanitize_string_for_html($_POST["fTimeEnd"], $db, 0);
- //Call function getMinValueOfSensor and output the return value
- echo functions::getMinValueOfSensor($db, $date, $start, $end, 0);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement