$Frames = array_merge($Frames, PrepareTxFrame(intval($Value), 'SW?')); // versione fw $Frames = array_merge($Frames, PrepareTxFrame(intval($Value), 'READAB')); // AB $Frames = array_merge($Frames, PrepareTxFrame(intval($Value), 'READCD')); // CD $HhtRequested[] = $Value; } } } /*foreach($Frames as $value) echo OutText($value); exit();*/ if (count($Frames) > 0) { $ResponseFromHHT = false; $Results = SendHTT(HhtParam($_REQUEST['x_Hht']), $Frames); if (count($Results) > 0) { $ResponseFromHHT = true; foreach ($Results as $frame) { $HhtAnswered[$frame['Target']][] = $frame; } } /*print '<pre>'; print_r($Results); print '</pre>'; exit();*/ } } } $JS_SCRIPT = array('<script type="text/javascript" src="' . $CFG->ROOT_DIR . 'Common/Fun_JS.inc.js"></script>'); $PAGE_TITLE = get_text('HTTInfo', 'HTT');
} else { $rArr .= DecodeFromLetter(substr($trArr, $j, 1)) != "10*" ? chr(160 + ValutaArrowString(substr($trArr, $j, 1))) : chr(158); } } $lSum = 'TB'; $rSum = 'TB'; } $dCenter = ""; } /* echo "Left Arrows:" . $lArr . "<br>"; echo "Right Arrows:" . $rArr . "<br>"; echo "Left Sum:" . $lSum . "<br>"; echo "Right Sum:" . $rSum . "<br>"; echo "Left Total:" . $lTot . "<br>"; echo "Right Total:" . $rTot . "<br><br>"; echo "Left Display:" . $dLeft . "<br>"; echo "Center Display:" . $dCenter . "<br>"; echo "Right Display:" . $dRight . "<br><br>"; echo "Display Type:" . $type . "<br>"; */ if ($type == 2) { SendHTT(HhtParam($line), PrepareDisplayFrame($dLeft, $dRight, " ", " ", $dCenter, $contrast)); } elseif ($type == 1) { SendHTT(HhtParam($line), PrepareFinalDisplayFrame($lArr, $rArr, $lSum, $rSum, $lTot, $rTot)); } } //header('Content-Type: text/xml'); print '<response>' . "\n"; print '<error>' . $Errore . '</error>' . "\n"; print '</response>' . "\n";
$DataSource = $_FILES["Fw"]["tmp_name"]; break; case UPLOAD_ERR_NO_FILE: unset($_REQUEST["Fw"]); break; default: unset($_REQUEST["Fw"]); } } if ($DataSource != "") { $fwp = fopen($DataSource, "r"); if ($fwp) { //"mF69a-7Ji1Z&pjU3" $Frames = PrepareTxFrame($HttNumber, "qW4Gl56fR3HJ80+s"); $Updated = SendHTT(HhtParam($_REQUEST['x_Hht']), $Frames); sleep(4); $Frames = array(); while (!feof($fwp)) { $buffer = fgets($fwp, 4096); $buffer = str_replace(chr(10), '', $buffer); $buffer = str_replace(chr(13), '', $buffer); $Frames = array_merge($Frames, PrepareTxFrame($HttNumber, $buffer)); } fclose($fwp); echo "<pre>\n"; $Updated = SendHTT(HhtParam($_REQUEST['x_Hht']), $Frames, false, 5000); echo "</pre>\n"; } } } include 'Common/Templates/tail.php';
//print $Data.'<br>'; $TargetNo = $MyRow->TargetNo; } } // ultimo ciclo $Frames = array_merge($Frames, PrepareTxFrame(intval($TargetNo), $Data)); //print 'finito<br>'; /*print '<pre>'; print_r($Frames); print '</pre>';exit;*/ /*foreach($Frames as $value) echo OutText($value); //exit();*/ if (count($Frames) > 0) { $ResponseFromHHT = false; $Results = SendHTT(HhtParam($_REQUEST['x_Hht']), $Frames, false, 0.5); if (!is_null($Results)) { $ResponseFromHHT = true; } if (count($Results) != 0) { foreach ($Results as $v) { if ($v != -1) { $HTTOK[] = $v; } } //print_r($HTTOK); } } //exit(); } }