diff --git a/images/SipThorNetwork.php b/images/SipThorNetwork.php index cf7fc0d..d38b143 100644 --- a/images/SipThorNetwork.php +++ b/images/SipThorNetwork.php @@ -1,23 +1,26 @@ - "CDRTool_Session", - "auth" => "CDRTool_Auth", - "perm" => "CDRTool_Perm" - )); + array( + "sess" => "CDRTool_Session", + "auth" => "CDRTool_Auth", + "perm" => "CDRTool_Perm" + ) +); require("sip_statistics.php"); $perm->check("statistics"); global $CDRTool; -if (strlen($CDRTool['filter']['domain'])) $allowedDomains=explode(' ',$CDRTool['filter']['domain']); +if (strlen($CDRTool['filter']['domain'])) { + $allowedDomains = explode(' ', $CDRTool['filter']['domain']); +} -$SipThorNetworkImage = new SipThorNetworkImage($_REQUEST['engine'],$allowedDomains); +$SipThorNetworkImage = new SipThorNetworkImage($_REQUEST['engine'], $allowedDomains); $img = $SipThorNetworkImage->buildImage(); header("Content-type: image/png"); imagepng($img); imagedestroy($img); page_close(); -?> \ No newline at end of file