Only show the awards to upload for the current year, and turn off the ssl certificate checking

This commit is contained in:
james 2009-04-05 16:00:36 +00:00
parent 518c53bd82
commit a48b121e15

View File

@ -186,6 +186,7 @@
curl_setopt ($ch, CURLOPT_POSTFIELDSIZE, 0);
curl_setopt ($ch, CURLOPT_TIMEOUT, 360);
curl_setopt ($ch, CURLOPT_SSLVERSION, 3);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
$datastream = curl_exec ($ch); /// execute the curl session and return the output to a variable $datastream
$datastream = str_replace(" standalone=\"yes\"","",$datastream);
// echo "curl close <br />";
@ -238,6 +239,7 @@
award_awards
JOIN award_sources ON award_awards.award_sources_id=award_sources.id
WHERE award_sources.enabled='yes'
AND award_awards.year={$config['FAIRYEAR']}
ORDER BY award_sources.name, award_awards.name");
echo mysql_error();
echo "<table class=\"tableview\">";