forked from science-ation/science-ation
- And uncomment the communication.... :)
This commit is contained in:
parent
566c5aecff
commit
3d15473906
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user