[Show sip account call limit instead of groups Adrian Georgescu **20111004101959 Ignore-this: 52cfd363a7829763daf3e344ab16653c ] hunk ./library/ngnpro_client.php 468 + if (strlen($this->soapEngines[$this->soapEngine]['call_limit'])) { + $this->call_limit=$this->soapEngines[$this->soapEngine]['call_limit']; + } + hunk ./library/ngnpro_client.php 2271 - if (strlen($this->SoapEngine->store_clear_text_passwords)) { - $this->store_clear_text_passwords=$this->SoapEngine->store_clear_text_passwords; + if (strlen($this->SoapEngine->call_limit)) { + $this->platform_call_limit = $this->SoapEngine->call_limit; + } else { + $this->platform_call_limit; hunk ./library/ngnpro_client.php 2414 - Full name - Email + Full Name + Email Address hunk ./library/ngnpro_client.php 2417 - Features + Call Limit hunk ./library/ngnpro_client.php 2576 + if ($account->callLimit) { + $callLimit = $account->callLimit; + } else if ($this->platform_call_limit) { + $callLimit = $this->platform_call_limit; + } else { + $callLimit = ''; + } + hunk ./library/ngnpro_client.php 2591 - %s hunk ./library/ngnpro_client.php 2593 + %s hunk ./library/ngnpro_client.php 2607 - $groups, + $callLimit, hunk ./library/ngnpro_client.php 8580 - "; - if ($this->version > 3) { - print " - Reseller - IP address - Protocol - From pattern - Description - Change date - "; - - } else if ($this->version > 1) { - print " - Customer - IP address - Protocol - From pattern - Description - Change date - "; - } else { - print " - IP address - Protocol - From pattern - Description - "; - } - print "Actions - - + Reseller + IP address + Protocol + Description + Change date + Actions hunk ./library/ngnpro_client.php 8631 - if ($this->version > 3) { - $_customer_url = $this->url.sprintf("&service=customers@%s&customer_filter=%s", - urlencode($this->SoapEngine->customer_engine), - urlencode($peer->reseller) - ); + $_customer_url = $this->url.sprintf("&service=customers@%s&customer_filter=%s", + urlencode($this->SoapEngine->customer_engine), + urlencode($peer->reseller) + ); hunk ./library/ngnpro_client.php 8636 - printf(" - - %s - %s - %s - %s - %s - %s - %s - %s - ", - $bgcolor, - $index, - $_customer_url, - $peer->reseller, - $peer->ip, - $peer->protocol, - $peer->fromPattern, - $peer->description, - $peer->changeDate, - $_url, - $actionText - ); - - } else if ($this->version > 1) { - $_customer_url = $this->url.sprintf("&service=customers@%s&customer_filter=%s", - urlencode($this->SoapEngine->customer_engine), - urlencode($peer->customer) - ); - - printf(" - - %s - %s.%s - %s - %s - %s - %s - %s - %s - ", - $bgcolor, - $index, - $_customer_url, - $peer->reseller, - $peer->customer, - $peer->ip, - $peer->protocol, - $peer->fromPattern, - $peer->description, - $peer->changeDate, - $_url, - $actionText - ); - } else { - printf(" - - %s - %s - %s - %s - %s - %s - ", - $bgcolor, - $index, - $peer->ip, - $peer->protocol, - $peer->fromPattern, - $peer->description, - $_url, - $actionText - ); - } + printf(" + + %s + %s + %s + %s + %s + %s + %s + ", + $bgcolor, + $index, + $_customer_url, + $peer->reseller, + $peer->ip, + $peer->protocol, + $peer->description, + $peer->changeDate, + $_url, + $actionText + ); hunk ./library/ngnpro_client.php 8658 - printf(" - - ");