Skip to content

Commit

Permalink
Update mercury.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
directman66 committed Oct 11, 2018
1 parent 636bf4e commit 57c45ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/mercury/mercury.class.php
Expand Up @@ -1479,14 +1479,15 @@ function dd ($data = "")
//////////////////////////////////////////////
//////////////////////////////////////////////
function send ($socket252, $hex = "") {
$file = ROOT . 'cms/cached/mercurydebug.txt';
//$file = ROOT . 'cms/cached/mercurydebug.txt';
$file = ROOT . 'cms/cached/mercurysend.txt';
$debug .= file_get_contents($file);

$debug .= "Отправляем запрос ".$hex."<br>\n";
file_put_contents($file, $debug);
$in = hex2bin($hex);
$debug .= " ".$in." ";
echo $hex."<br>";
//echo $hex."<br>";
socket_write($socket252, $in, strlen($in));
$debug .= "OK.<br>\n";
// Пишем содержимое обратно в файл
Expand Down

0 comments on commit 57c45ff

Please sign in to comment.