Обновить phnslib.php

This commit is contained in:
artemuhi 2024-03-25 23:01:36 +03:00
parent 2648c1b1fd
commit 170560db47

View File

@ -12,7 +12,7 @@ function p2h($data, $keytype) {
]; ];
fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS)); fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS));
fclose($f) fclose($f)
return `python converter.py`; return shell_exec("python converter.py");
} }
function h2p($data, $keytype) { function h2p($data, $keytype) {
$f = fopen("temp.json", "c"); $f = fopen("temp.json", "c");
@ -27,7 +27,7 @@ function h2p($data, $keytype) {
]; ];
fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS)); fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS));
fclose($f) fclose($f)
return `python converter.py`; return shell_exec("python converter.py");
} }
function seed2hkey($data) { function seed2hkey($data) {
$f = fopen("temp.json", "c"); $f = fopen("temp.json", "c");
@ -42,6 +42,6 @@ function seed2hkey($data) {
]; ];
fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS)); fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS));
fclose($f) fclose($f)
return `python converter.py`; return shell_exec("python converter.py");
} }
?> ?>