"; echo ""; foreach ($programs as $program) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://isy99/rest/programs/$program"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, 'admin:admin'); $output = curl_exec($ch); $array=xml2array($output); #echo "
";
  #$array=xml2array($output);
  #print_r($array);
  #exit;

  echo "
"; $status=($array['programs']['program_attr']['status']); if ($status=="true") { echo ""; } else { echo ""; } $i++; if ($i==5) { echo "
".$array['programs']['program']['name']."
"; $i=0; $colspan++; } } $colspan++; echo "
"; echo ""; echo "
"; echo ""; if (summon_status("russ")>=1) { echo ""; } else { echo ""; } echo ""; if (summon_status("beth")>=1) { echo ""; } else { echo ""; } echo "
Summon Russ Summon Beth
"; echo ""; ?>