Skip to content
Permalink
Browse files

Update mercury.class.php

  • Loading branch information...
directman66 committed Oct 11, 2018
1 parent 636bf4e commit 57c45ff6a716f665ecf03a414f57e1b61834ab53
Showing with 3 additions and 2 deletions.
  1. +3 −2 modules/mercury/mercury.class.php
@@ -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";
// Пишем содержимое обратно в файл

0 comments on commit 57c45ff

Please sign in to comment.
You can’t perform that action at this time.