Commit 9cd5c1e1 authored by tbrehm's avatar tbrehm

Fixed: FS#1548 - Resellers cannot add slave DNS zones

parent faddefbe
......@@ -50,7 +50,7 @@ define('ISPC_APP_VERSION', '3.0.2');
//** Database
$conf['db_type'] = 'mysql';
$conf['db_host'] = 'localhost';
$conf['db_database'] = 'ispconfig3';
$conf['db_database'] = 'ispconfig3_stable';
$conf['db_user'] = 'root';
$conf['db_password'] = '';
$conf['db_charset'] = 'utf8'; // same charset as html-charset - (HTML --> MYSQL: "utf-8" --> "utf8", "iso-8859-1" --> "latin1")
......
......@@ -129,11 +129,11 @@ class page_action extends tform_actions {
$this->dataRecord["server_id"] = $client["default_dnsserver"];
// Check if the user may add anoter secondary domain.
if($client["limit_slave_dns_zone"] >= 0) {
$tmp = $app->db->queryOneRecord("SELECT count(id) as number FROM dns_slave WHERE sys_groupid = $client_group_id");
if($tmp["number"] >= $client["limit_dns_slave_zone"]) {
$app->error($app->tform->wordbook["limit_dns_slave_zone_txt"]);
}
if(!$app->tform->checkClientLimit('limit_dns_slave_zone')) {
$app->error($app->tform->wordbook["limit_dns_slave_zone_txt"]);
}
if(!$app->tform->checkResellerLimit('limit_dns_slave_zone')) {
$app->error('Reseller: '.$app->tform->wordbook["limit_dns_slave_zone_txt"]);
}
}
}
......
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