Added functionality: disable nameserver, fixes #964

Thanks to bbittner

Signed-off-by: Andreas Burchert (scarya) <scarya@froxlor.org>
This commit is contained in:
Andreas Burchert (scarya)
2011-12-06 15:43:34 +01:00
parent 1d05f66fd4
commit def4bd9861
10 changed files with 86 additions and 11 deletions

View File

@@ -245,6 +245,12 @@ while($row = $db->fetch_array($result_tasks))
*/
elseif ($row['type'] == '4')
{
//dont do anything when module is disabled
if((int)$settings['system']['bind_enable'] == 0)
{
return;
}
if(!isset($nameserver))
{
$nameserver = new bind($db, $cronlog, $debugHandler, $settings);