forked from science-ation/science-ation
Some extra debug info added while fixing northern bc
This commit is contained in:
parent
591f46b29d
commit
357263a20b
@ -64,7 +64,7 @@ case 'check':
|
|||||||
$keys=array_keys($data);
|
$keys=array_keys($data);
|
||||||
if(!array_key_exists('awards', $data)) {
|
if(!array_key_exists('awards', $data)) {
|
||||||
echo error(i18n("Invalid XML response. Expecting '%1' in '%2'",array("awards",join(',',array_keys($data)))));
|
echo error(i18n("Invalid XML response. Expecting '%1' in '%2'",array("awards",join(',',array_keys($data)))));
|
||||||
// echo "response=".print_r($datastream);
|
// echo "response=".print_r($data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,9 +50,12 @@
|
|||||||
xmlCreateRecurse($data);
|
xmlCreateRecurse($data);
|
||||||
$str = $output;
|
$str = $output;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
echo "Unknown fair type {$fair['type']}";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// echo "<pre>Curl Send: $str</pre>";
|
// echo "<pre>Curl Send: (type:{$fair['type']}=>$url) $str</pre>";
|
||||||
|
|
||||||
$ch = curl_init(); /// initialize a cURL session
|
$ch = curl_init(); /// initialize a cURL session
|
||||||
curl_setopt ($ch, CURLOPT_URL, $url);
|
curl_setopt ($ch, CURLOPT_URL, $url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user