Index: trunk/www/dch/download.php
===================================================================
--- trunk/www/dch/download.php	(revision 19045)
+++ trunk/www/dch/download.php	(revision 19046)
@@ -7,102 +7,146 @@
 
   <link rel="StyleSheet" type="text/css" href="../../style.css" />
-  <link href="flotsetup.css" rel="stylesheet" type="text/css">
   <link rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
-  <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../../flot/excanvas.js"></script><![endif]-->
-  <script language="javascript" type="text/javascript" src="../../flot/jquery.js"></script>
-  <script language="javascript" type="text/javascript" src="../../flot/jquery.flot.js"></script>
-  <script language="javascript" type="text/javascript" src="../../flot/jquery.flot.errorbars.js"></script>
-  <script language="javascript" type="text/javascript" src="../../flot/jquery.flot.navigate.js"></script>
-  <script language="javascript" type="text/javascript" src="../../flot/jquery.flot.selection.js"></script>
-  <script language="javascript" type="text/javascript" src="../../flot/jquery.flot.time.js"></script>
-  <script language="javascript" type="text/javascript" src="include.js"></script>
   <script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
 </head>
 <body>
-
-    <input type="button" size="8" id="login" style="float:right;" value='login' onclick='login("yes")'>
-    <input type="hidden" id="logged" value="no">
+    <hr>
+    <p style='font-size:xx-large'> MAINTENANCE ONGOING </p>
+    <p>check again in a few hours...</p>
+    <p>
+    <hr>
+    <p>
+    <p>
 
 <?php
 
 $tables=array(
-              "AnalysisResultsRunLP"   => "LP",
-              "AnalysisResultsRunISDC" => "ISDC",
-               );
-
-$datachecks=array(
-              "1"   => "off",
-              "2"   => "on",
-               );
+      "AnalysisResultsRunLP"   => "QLA",
+      "AnalysisResultsRunISDC" => "ISDC",
+      );
 
 $times=array(
-      "time"   => "time",
-      "unix"   => "unix",
-      "mjd"   => "mjd",
-      );
+      "time"   => "timestamp",
+      "unix"   => "unixtime",
+      "mjd"   => "MJD",
+      );
+
+$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($_GET["dch"]))
+    $dch=$_GET["dch"];
+else
+    $dch="novalue";
+
+if (!empty($_GET["dust"]))
+    $dust=$_GET["dust"];
+else
+    $dust="novalue";
 
 if (!empty($_GET["expert"]))
-{
-    $timebins=array(
-                    "5"    => "5min",
-                    "10"    => "10min",
-                    "20"    => "20min",
-                    "30"    => "30min",
-                    "40"    => "40min",
-                    "60"    => "60min",
-                    "90"    => "90min",
-                    "120"    => "120min",
-                    "180"    => "180min",
-                    "240"   => "240min",
-                    "300"   => "300min",
-                    "360"   => "360min",
-                    "-1"   => "1night",
-                   );
-}
-else
-{
-    $timebins=array(
-                    "20"    => "20min",
-                    "-1"   => "1night",
-                   );
-}
+    $expert=$_GET["expert"];
+else
+    $expert="no";
+
+if (!empty($_GET["email"]))
+    $email=$_GET["email"];
+else
+    $email="";
+
+if (!empty($_GET["light"]))
+    $light=$_GET["light"];
+else
+    $light="novalue";
+
+if (!empty($_GET["source"]))
+    $source=$_GET["source"];
+else
+    $source=-1;
+
+if (!empty($_GET["timebin"]))
+    $timebin=$_GET["timebin"];
+else
+    $timebin="novalue";
 
 if (!empty($_GET["time"]))
     $time=$_GET["time"];
