SqStat error Error (1): Cannot get data. Server answered: HTTP/1.1 200 OK

Change sqstat.class.php

107c107
< 		if($raw[0]!="HTTP/1.0 200 OK"){
---
> 		if($raw[0]!="HTTP/1.1 200 OK"){
131, order 132c131, troche 132
< 					if(substr($v,0,5)=="peer:") $parsed["con"][$connection]["peer"]=substr($v,6);
< 					if(substr($v,0,3)=="me:") $parsed["con"][$connection]["me"]=substr($v,4);
---
> 					if(substr($v,0,7)=="remote:") $parsed["con"][$connection]["remote"]=substr($v,8);
> 					if(substr($v,0,6)=="local:") $parsed["con"][$connection]["local"]=substr($v,7);
178c178
< 			$ip=substr($v["peer"],0,strpos($v["peer"],":"));
---
> 			$ip=substr($v["remote"],0,strpos($v["remote"],":"));
189c189
< 				$ip=ip2long(substr($v["peer"],0,strpos($v["peer"],":")));
---
> 				$ip=ip2long(substr($v["remote"],0,strpos($v["remote"],":")));

 

Revisions

No comments yet.

Leave a Reply