1<?php
2
3use WHMCS\Billing\Currency;
4
5require("../init.php");
6require("../includes/domainfunctions.php");
7
8/*
9*** USAGE SAMPLE ***
10
11<script language="javascript" src="feeds/domainchecker.php"></script>
12
13*/
14
15$systemurl = App::getSystemUrl();
16
17$currency = Currency::factoryForClientArea();
18$tlds = getTLDList();
19
20$code = '<form action="%sdomainchecker.php" method="post"><input type="hidden" name="direct" value="true">' . \Lang::trans('orderForm.www') . ' <input type="text" name="domain" size="30"> <select name="ext">';
21$code = sprintf($code, htmlspecialchars($systemurl, ENT_QUOTES, 'UTF-8'));
22foreach ($tlds AS $tld) {
23 $code .= '<option>'. htmlspecialchars($tld, ENT_QUOTES, 'UTF-8') . '</option>';
24}
25$code .= '</select> <input type="submit" value="Go"></form>';
26
27echo "document.write('".$code."');";
28
29?>
30