Commit 23527d0e authored by Till Brehm's avatar Till Brehm
Browse files

Import DNS zones into domain table when domain limits module is turned on.

parent 1d3bd675
......@@ -193,6 +193,10 @@ class page_action extends tform_actions {
"SELECT sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other, domain " .
"FROM web_domain WHERE type NOT IN ('subdomain','vhostsubdomain')";
$app->db->query($sql);
$sql = "REPLACE INTO domain (sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other, domain ) " .
"SELECT sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other, SUBSTRING(origin, 1, CHAR_LENGTH(origin) - 1) " .
"FROM dns_soa";
$app->db->query($sql);
}
//die(print_r($_FILES));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment