MAINTENANCE ONGOING
\n"; echo "check again in a few hours...
\n\n
\n
\n"; } $tables=array( "AnalysisResultsRunLP" => "QLA", "AnalysisResultsRunISDC" => "ISDC", ); $times=array( "timestamp" => "timestamp [YYYY-MM-DD HH:MM:SS]", "unix" => "unix-timestamp [seconds]", "mjd" => "modified julian date [days]", ); $zdcuts=array( "all" => "all data", "75" => "zd<75", "45" => "zd<45", "35" => "zd<35", "30" => "zd<30", ); $thcuts=array( "all" => "all data", "550" => "th<550", "350" => "th<350", ); $lights=array( "all" => "all data", "nomoon" => "no moon", "dark" => "only dark night", ); $dchs=array( "no" => "all data", "yes" => "apply data check (R750)", ); $dusts=array( "all" => "all data", "20" => "dust<20", "10" => "dust<10", "1.0" => "dust<1", ); $timebins=array( "5" => "5 minutes", "10" => "10 minutes", "20" => "20 minutes", "30" => "30 minutes", "40" => "40 minutes", "60" => "1 hour", "90" => "1.5 hours", "120" => "2 hours", "180" => "3 hours", "240" => "4 hours", "300" => "5 hours", "360" => "6 hours", "-1" => "1 night", "-2" => "2 nights", "-3" => "3 nights", "-4" => "4 nights", "-5" => "5 nights", "-6" => "6 nights", "-7" => "7 nights", "-10" => "10 nights", "00" => "period", ); $timebinsext=array( "20" => "20 minutes", "-1" => "1 night", ); // get/define initial values if (!empty($_POST["start"])) $start=$_POST["start"]; if (!empty($_POST["stop"])) $stop=$_POST["stop"]; if (!empty($_POST["dch"])) $dch=$_POST["dch"]; else $dch="novalue"; if (!empty($_POST["dust"])) $dust=$_POST["dust"]; else $dust="novalue"; if (!empty($_GET["expert"])) $_POST["expert"]=$_GET["expert"]; if (!empty($_POST["expert"])) $expert=$_POST["expert"]; else $expert="no"; if (!empty($_POST["email"])) $email=$_POST["email"]; else $email=""; if (!empty($_POST["light"])) $light=$_POST["light"]; else $light="novalue"; if (!empty($_POST["source"])) $source=$_POST["source"]; else $source=-1; if (!empty($_POST["timebin"])) $timebin=$_POST["timebin"]; else $timebin="novalue"; if (!empty($_POST["time"])) $time=$_POST["time"]; else $time="novalue"; if (!empty($_POST["table"])) $table=$_POST["table"]; else $table="AnalysisResultsRunLP"; if (!empty($_POST["th"])) $th=$_POST["th"]; else $th="novalue"; if (!empty($_POST["zd"])) $zd=$_POST["zd"]; else $zd="novalue"; //variable for non-combinable date/source $warn=""; include ("db.php"); $db_id = mysql_connect($host, $user, $pw); mysql_select_db($db); ini_set("display_errors", "On"); ini_set("mysql.trace_mode", "On"); echo "
"; echo "