<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML><BODY>

<?php
include "config.php";

if (isset($_GET["pw"]) and ($_GET["pw"] == $PASSWORD)) {
  if (isset($_GET["temp"])) {
    $temp = intval($_GET["temp"]);

#    $add_query = "INSERT INTO $table VALUES (null, convert_tz(now(),'SYSTEM', 'UTC'), '$temp')";
    $add_query = "INSERT INTO $table VALUES (null, now(), '$temp')";
    $DB =  mysql_connect($DBHOST, $DBUSER, $DBPASS);
    mysql_select_db($DBNAME, $DB);
    mysql_query($add_query) or die("MySQL error!");
  }
} else {
  echo "Wrong password!";
}

?>

</BODY>
</HTML>