$ytarr include("yt.inc"); // Video Directory einlesen und parsen -> $dir include("videodir.inc"); // Speakers einlesen -> $speakers include("speakers.inc"); // Konferenzdaten einlesen und Liste ausgeben $json = file_get_contents(CONF_URL); if ($json===FALSE) die("CONF_URL ".CONF_URL." konnte nicht gelesen werden.\n"); $a=json_decode($json, TRUE); if (is_null($a)) die("CONF_URL ".CONF_URL." konnte nicht als JSON interpretiert werden.\n"); html_header_css(); echo "
\n"; include('head.inc'); echo "
\n"; include('nav.inc'); echo "
\n
\n"; echo "
\n"; echo "

Video recordings

\n"; $debug=preg_match("/debug/i", $_SERVER["QUERY_STRING"]); if ($debug) { echo "

"; echo "".count($ytarr)." YT-Links gefunden. "; echo "".count($dir)." Videos gefunden. "; echo count($speakers)." Vortragende (mit Bild) gefunden. "; } else { if ((count($ytarr)==0) && (count($dir)==0)) { echo "

No video recordings available.

\n"; } } // DEBUG!! //?? $ytarr[5096]="TEST1"; //$ytarr[5041]="TEST2"; //$ytarr[5070]=$ytarr[7582]; //$ytarr[5096]=$ytarr[7595]; // $ytarr sind die YT-IDs (Key ist die ID des Vortrags) // $a ist die schedule // $b ist version und conference // $c ist die conference (title, start, end, daysCount und days) // $d sind die days // $e ist der einzelne Tag ($nr der Tageszaehler, 0-based) // $r sind die rooms pro Tag ($raum der Raumzaehler pro Tag) // $f sind die Vortraege pro Raum // $v ist der einzelne Vortrag ($vnr als Zähler) // $v["persons"] sind die Personen // $p die einzelne Person "public_name" ($pnr als Personenzaehler) $b=current($a); $c=$b["conference"]; $daycount=$c["daysCount"]; $d=$c["days"]; if ($debug) { if (count($d)==$daycount) echo $daycount." Tage gefunden.\n"; else echo "Tage: SOLL=".$daycount.", IST=".count($d)."\n"; echo "

\n"; } echo "\n"; echo "\n \n"; echo " \n"; echo " \n\n"; echo "\n \n\n"; echo "\n"; $i=0; foreach ($d as $nr => $e) { $date=$e["date"]; //echo "Tag ".($nr+1).": ".$e["date"]."\n"; //echo wochentag($date)."\n"; echo " \n"; echo " \n"; echo " \n"; if ($i%2) $i++; // nach dem Wochentag mit weiss beginnen foreach ($e["rooms"] as $raum => $f) { if (count($f)<1) continue; // naechster Raum if (substr($raum, 0, 6)=="E EXPO") $raum=substr($raum, 2); if (strpos(HIDDEN_ROOMS, "|".$raum."|")>0) continue; // gewisse Raeume ueberspringen //# //echo "Raum ".$raum.": "; //echo count($f)." Vortraege gefunden.\n"; foreach ($f as $vnr => $v) { //echo "vorträge".count($f); if ($i%2) echo " \n"; else echo " \n"; $i++; $id=$v["id"]; if (strpos(HIDDEN_IDS, "|".$id."|")>0) continue; // gewisse IDs ueberspringen $title=remove_tags($v["title"]); $subtitle=remove_tags($v["subtitle"]); $desc=remove_tags($v["description"]); echo " \n"; echo " \n"; $pers=""; $pid=0; foreach ($v["persons"] as $pnr => $p) { if ($pnr>0) $pers.=", "; if (($pid==0) && (array_key_exists($p["id"], $speakers))) $pid=$p["id"]; $pers.="".$p["public_name"].""; } // Personen echo " \n"; echo " \n"; echo " \n"; if (array_key_exists($id, $ytarr)) { echo " \n"; echo " \n"; // Vortragszeile fertig } // Vortraege } // Räume } // Tage echo "\n"; echo "
TimeRoomSpeakerTitleVideo/AudioID
".wochentag($date)."
".$date." ".$v["start"]."".ltrim($raum).""; if ($pid!=0) echo "\"".$speakers[$pid]["name"]."\"\n"; echo "".$pers."".utf8_cut($title, TIT_LEN)."
"; if (!empty($subtitle)) echo "".utf8_cut($subtitle, SUB_LEN).""; echo "
".youtube_link($ytarr[$id])." "; } else { echo " "; } // $DEBUG!! //if ($id==5015) $id=771; //if ($id==5096) $id=779; //echo "id>".$id ; //echo "dir>".$dir[$id]; if (array_key_exists($id, $dir)) { //echo "exists"; $files=$dir[$id]; #if (!empty($files["mp4"]["hd"])) echo "TEST mp4_link"; if (!empty($files["mp4"]["hd"])) echo mp4_link($files["mp4"]["hd"]["name"], "HD")." "; if (!empty($files["mp4"]["sd"])) echo mp4_link($files["mp4"]["sd"]["name"], "SD")." "; if (!empty($files["webm"]["hd"])) echo webm_link($files["webm"]["hd"]["name"], "HD")." "; if (!empty($files["webm"]["sd"])) echo webm_link($files["webm"]["sd"]["name"], "SD")." "; if (!empty($files["mp3"][""])) echo mp3_link($files["mp3"][""]["name"])." "; if (!empty($files["opus"][""])) echo opus_link($files["opus"][""]["name"])." "; if (!empty($files["ogg"][""])) echo ogg_link($files["ogg"][""]["name"])." "; } echo "".$id."\n"; echo "
\n"; echo "
\n"; // videoaufzeichnungen html_footer(); ?>