"Mrk421", "2" => "Mrk501", "5" => "Crab", "7" => "1ES 1959+650", "11" => "IC 310", ); $ranges=array( "5min" => " 5 min", "10min" => "10 min", "20min" => "20 min", "30min" => "30 min", "40min" => "40 min", "60min" => "60 min", "80min" => "80 min", "120min" => "120 min", "180min" => "180 min", "240min" => "240 min", "300min" => "300 min", // "0001nights" => "1 night", // "0002nights" => "2 nights", // "0004nights" => "4 nights", // "0008nights" => "8 nights", // "0016nights" => "16 nights", ); echo "\n"; echo "
\n"; echo " result of Quick-Look-Analysis for "; echo "source \n"; echo " for \n
\n"; $date=GetDates($_GET["date"], "lightcurves"); $date2=date("Ymd", strtotime($date)); $path="../lightcurves/".date("Y/m/d", strtotime($date)); echo "
\n"; $numplots=8; $filename="lightcurve".$_GET["source"]."_".$_GET["bin"]."_all.root"; $filename2="lightcurve".$_GET["source"]."_".$_GET["bin"]."_week.root"; $filename3="lightcurve".$_GET["source"]."_".$_GET["bin"]."_".$date2.".root"; $rootfile=$path."/".$filename2; //echo $filename; if (file_exists($rootfile)) { printf("more files", $path); echo ""; printf("\n", $date); for ($i=1; $i<$numplots+1; $i++) { if (strpos($_GET["bin"], "night")) printf("", $path, $filename, $i, $i); else { printf("\n"); printf("\n", $path, $filename3, $i, $i); printf("\n", $path, $filename2, $i, $i); printf("\n", $path, $filename, $i, $i); printf("\n"); } } echo "
Night %sLast WeekAll Nights
%d
%d%d%d
"; } else echo "
No files available for " . $sources[$_GET["source"]] . " with " . $ranges[$_GET["bin"]]. " for night ".$date.".
"; echo ""; echo ""; ?>