forked from dondominio/whmcs-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdondominio_mod_whois.php
51 lines (42 loc) · 1.2 KB
/
dondominio_mod_whois.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* The DonDominio Manager Addon for WHMCS.
* Mod: TLD Manager
* WHMCS version 5.2.x / 5.3.x / 6.x / 7.x
* @link https://github.com/dondominio/dondominiowhmcsaddon
* @package DonDominioWHMCSAddon
* @license CC BY-ND 3.0 <http://creativecommons.org/licenses/by-nd/3.0/>
*/
if(!defined("WHMCS")){
die("This file cannot be accessed directly");
}
/**
* Action: Index
* TLDs list with prices & actions.
* @param array $vars Parameters from WHMCS
*/
function dondominio_mod_whois_index( $vars )
{
$module_link = $vars['modulelink'];
$version = $vars['version'];
$lang = $vars['_lang'];
if( !strlen( dd_get( 'whois_domain' ))){
echo "<div class='infobox'><span class='title'>" . $lang['error_whois_domain_empty'] . "</span></div>";
echo "
<p>
" . $lang['info_whois_domain'] . "
</p>
<p>
<strong><a href='addonmodules.php?module=dondominio&action=settings'>" . $lang['info_whois_settings'] . "</a></strong>
</p>
";
return false;
}
if( (int) dd_get_whmcs_version() >= 7 ){
include_once( 'dondominio_mod_whois_7.php' );
dondominio_mod_whois_7_index( $vars );
}else{
include_once( 'dondominio_mod_whois_legacy.php' );
dondominio_mod_whois_legacy_index( $vars );
}
}