-
-if (!empty($_GET["start"]))
-    $start=$_GET["start"];
-//else
-//    $start="20111115";
-
-if (!empty($_GET["stop"]))
-    $stop=$_GET["stop"];
-//else
-//    $stop="20201231";
-
-if (!empty($_GET["timebin"]))
-    $bin=$_GET["timebin"];
-else
-    $bin="1night";
-
-if (!empty($_GET["email"]))
-    $email=$_GET["email"];
-else
-    $email="";
-
-if (!empty($_GET["source"]))
-    $source=$_GET["source"];
-else
-    $source="-1";
-
-//if (empty($_GET["timebin"]))
-//    $_GET["timebin"]="12";
-
-if (empty($_GET["table"]))
-    $_GET["table"]="AnalysisResultsRunLP";
-
-//still to be implemented in Step3.sh
-if (empty($_GET["datacheck"]))
-    $_GET["datacheck"]="1";
+else
+    $time="novalue";
+
+if (!empty($_GET["table"]))
+    $table=$_GET["table"];
+else
+    $table="AnalysisResultsRunLP";
+
+if (!empty($_GET["th"]))
+    $th=$_GET["th"];
+else
+    $th="novalue";
+
+if (!empty($_GET["zd"]))
+    $zd=$_GET["zd"];
+else
+    $zd="novalue";
 
 //variable for non-combinable date/source
@@ -117,10 +161,40 @@
 ini_set("mysql.trace_mode", "On");
 
-echo "<big><big><big><u>FACT Quick Look Analysis</u></big></big></big><br><br>\n";
-//echo "The official release of this webpage will take place on 1.9.2013.</big></big></big><br><br>";
-
+echo "<h1><u>FACT Quick Look Analysis - Download Area</u></h1>\n";
+//echo "<hr>\n";
+echo "<h2>Data Usage Policy</h2>\n";
+
+if ($expert=="yes")
+{
+    echo "As a member or associated member of the FACT Collaboration, you have access to internal information.<br>\n";
+    echo "Any publication using FACT internal information has to have the full FACT author list.<br><br>\n";
+}
+else
+{
+    echo "<b>Using data from the FACT Quick Look Analysis, you agree to cite the ";
+    echo "<a target='_blank' href='http://iopscience.iop.org/1748-0221/8/06/P06008'>FACT design paper</a>\n ";
+    echo "and the <a target='_blank' href='https://fact-project.org/monitoring'>quick look analysis</a>.</b>\n";
+    echo "<br><br>\n \n ";
+    echo "<u>References:</u>\n";
+    echo "<ul>\n";
+    echo "<li>Website Quick Look Analysis: <a target='_blank' href='https://fact-project.org/monitoring'>https://fact-project.org/monitoring </a></li>\n";
+    echo "<li>FACT Design Paper: H. Anderhub et al. JINST 8 P6008 <a target='_blank' href='http://adsabs.harvard.edu/abs/2013JInst...8P6008A'>ADS</a>\n ";
+    echo "<a target='_blank' href='http://iopscience.iop.org/1748-0221/8/06/P06008'>open access</a>\n</li>\n";
+    echo "<li>FACT Performance Paper: A. Biland et al. JINST 9 P10012 <a target='_blank' href='http://adsabs.harvard.edu/abs/2014JInst...9P0012B'>ADS</a>\n ";
+    echo "<a target='_blank' href='http://iopscience.iop.org/1748-0221/9/10/P10012/'>open access</a>\n</li>\n";
+    echo "<li>Information on the Quick Look Analysis: D. Dorner et al. Proceedings Fermi Symposium 2014 <a target='_blank' href='http://adsabs.harvard.edu/abs/2015arXiv150202582D'>ADS</a>\n ";
+    echo "<a target='_blank' href='https://arxiv.org/pdf/1502.02582v1.pdf'>open access</a>\n</li>\n";
+    echo "</ul>\n";
+}
+
+
+echo "If you intend to use data or information from this website, please let us know for reference.<br>\n";
+
+
+//echo "<hr>\n";
 echo "<form name='formular' action='download.php' METHOD='GET'>\n";
 
