[Added edit dns record Adrian Georgescu **20080703090725 Show quota reset even if not blocked ] hunk ./library/ngnpro_client.php 6110 - 'reseller' + 'reseller', + 'type' + hunk ./library/ngnpro_client.php 6115 - 'owner' => array('type'=>'integer'), + 'priority' => array('type'=>'integer'), hunk ./library/ngnpro_client.php 6117 - 'info' => array('type'=>'string') + 'ttl' => array('type'=>'integer') hunk ./library/ngnpro_client.php 6215 - if ($this->rows && $_REQUEST['action'] != 'PerformActions' && $_REQUEST['action'] != 'Delete') { + if ($this->rows > 1 && $_REQUEST['action'] != 'PerformActions' && $_REQUEST['action'] != 'Delete') { hunk ./library/ngnpro_client.php 6294 + $_record_url = $this->url.sprintf("&service=dns_records@%s&id_filter=%s", + urlencode($this->SoapEngine->soapEngine), + urlencode($record->id) + ); + hunk ./library/ngnpro_client.php 6316 - %s + %s hunk ./library/ngnpro_client.php 6332 + $_record_url, hunk ./library/ngnpro_client.php 6343 - $i++; hunk ./library/ngnpro_client.php 6344 + $i++; hunk ./library/ngnpro_client.php 6353 + $this->showRecord($record); hunk ./library/ngnpro_client.php 6364 + printf (" Id",$this->filters['id']); hunk ./library/ngnpro_client.php 6687 - function showRecord($number) { + function showRecord($record) { hunk ./library/ngnpro_client.php 6689 - print ""; - print ""; - print ""; - print ""; - - print ""; - print "", - $this->tel2enum($number->id->number,$number->id->tld)); + printf ("", + $record->name); hunk ./library/ngnpro_client.php 6709 - + hunk ./library/ngnpro_client.php 6713 - $number->$item + $record->$item hunk ./library/ngnpro_client.php 6718 - + hunk ./library/ngnpro_client.php 6722 - $number->$item + $record->$item hunk ./library/ngnpro_client.php 6727 - printf ("id->tld); - printf ("id->number); + printf ("id); hunk ./library/ngnpro_client.php 6732 - print " -
"; - print "

Number

"; - print "
"; - print "

Mappings

"; - print "
"; + print "

Record

"; hunk ./library/ngnpro_client.php 6696 - printf ("
DNS name%s
Name%s
- "; - - print ""; - - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - print ""; - - foreach ($number->mappings as $_mapping) { - $j++; - unset($selected_type); - print ""; - print ""; - $selected_type[$_mapping->type]='selected'; - - printf (" - "; - - printf (" - - - ", - $_mapping->mapto, - $_mapping->ttl - ); - print ""; - } - - $j++; - print ""; - print ""; - - printf (" - "; - - printf (" - - - " - ); - - print ""; - - print "
TypeMap toTTL
$j -
-
"; - - print ""; - print ""; - hunk ./library/ngnpro_client.php 6792 - if (!$record = $this->getRecord($_REQUEST['id_filter'])) { + if (!$record = $this->getRecord(intval($_REQUEST['id_filter']))) { hunk ./library/sip_settings.php 1946 - if ($this->pstn_changes_allowed && in_array("quota",$this->groups)) { + if ($this->pstn_changes_allowed) { hunk ./library/sip_settings.php 1948 - hunk ./library/sip_settings.php 1959 +