Размер файла: 1.04Kb
<?php
include("include/vars.php");
require("include/functions.php");
$lang=setlanguage();
require("language/$lang");
$menu=setmenu();
// Select the tlds
$tld=mysql_query("SELECT domain FROM $domain_table") or die (mysql_error());
$main="<table cellspacing=\"1\" cellpadding=\"3\" border=\"0\" width=\"400\" align=\"center\">
<tr>
<td align=\"center\" colspan=\"2\">$text_119</td>
</tr>
<tr>
<td colspan=\"2\"> </td>
</tr>
<tr>
<td align=\"center\"><b>$text_120</b></td><td align=\"center\"><b>$text_121</b></td>
</tr>";
while($tld_array=mysql_fetch_array($tld)) {
$tld_1=$tld_array[0];
$tld_count=mysql_num_rows(mysql_query("SELECT host FROM $redir_table WHERE host LIKE '%$tld_1'"));
$main.="<tr><td align=\"center\">$tld_1</td><td align=\"center\">$tld_count</td></tr>";
}
$main.="</table>";
$template = new MyredTemplate("template/template.html");
$template->assign("TITLE", $pagetitle);
$template->assign("MENU", $menu);
$template->assign("MAIN", $main);
$template->myred_print() or die($template->error);
exit;
?>