-$query="SELECT fSourceKey, fSourceName, (SELECT COUNT(*) FROM ".$_GET["table"]." LEFT JOIN RunInfo USING(fNight, fRunID) WHERE fRunTypeKey=1 AND RunInfo.fSourceKey=Source.fSourceKey) AS num FROM Source WHERE fSourceTypeKey=1";
+//$query="SELECT fSourceKey, fSourceName, (SELECT COUNT(*) FROM ".$_GET["table"]." LEFT JOIN RunInfo USING(fNight, fRunID) WHERE fRunTypeKey=1 AND RunInfo.fSourceKey=Source.fSourceKey) AS num FROM Source WHERE fSourceTypeKey=1";
+$query="SELECT fSourceKey, fSourceName, COUNT(*) AS num FROM RunInfo LEFT JOIN Source USING(fSourceKey) WHERE fSourceTypeKey=1 AND fRunTypeKey=1 GROUP BY fSourceKey ORDER BY num DESC";
 //echo $query."<br>";
 
@@ -131,5 +205,6 @@
 mysql_free_result($result);
 
-$query="SELECT Min(fNight), Max(fNight) FROM ".$_GET["table"];
+//$query="SELECT Min(fNight), Max(fNight) FROM ".$_GET["table"];
+$query="SELECT Min(fNight), Max(fNight) FROM RunInfo";
 //echo $query."<br>";
 
@@ -146,16 +221,22 @@
 if (strpos($email, "@")!= false && $source>0)
 {
-    printf("Sending email to %s containing the data of %s from %d till %d for %s binning...<br>\n", $email, $sources[$source], $start, $stop, $timebins[$bin]);
-    echo "<input class='Width' type='button' value='Reset' onClick='self.location.href=\"download.php\"'><br>\n";
-    $sent=shell_exec("export AUTOMATIONSETUP='fact.lp.gate'; /users/fact/SW.automatic.processing/DataCheck/QuickLook/SendData.sh ".$start." ".$stop." ".$source." ".$bin." ".$email." ".$_GET["table"]." ".$time);
+    echo "<h2>Sending data...</h2>\n";
+    printf("Sent email to %s containing the data of %s from %d till %d for %s binning.<br>\n", $email, $sources[$source], $start, $stop, $timebins[$timebin]);
+    //printf("Sending email to %s containing the data of %s from %d till %d for %s binning...<br>\n", $email, $sources[$source], $start, $stop, $timebins[$timebin]);
+    //echo "<input class='Width' type='button' value='Reset' onClick='self.location.href=\"download.php";
+    //if ($expert == "yes")
+    //    echo "?expert=yes";
+    //echo "\"'><br>\n";
+    //echo $start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust."<br>\n";
+    $sent=shell_exec("/users/fact/SW.automatic.processing/DataCheck/Tools/get_data.sh ".$start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust);
     echo $sent;
-    return;
-}
-
-printf("From <input name='start' type='text' size='8' maxlength='8' value='%s'> (YYYYMMDD)\n", $start);
-printf("to <input name='stop' type='text' size='8' maxlength='8' value='%s'> (YYYYMMDD)\n <br>\n", $stop);
-
-echo "source <select name='source' size='1'>\n";
-if ($source == 0)
+    // use other return information
+}
+
+echo "<h2>Select here the settings for your data sample:</h2>\n";
+
+// SOURCE
+echo "<select name='source' size='1'>\n";
+if ($source == -1)
     printf("<option value='-1' selected>Select Source</option>\n");
 else
@@ -170,94 +251,186 @@
 echo "</select>\n";
 
-echo "binning <select name='timebin' size='1'>\n";
+// Time Format
+echo "<select name='time' size='1'>\n";
+if ($time == "")
+    printf("<option value='novalue' selected>Select Time Format</option>\n");
+else
+    printf("<option value='novalue'>Select Time Format</option>\n");
+foreach ($times as $key => $name)
+{
+    if ($time == $key)
+        printf("<option value='%s' selected>%s</option>\n", $key, $name);
+    else
+        printf("<option value='%s'>%s</option>\n", $key, $name);
+}
+echo "</select>\n ";
+
+// Binning
+echo "<select name='timebin' size='1'>\n";
+if ($timebin == "novalue")
+    printf("<option value='novalue' selected>Select Binning</option>\n");
+else
+    printf("<option value='novalue'>Select Binning</option>\n");
+if ($expert != "yes")
+    $timebins=$timebinsext;
 foreach ($timebins as $key => $name)
 {
-    if ($_GET["timebin"] == $key)
+    if ($timebin == $key)
         printf("<option value='%s' selected>%s</option>\n", $key, $name);
     else
         printf("<option value='%s'>%s</option>\n", $key, $name);
 }
