"Mrk421", "2" => "Mrk501", "5" => "Crab", "7" => "1ES 1959+650", "4" => "PKS 2155-304", "3" => "1ES 2344+51.4", "9" => "1ES 1218+304", "11" => "IC 310", "12" => "1H023+342", ); $ranges=array( "5min" => " 5 min", "10min" => "10 min", "20min" => "20 min", "30min" => "30 min", "40min" => "40 min", "60min" => "60 min", "90min" => "90 min", "120min" => "120 min", "180min" => "180 min", "240min" => "240 min", "300min" => "300 min", "360min" => "360 min", // "0001nights" => "1 night", // "0002nights" => "2 nights", // "0004nights" => "4 nights", // "0008nights" => "8 nights", // "0016nights" => "16 nights", ); echo "
\n"; 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 "Night %s | Last Week | All Nights | |||
---|---|---|---|---|---|
\n", $path, $filename3, $i, $i); else printf(" | n/a | "); $file2=$path."/".$filename2."-".$i.".png"; if (file_exists($file2)) printf("\n", $path, $filename2, $i, $i); else printf(" | n/a | "); $file1=$path."/".$filename."-".$i.".png"; if (file_exists($file1)) printf("\n", $path, $filename, $i, $i); else printf(" | n/a | "); printf("