} else { $allzones = $user->listallzones(); } if (empty($user->error)) { $content = '<h3 class="boxheader">' . $l['str_choose_a_zone_to_modify'] . '</h3>'; $content .= '<table>'; while ($otherzone = array_pop($allzones)) { $newzone = new Zone($otherzone[0], $otherzone[1], $otherzone[2]); $status = $newzone->zonestatus(); $urlpar = $link . '&zonename=' . $newzone->zonename . '&zonetype=' . $newzone->zonetype; $content .= '<tr> <td> <a href="' . $_SERVER["PHP_SELF"] . $urlpar . '" class="linkcolor">' . $newzone->zonename . '</a> (' . $newzone->zonetype . ') </td> <td class="' . $status[0] . '" align="center"> <a href="' . urlpop("logwindow.php" . $urlpar) . '">' . $status[0] . '</a> </td></tr>'; } $content .= '</table>'; } else { $content = $user->error; } } } else { $title = $l['str_modify_zone_title']; $content = $l['str_must_log_before_modifying_zone']; } $content = '<div id="modify"> ' . $content . '</div> <!-- modify --> '; print $html->box('mainbox', $title, $content);
$nameservers = array_merge($masters, $ourserverlist); } $urlpar = $link . '&zonename=' . $newzone->zonename . '&zonetype=' . $newzone->zonetype; $urlmod = "modify.php" . $urlpar; $urldig = 'digwindow.php' . $urlpar; $urllog = 'logwindow.php' . $urlpar; $content .= '<tr><td colspan="3"> <a href="' . $urlmod . '" class="linkcolor">' . $newzone->zonename . '</a> (' . $newzone->zonetype . ')</td>' . '<td><a href="' . urlpop($urllog) . '">' . $l['str_logs'] . '</a></td></tr>'; // for each retrieve NS & do DigSerial($zone,$server) while ($nameserver = array_pop($nameservers)) { $serial = DigSerial($nameserver, $newzone->zonename); if ($serial == $l['str_not_available']) { $serial = sprintf($html->fontred, $l['str_not_available']); } $content .= "<tr><td></td><td>{$nameserver}</td><td>{$serial}</td>"; $content .= '<td><a href="' . urlpop($urldig . '&server=' . $nameserver) . '">' . $l['str_zone_content'] . '</a></td></tr>'; } // nameservers } // allzones $content .= '</table>'; } else { $content = $user->error; } } // ************************************* // END OF CONTENT // ************************************* print $html->box('mainbox', $title, $content); if (file_exists("includes/right_side.php")) { include "includes/right_side.php";