-echo "</select>\n <br>\n";
-
-echo "format of time <select name='time' size='1'>\n";
-foreach ($times as $key => $name)
-{
-    if ($_GET["time"] == $key)
-        printf("<option value='%s' selected>%s</option>\n", $key, $name);
-    else
-        printf("<option value='%s'>%s</option>\n", $key, $name);
-}
-echo "</select>\n <br>\n";
-
-echo "Please provide your email address here to receive the data: <br>\n";
+echo "</select>\n";
+echo "<br>\n";
+
+printf("Time Range: from <input name='start' type='text' size='8' maxlength='8' value='%s'> \n", $start);
+printf("to <input name='stop' type='text' size='8' maxlength='8' value='%s'> \n ", $stop);
+//echo "<input class='Width' type='button' value='Reset' onClick='self.location.href=\"download.php\"'><br>\n";
+echo "<input class='Width' type='button' value='Reset' onClick='self.location.href=\"download.php";
+if ($expert == "yes")
+    echo "?expert=yes";
+echo "\"'><br>\n";
+
+if ($expert == "yes")
+{
+    echo "<h2>Further settings for internal use: </h2>\n";
+    echo "<input type='hidden' name='expert' value='yes'>\n";
+
+    echo "Select Analysis: <select name='table' size='1'>\n";
+    foreach ($tables as $key => $name)
+    {
+        if ($table == $key)
+            printf("<option value='%s' selected>%s</option>\n", $key, $name);
+        else
+            printf("<option value='%s'>%s</option>\n", $key, $name);
+    }
+    echo "</select><br>\n";
+
+    echo "Cuts: \n";
+    //DATACHECK
+    echo "<select name='dch' size='1'>\n";
+    if ($dch == "novalue")
+        printf("<option value='novalue' selected>Select DataCheck</option>\n");
+    else
+        printf("<option value='novalue'>Select DataCheck</option>\n");
+    foreach ($dchs as $key => $name)
+    {
+        if ($dch == $key)
+            printf("<option value='%s' selected>%s</option>\n", $key, $name);
+        else
+            printf("<option value='%s'>%s</option>\n", $key, $name);
+    }
+    echo "</select>\n ";
+
+    //DUST
+    echo "<select name='dust' size='1'>\n";
+    if ($dust == "novalue")
+        printf("<option value='novalue' selected>Select Calima-Cut</option>\n");
+    else
+        printf("<option value='novalue'>Select Calima-Cut</option>\n");
+    foreach ($dusts as $key => $name)
+    {
+        if ($dust == $key)
+            printf("<option value='%s' selected>%s</option>\n", $key, $name);
+        else
+            printf("<option value='%s'>%s</option>\n", $key, $name);
+    }
+    echo "</select>\n ";
+
+    //ZD
+    echo "<select name='zdcut' size='1'>\n";
+    if ($zd == "novalue")
+        printf("<option value='novalue' selected>Select Zd-Cut</option>\n");
+    else
+        printf("<option value='novalue'>Select Zd-Cut</option>\n");
+    foreach ($zdcuts as $key => $name)
+    {
+        if ($zd == $key)
+            printf("<option value='%s' selected>%s</option>\n", $key, $name);
+        else
+            printf("<option value='%s'>%s</option>\n", $key, $name);
+    }
+    echo "</select>\n ";
+
+    //TH
+    echo "<select name='thcut' size='1'>\n";
+    if ($th == "novalue")
+        printf("<option value='novalue' selected>Select Threshold-Cut</option>\n");
+    else
+        printf("<option value='novalue'>Select Threshold-Cut</option>\n");
+    foreach ($thcuts as $key => $name)
+    {
+        if ($th == $key)
+            printf("<option value='%s' selected>%s</option>\n", $key, $name);
+        else
+            printf("<option value='%s'>%s</option>\n", $key, $name);
+    }
+    echo "</select>\n ";
+
+    echo "<select name='light' size='1'>\n";
+    if ($light == "novalue")
+        printf("<option value='novalue' selected>Select Light-Condition-Cut</option>\n");
+    else
+        printf("<option value='novalue'>Select Light-Condition-Cut</option>\n");
+    foreach ($lights as $key => $name)
+    {
+        if ($lightt == $key)
+            printf("<option value='%s' selected>%s</option>\n", $key, $name);
+        else
+            printf("<option value='%s'>%s</option>\n", $key, $name);
+    }
+    echo "</select>\n <br>\n";
+}
+
+echo "<h2>Get data:</h2>\n";
+
+echo "Provide your email address to receive the data: \n";
 printf("<input name='email' type='text' size='20' maxlength='50' value='%s'>\n<br>\n", $email);
 
