| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/public_html/central/feeds/ |
Upload File : |
<?php
require("../init.php");
require("../includes/domainfunctions.php");
/*
*** USAGE SAMPLES ***
<style type="text/css">
table.domainpricing {
width: 600px;
background-color: #ccc;
}
table.domainpricing th {
padding: 3px;
background-color: #efefef;
font-weight: bold;
}
table.domainpricing td {
padding: 3px;
background-color: #fff;
text-align: center;
}
</style>
<script language="javascript" src="feeds/domainpricing.php?currency=1"></script>
*/
$code = '<table cellspacing="1" cellpadding="0" class="domainpricing"><tr><th>TLD</th><th>Min. Years</th><th>Register</th><th>Transfer</th><th>Renew</th></tr>';
if (!is_numeric($currency)) {
$currency = array();
} else {
$currency = getCurrency('', $currency);
}
if (!$currency || !is_array($currency) || !isset($currency['id'])) {
$currency = getCurrency();
}
$freeamt = formatCurrency(0);
$tldslist = getTLDList();
foreach ($tldslist AS $tld) {
$tldpricing = getTLDPriceList($tld, true);
$firstoption = current($tldpricing);
$year = key($tldpricing);
$transfer = ($firstoption["transfer"] == $freeamt) ? $_LANG['orderfree'] : $firstoption["transfer"];
$code .= sprintf(
'<tr><td>%s</td><td>%d</td><td>%s</td><td>%s</td><td>%s</td></tr>',
htmlspecialchars($tld, ENT_QUOTES, 'UTF-8'),
$year,
htmlspecialchars($firstoption["register"], ENT_QUOTES, 'UTF-8'),
htmlspecialchars($transfer, ENT_QUOTES, 'UTF-8'),
htmlspecialchars($firstoption["renew"], ENT_QUOTES, 'UTF-8')
);
}
$code .= '</table>';
echo "document.write('".$code."');";