diff --git a/admin/fair_stats.php b/admin/fair_stats.php index c544a2e..86d79c4 100644 --- a/admin/fair_stats.php +++ b/admin/fair_stats.php @@ -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 */