From 3d154739066ae52a100c196e8146f089cffaaa17 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 23 Apr 2009 04:39:24 +0000 Subject: [PATCH] - And uncomment the communication.... :) --- admin/fair_stats.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/fair_stats.php b/admin/fair_stats.php index c544a2ec..86d79c43 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 */