diff options
Diffstat (limited to 'packages/tinydns')
-rw-r--r-- | packages/tinydns/tinydns.xml | 4 | ||||
-rw-r--r-- | packages/tinydns/tinydns_domains.xml | 4 | ||||
-rw-r--r-- | packages/tinydns/tinydns_status.php | 1 | ||||
-rw-r--r-- | packages/tinydns/tinydns_sync.xml | 23 | ||||
-rw-r--r-- | packages/tinydns/tinydns_view_logs.php | 2 |
5 files changed, 34 insertions, 0 deletions
diff --git a/packages/tinydns/tinydns.xml b/packages/tinydns/tinydns.xml index 74a09fdb..18454b07 100644 --- a/packages/tinydns/tinydns.xml +++ b/packages/tinydns/tinydns.xml @@ -28,6 +28,10 @@ <text>Logs</text> <url>/tinydns_view_logs.php</url> </tab> + <tab> + <text>Sync</text> + <url>/pkg_edit.php?xml=tinydns_sync.xml&id=0</url> + </tab> </tabs> <aftersaveredirect>/pkg_edit.php?xml=tinydns.xml&id=0</aftersaveredirect> <additional_files_needed> diff --git a/packages/tinydns/tinydns_domains.xml b/packages/tinydns/tinydns_domains.xml index 18b6e82e..972cfd90 100644 --- a/packages/tinydns/tinydns_domains.xml +++ b/packages/tinydns/tinydns_domains.xml @@ -22,6 +22,10 @@ <text>Logs</text> <url>/tinydns_view_logs.php</url> </tab> + <tab> + <text>Sync</text> + <url>/pkg_edit.php?xml=tinydns_sync.xml&id=0</url> + </tab> </tabs> <adddeleteeditpagefields> <columnitem> diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php index 2f8382d6..b82b5835 100644 --- a/packages/tinydns/tinydns_status.php +++ b/packages/tinydns/tinydns_status.php @@ -52,6 +52,7 @@ include("head.inc"); $tab_array[] = array(gettext("Domains"), false, "/tinydns_filter.php"); $tab_array[] = array(gettext("Status"), true, "/tinydns_status.php"); $tab_array[] = array(gettext("Logs"), false, "/tinydns_view_logs.php"); + $tab_array[] = array(gettext("Logs"), false, "/pkg_edit.php?xml=tinydns_sync.xml&id=0"); display_top_tabs($tab_array); ?> </table> diff --git a/packages/tinydns/tinydns_sync.xml b/packages/tinydns/tinydns_sync.xml index aa0c853b..3e74991a 100644 --- a/packages/tinydns/tinydns_sync.xml +++ b/packages/tinydns/tinydns_sync.xml @@ -8,6 +8,29 @@ tinydns_do_xmlrpc_sync($_POST['ipaddress'], $_POST['password']); </custom_php_resync_config_command> <include_file>/usr/local/pkg/tinydns.inc</include_file> + <tabs> + <tab> + <text>Settings</text> + <url>/pkg_edit.php?xml=tinydns.xml&id=0</url> + </tab> + <tab> + <text>Domains</text> + <url>/tinydns_filter.php</url> + </tab> + <tab> + <text>Status</text> + <url>/tinydns_status.php</url> + </tab> + <tab> + <text>Logs</text> + <url>/tinydns_view_logs.php</url> + </tab> + <tab> + <text>Sync</text> + <url>/pkg_edit.php?xml=tinydns_sync.xml&id=0</url> + <active/> + </tab> + </tabs> <fields> <field> <fieldname>ipaddress</fieldname> diff --git a/packages/tinydns/tinydns_view_logs.php b/packages/tinydns/tinydns_view_logs.php index 470d96a0..102e3f85 100644 --- a/packages/tinydns/tinydns_view_logs.php +++ b/packages/tinydns/tinydns_view_logs.php @@ -54,6 +54,7 @@ $tinydnslogs = `cat /etc/tinydns/log/main/current | /usr/local/bin/tai64nlocal | $tab_array[] = array(gettext("Domains"), false, "/tinydns_filter.php"); $tab_array[] = array(gettext("Status"), false, "/tinydns_status.php"); $tab_array[] = array(gettext("Logs"), true, "/tinydns_view_logs.php"); + $tab_array[] = array(gettext("Logs"), false, "/pkg_edit.php?xml=tinydns_sync.xml&id=0"); display_top_tabs($tab_array); ?> </table> @@ -71,3 +72,4 @@ $tinydnslogs = `cat /etc/tinydns/log/main/current | /usr/local/bin/tai64nlocal | <meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>"> </body> </html> + |