- And uncomment the communication.... :)

This commit is contained in:
dave 2009-04-23 04:39:24 +00:00
parent 566c5aecff
commit 3d15473906

View File

@ -94,11 +94,11 @@
if($_POST['action']=="sendstats" && $_POST['xml']) {
if(function_exists('curl_init')) {
// $r = curl_query($fair, $_POST['xml']);
// if($r['error'][0] == 0)
// echo happy(i18n("The %1 Server said:", array($fair['name'])).' '.$r['message'][0]);
// else
// echo error(i18n("The %1 Server said:", array($fair['name'])).' '.$r['message'][0]);
$r = curl_query($fair, $_POST['xml']);
if($r['error'][0] == 0)
echo happy(i18n("The %1 Server said:", array($fair['name'])).' '.$r['message'][0]);
else
echo error(i18n("The %1 Server said:", array($fair['name'])).' '.$r['message'][0]);
$fairs_id = -1;
$year = $config['FAIRYEAR'];
} else {
@ -161,7 +161,7 @@
}
foreach($server_config as $k=>$v) {
//$server_config[$k] = $data['statconfig'][0][$k][0];
$server_config[$k] = $data['statconfig'][0][$k][0];
}
/* Gather all stats, then we'll decide what to send */