Skip to content

Commit

Permalink
MP: minor fixes to install update script.. added menu option to edit …
Browse files Browse the repository at this point in the history
…menu to add domain.
  • Loading branch information
mattpascoe committed Sep 9, 2009
1 parent d270b83 commit 4b37d4a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/7-to-8.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
-- Add server_id column
ALTER TABLE `dhcp_option_entries` ADD `server_id` INT( 10 ) UNSIGNED NOT NULL COMMENT 'DHCP entries for a specific server' AFTER `host_id`;

-- Fixup the default primary host id value in devices table
-- Fixup the default primary host id value in devices table
update devices set primary_host_id = (select hosts.id from hosts where device_id like devices.id);

-- add a rebuild flag for domain servers
ALTER TABLE `dns_server_domains` ADD `rebuild_flag` INT( 1 ) UNSIGNED NOT NULL COMMENT 'Tack if this domain needs to be rebuilt on this server';
ALTER TABLE `dns_server_domains` ADD `rebuild_flag` INT( 1 ) UNSIGNED NOT NULL COMMENT 'Track if this domain needs to be rebuilt on this server';
12 changes: 12 additions & 0 deletions www/winc/menu_control.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,18 @@ function get_html_menu_button_edit() {
EOL;
}

if (auth('dns_record_del')) {
$html .= <<<EOL
<div class="row"
onMouseOver="this.className='hovered';"
onMouseOut="this.className='row';"
onClick="ona_menu_closedown(); xajax_window_submit('edit_domain', ' ', 'editor');"
title="Add a new DNS domain"
><img style="vertical-align: middle;" src="{$images}/silk/page_add.png" border="0"
/>&nbsp;Add DNS domain</div>
EOL;
}

if (auth('vlan_add')) {
$html .= <<<EOL
<div class="row"
Expand Down

0 comments on commit 4b37d4a

Please sign in to comment.