- <?php
- if ( ! isset( $begins_with ) ) {
- /* if ( ! defined( $begins_with ) && $begins_with == '' ) { */
- $begins_with = -1;
- }
- $break_point = 26;
- $xxx_x = 0;
- $temp_tlds = new DnsTlds();
- $tlds = $temp_tlds->ListAll();
- $html_content .=
- '
- <table bgcolor="#000000" border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr><td>
- <table width="100%" cellspacing="1" border="0" cellpadding="2" width="100%">' ;
- if ( $tld == '' ) {
- $html_content .=
- '<tr bgcolor="' . $default->html->title->background->color . '">' .
- '<td colspan="' . $break_point . '"><b>Choose the domain extension you want :</b></td>' .
- '</tr>' ;
- $html_content .=
- '<tr bgcolor="' . $default->html->default->background->color . '">';
- for( $i_xxx = 0; $i_xxx < count( $tlds ); $i_xxx++ ) {
- $html_content .= '<td><center>';
- if ( $tld != $tlds[ $i_xxx ] ) {
- $html_content .= '<A Href="index.php?session_id=' . $session_id . '&tld=' . $tlds[ $i_xxx ] . '">';
- }
- $html_content .= $tlds[ $i_xxx ] ;
- if ( $tld != $tlds[ $i_xxx ] ) {
- $html_content .= '</A>';
- }
- $html_content .= '</center></td>' ;
- $xxx_x++;
- if ( $xxx_x == $break_point ) {
- $html_content .=
- '</tr><tr bgcolor="' . $default->html->default->background->color . '">';
- $xxx_x = 0;
- }
- }
- if ( $xxx_x < $break_point ) {
- $html_content .=
- '<td colspan="' . ( $break_point - $xxx_x ) . '"> </td></tr>';
- }
- } /* If Tld isn't set */
- if ( $tld != '' && $begins_with == -1 ) {
- $html_content .=
- '<tr bgcolor="' . $default->html->title->background->color . '">' .
- '<td colspan="' . $break_point . '"><b>Choose the begining letter of the domain ( ' . $tld . ' ) :</b></td>' .
- '</tr>' ;
- $xxx_x = 0;
- $html_content .=
- '<tr bgcolor="' . $default->html->default->background->color . '">';
- if ( $tld != 'arpa' ) {
- for( $i_xxx = 65; $i_xxx < 91 ; $i_xxx++ ) {
- $xxx_x++;
- $html_content .= '<td><center>';
- $my_char = sprintf( '%c', $i_xxx );
- if ( $my_char != $begins_with ) {
- $html_content .= '<A Href="index.php?' .
- 'session_id=' . $session_id . '&' .
- 'tld=' . $tld . '&' .
- 'begins_with=' . $my_char .
- '">';
- }
- $html_content .= $my_char;
- if ( $my_char != $begins_with ) {
- $html_content .= '</A>';
- }
- $html_content .= '</center></td>';
- if ( $xxx_x == $break_point ) {
- $xxx_x = 0;
- $html_content .= '</tr>' ;
- $html_content .=
- '<tr bgcolor="' . $default->html->default->background->color . '">';
- }
- }
- }
- for ( $i_xxx = 0; $i_xxx < 10; $i_xxx++ ) {
- $xxx_x++;
- $html_content .= '<td><center>';
- $my_char = $i_xxx;
- if ( $my_char != $begins_with || ereg( '[A-Z]', $begins_with ) ) {
- $html_content .= '<A Href="index.php?' .
- 'session_id=' . $session_id . '&' .
- 'tld=' . $tld . '&' .
- 'begins_with=' . $my_char .
- '">';
- }
- $html_content .= $my_char;
- if ( $my_char != $begins_with || ereg( '[A-Z]', $begins_with ) ) {
- $html_content .= '</A>';
- }
- $html_content .= '</center></td>';
- if ( $xxx_x == $break_point ) {
- $xxx_x = 0;
- $html_content .= '</tr>' ;
- $html_content .=
- '<tr bgcolor="' . $default->html->default->background->color . '">';
- }
- }
- if ( $xxx_x < $break_point ) {
- $html_content .=
- '<td colspan="' . ( $break_point - $xxx_x ) . '"> </td></tr>';
- }
- } /* End if Tld */
- if ( $tld != '' && $begins_with != -1 ) {
- $html_content .=
- '<tr bgcolor="' . $default->html->title->background->color . '">' .
- '<td colspan="' . ( $break_point - 1 ) . '"><b>' .
- 'Domains ' . $begins_with . '*.' . $tld . ': ' .
- '</b></td>' .
- '<td><b>' .
- 'Actions :' .
- '</b></td>' .
- '</tr>' ;
- if ( ! isset( $dns_db ) ) {
- $dns_db = $default->dns_db->Load();
- }
- $dns_db->debug->On();
- $target_domain = '';
- list( $act, $all_domains ) = $dns_db->ListDomains( $begins_with, $tld );
- if ( is_array( $all_domains ) ) {
- for( $i_xxx = 0; $i_xxx < count( $all_domains ); $i_xxx++ ) {
- $html_content .=
- '<tr bgcolor="' . $default->html->default->background->color . '">' .
- '<td colspan="' . ( $break_point - 1 ) . '">' .
- '<A Href="index.php?' .
- 'action=' . DOMAIN_VIEW_SOA_FRM . '&' .
- 'session_id=' . $session_id . '&' .
- 't_domain=' . ( urlencode( $all_domains[ $i_xxx ] ) ) .
- '">' .
- $all_domains[ $i_xxx ] .
- '</A>' .
- '</td>' .
- '<td><b>' .
- '<img src="graphics/trash.gif">' .
- '</b></td>' .
- '</tr>' . "n";
- }
- }
- }
- $html_content .=
- '</table></td></tr></table>'
- ;
- include( './templates/main.inc' );
- ?>