No check on the f*cking tld ;)
This commit is contained in:
parent
c71e8db305
commit
d3b69205f8
|
@ -41,7 +41,7 @@ function compare_logname($a, $b) {
|
||||||
or a string for the index in $tld
|
or a string for the index in $tld
|
||||||
*/
|
*/
|
||||||
function checkhostallow($domain,$dns) {
|
function checkhostallow($domain,$dns) {
|
||||||
global $L_NS1,$L_NS2,$db;
|
global $L_NS1,$L_NS2,$db,$dom;
|
||||||
$sizefound=0;
|
$sizefound=0;
|
||||||
$found="";
|
$found="";
|
||||||
$db->query("SELECT tld,mode FROM tld;");
|
$db->query("SELECT tld,mode FROM tld;");
|
||||||
|
@ -55,8 +55,7 @@ function checkhostallow($domain,$dns) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$tld_no_check_at_all = variable_get('tld_no_check_at_all', 0,'Set to 1 to disable ALL check on the TLD (users will be able to add any domain)');
|
if ( $dom->tld_no_check_at_all )
|
||||||
if ( $tld_no_check_at_all )
|
|
||||||
return 0; // OK , the boss say that you can.
|
return 0; // OK , the boss say that you can.
|
||||||
|
|
||||||
if (!$found || $fmode==0) // TLD not allowed at all
|
if (!$found || $fmode==0) // TLD not allowed at all
|
||||||
|
|
|
@ -78,11 +78,13 @@ class m_dom {
|
||||||
var $action_update= "1";
|
var $action_update= "1";
|
||||||
var $action_delete = "2";
|
var $action_delete = "2";
|
||||||
|
|
||||||
|
var $tld_no_check_at_all = "1";
|
||||||
/* ----------------------------------------------------------------- */
|
/* ----------------------------------------------------------------- */
|
||||||
/**
|
/**
|
||||||
* Constructeur
|
* Constructeur
|
||||||
*/
|
*/
|
||||||
function m_dom() {
|
function m_dom() {
|
||||||
|
$this->tld_no_check_at_all = variable_get('tld_no_check_at_all', 0,'Set to 1 to disable ALL check on the TLD (users will be able to add any domain)');
|
||||||
}
|
}
|
||||||
|
|
||||||
function hook_menu() {
|
function hook_menu() {
|
||||||
|
|
Loading…
Reference in New Issue