-echo "By clicking on the button, you agree to the data usage policy: <br>\n";
+echo "Clicking on the button, you agree to the data usage policy: \n";
 echo "<input class='Width' type='button' value='Send data by Email' onClick='submit()'><br>\n";
-echo "<input class='Width' type='button' value='Reset' onClick='self.location.href=\"download.php\"'><br>\n";
-
-
-if (!empty($_GET["expert"]))
-{
-    echo "Expert mode: <br>\n";
-    echo "<input type='hidden' name='expert' value='yes'>\n";
-
-    echo "&nbsp;&nbsp;&nbsp;Select Analysis: <select name='table' size='1'>\n";
-    foreach ($tables as $key => $name)
-    {
-        if ($_GET["table"] == $key)
-            printf("<option value='%s' selected>%s</option>\n", $key, $name);
-        else
-            printf("<option value='%s'>%s</option>\n", $key, $name);
-    }
-    echo "</select> <br>\n";
-
-    echo "&nbsp;&nbsp;&nbsp;Select Datacheck: <select name='datacheck' size='1'>\n";
-    foreach ($datachecks as $key => $name)
-    {
-        if ($_GET["datacheck"] == $key)
-            printf("<option value='%s' selected>%s</option>\n", $key, $name);
-        else
-            printf("<option value='%s'>%s</option>\n", $key, $name);
-    }
-    echo "</select> (not yet implemented)<br>\n";
-
-}
+
+
 
 echo "</form>\n";
 
