.
This commit is contained in:
@@ -90,7 +90,7 @@ while (mysqli_stmt_fetch($stmt)) {
|
|||||||
exec("curl --max-time 10 $url/api/job?apikey=$apikey > /var/www/html/user_files/" . $_SESSION["username"] . "/json.json");
|
exec("curl --max-time 10 $url/api/job?apikey=$apikey > /var/www/html/user_files/" . $_SESSION["username"] . "/json.json");
|
||||||
$fg = file_get_contents("/var/www/html/user_files/" . $_SESSION["username"] . "/json.json");
|
$fg = file_get_contents("/var/www/html/user_files/" . $_SESSION["username"] . "/json.json");
|
||||||
$json = json_decode($fg, true);
|
$json = json_decode($fg, true);
|
||||||
if($json['state']=="Printing" or $json['state']=="Printing from SD" or $system_status==99){
|
if($json['state']=="Starting print from SD" or $json['state']=="Printing" or $json['state']=="Printing from SD" or $system_status==99){
|
||||||
$printer["print_status"]="Von anderer Quelle aus gestartet.";
|
$printer["print_status"]="Von anderer Quelle aus gestartet.";
|
||||||
$printer["progress"] = (int) $json['progress']['completion'];
|
$printer["progress"] = (int) $json['progress']['completion'];
|
||||||
$printer["file"] = short_path($json["job"]["file"]["name"], 10, 10);
|
$printer["file"] = short_path($json["job"]["file"]["name"], 10, 10);
|
||||||
|
|||||||
Reference in New Issue
Block a user