usedSpace / 1000000, 2);
$total_space = $quotas->space / 1000000;
echo "
".get_lang('CompilatioDescription')."
";
echo ""
.get_lang('CompilatioQuota')
.":"
."
"
.sprintf(get_lang('CompilatioCreditXOnY'), $quotas->usedCredits, $quotas->credits);
?>
";
echo "1) ".get_lang('CompilatioServerConnection')."
";
try {
$compilatio = new Compilatio();
} catch (Exception $e) {
$compilatio = null;
echo get_lang('CompilatioNoConnection')."
";
echo get_lang('CompilatioParamVerification')."
";
}
if ($compilatio) {
echo get_lang('CompilatioConnectionSuccessful')."
";
echo "2) ".get_lang('CompilatioSendTextToServer')."
";
$text = sprintf(get_lang('CompilatioTextSendingTestKeyX'), $compilatio->getKey());
try {
$id_compi = $compilatio->sendDoc(
'Doc de test',
'test',
'test',
$text
);
echo get_lang('CompilatioSuccessfulTransfer')."
";
} catch (Exception $e) {
echo get_lang('CompilatioFailedTransfer')."
";
echo get_lang('CompilatioParamVerification')."
";
}
}
}
?>