-echo "<br>\n";
-echo "<b>REMARKS:</b> ";
-echo "<ul>";
-//echo "<li>The results shown on this page are <b><i>PRELIMINARY</i></b>.</li>";
-echo "<li>These are the results of a <b>fast quick look analysis</b> on site, i.e. they are <b>preliminary</b>.</li>\n";
-echo "<li>The quick look analysis includes all data, i.e. no data selection done.</li>\n";
-//echo "<li><b>NO data check</b> is included in the analysis.</li>";
-echo "<li>The shown curves are not fluxes but <b>excess rates</b> (number of excess events per effective ontime), \n";
-echo "i.e. there is a dependence on trigger threshold and zenith distance of the observation (with the current \n";
-echo "analysis for zenith distance > 40 degree and trigger threshold > 500 DAC counts).</li>\n";
-//echo "i.e. a dependence on trigger threshold and zenith distance of the observation is expected ";
-//echo "for zenith distance larger than 40 degree and very strong moon light.</li>";
-//echo "<li><b>NO corrections</b> for the dependence on zenith distance and trigger threshold of the observation are applied so far.</li>";
-//echo "<li>This webpage shows the <b>excess rates</b> (black), i.e. number of excess events ";
-//echo "(signal minus background in the signal region) devided by the ontime of the observation, ";
-//echo "and the <b>background rates</b> (blue), i.e. number of background events devided by ontime. </li>";
-echo "<li>The curves are provided with 20 min binning and nightly binning.</li>\n";
-echo "<li>In case, you need further details about the data or a different binning, please do not hesitate to contact us.</li>\n";
-echo "<li>QLA results are available for the data since 12.12.2012. For older data, please contact us.</li>\n";
-echo "<li>New software versions were introduced at the following dates: 24.5.2014</li>\n";
-echo "</ul>";
-echo "If you intend to use the data or information from this website, please let us know for reference.<br>\n";
-echo "<big><b>Please cite this webpage and the ";
-echo "<a target='_blank' href='http://iopscience.iop.org/1748-0221/8/06/P06008'>FACT design paper</a>\n ";
-echo "when using information from this webpage or any FACT data.</b></big>\n";
-echo "<br><br>\n \n ";
-echo "Reference FACT Design Paper: H. Anderhub et al. JINST 8 P6008 <a target='_blank' href='http://adsabs.harvard.edu/abs/2013JInst...8P6008A'>ADS</a>\n ";
-echo "<a target='_blank' href='http://iopscience.iop.org/1748-0221/8/06/P06008'>open access</a>\n<br>\n";
-echo "Reference FACT Performance Paper: A. Biland et al. JINST 9 P10012 <a target='_blank' href='http://adsabs.harvard.edu/abs/2014JInst...9P0012B'>ADS</a>\n ";
-echo "<a target='_blank' href='http://iopscience.iop.org/1748-0221/9/10/P10012/'>open access</a>\n<br>\n";
-echo "Information on the Quick Look Analysis: D. Dorner et al. Proceedings Fermi Symposium 2014 <a target='_blank' href='http://adsabs.harvard.edu/abs/2015arXiv150202582D'>ADS</a>\n ";
-echo "<a target='_blank' href='https://arxiv.org/pdf/1502.02582v1.pdf'>open access</a>\n<br><br>\n";
-echo "Contact: Daniela Dorner <i>dorner&lt;at&gt;astro.uni-wuerzburg.de</i>.<br>";
+echo "<h2>Remarks:</h2> ";
+
+
+if ($expert="yes")
+{
+    echo "<ul>\n";
+    echo "<li>The correction formula to correct the excess rate for the effects of zd and threshold are not yet final.</li>\n";
+    echo "<li>The CU conversion is currently only valid for QLA and until summer 2016.</li>\n";
+    echo "<li>The data quality selection based on the artificial trigger rate R750 might not work for all data (effect of lidar).</li>\n";
+    //echo "<li></li>\n";
+    echo "</ul>";
+}
+else
+{
+    echo "<ul>\n";
+    //echo "<li>The results shown on this page are <b><i>PRELIMINARY</i></b>.</li>";
+    echo "<li>These are the results of a <b>fast quick look analysis</b> on site, i.e. they are <b>preliminary</b>.</li>\n";
+    echo "<li>The quick look analysis includes all data, i.e. no data selection done.</li>\n";
+    //echo "<li><b>NO data check</b> is included in the analysis.</li>";
+    echo "<li>The shown curves are not fluxes but <b>excess rates</b> (number of excess events per effective ontime), \n";
+    echo "i.e. there is a dependence on trigger threshold and zenith distance of the observation (with the current \n";
+    echo "analysis for zenith distance > 40 degree and trigger threshold > 500 DAC counts).</li>\n";
+    //echo "i.e. a dependence on trigger threshold and zenith distance of the observation is expected ";
+    //echo "for zenith distance larger than 40 degree and very strong moon light.</li>";
+    //echo "<li><b>NO corrections</b> for the dependence on zenith distance and trigger threshold of the observation are applied so far.</li>";
+    //echo "<li>This webpage shows the <b>excess rates</b> (black), i.e. number of excess events ";
+    //echo "(signal minus background in the signal region) devided by the ontime of the observation, ";
+    //echo "and the <b>background rates</b> (blue), i.e. number of background events devided by ontime. </li>";
+    echo "<li>The curves are provided with 20 min binning and nightly binning.</li>\n";
+    echo "<li>In case, you need further details about the data or a different binning, please do not hesitate to contact us.</li>\n";
+    echo "<li>QLA results are available for the data since 12.12.2012. For older data, please contact us.</li>\n";
+    echo "<li>New software versions were introduced at the following dates: 24.5.2014</li>\n";
+    echo "</ul>\n";
+    echo "In case you are interested in more than the public data, please contact us.\n";
+}
+
+echo "<h2>Contact</h2>";
+echo "Daniela Dorner <i>dorner&lt;at&gt;astro.uni-wuerzburg.de</i><br>";
 //echo "You acknowledge these regulations by clicking on the 'Show' button.</b></big> <br><br><br>";
 
