diff --git a/federated.php b/federated.php index 69abb83..ea29f55 100644 --- a/federated.php +++ b/federated.php @@ -16,4 +16,6 @@ include( plugin_dir_path( __FILE__ ) . 'woocommerce/my_account_customizations.ph include( plugin_dir_path( __FILE__ ) . 'rest-api/provisioner_rest_api_extensions.php'); include( plugin_dir_path( __FILE__ ) . 'woocommerce/new_subscription_set_to_needs_provision.php'); include( plugin_dir_path( __FILE__ ) . 'woocommerce/processing_to_complete_order.php'); -include( plugin_dir_path( __FILE__ ) . 'shared/federated_woocommerce_shared_functions.php'); \ No newline at end of file +include( plugin_dir_path( __FILE__ ) . 'shared/federated_woocommerce_shared_functions.php'); + +include( plugin_dir_path( __FILE__ ) . 'rest-api/get_dns_records_test.php'); \ No newline at end of file diff --git a/rest-api/get_dns_records_test.php b/rest-api/get_dns_records_test.php new file mode 100644 index 0000000..0df4e47 --- /dev/null +++ b/rest-api/get_dns_records_test.php @@ -0,0 +1,24 @@ + 'GET', + 'callback' => 'federated_get_dns', + 'permissions_callback' => 'check_federated_permissions' + ) + ); +} + +function federated_get_dns($request){ + $hostname = $request['hostname']; + + $dns = dns_get_record($hostname); + + return $dns; +} \ No newline at end of file diff --git a/woocommerce/my_account_customizations.php b/woocommerce/my_account_customizations.php index ef16e6b..87440c9 100644 --- a/woocommerce/my_account_customizations.php +++ b/woocommerce/my_account_customizations.php @@ -135,10 +135,10 @@ function echo_enterprise_app_links($domain){ echo_link_for_core_app($domain, 'baserow', 'Visual Databases', 'yellow', '', 'Maintain your data, or build a back end for your next web app with Baserow.'); echo_link_for_core_app($domain, 'bookstack', 'Wiki Documentation', 'amber', '', 'Create and maintain beautiful documentation for your personal knowledge, company processes, and more.'); echo_link_for_core_app($domain, 'gitea', 'GIT Source Control', 'emerald', '', 'Manage your repos and CI/CD with confidence using GiTea source control.'); - echo_link_for_core_app($domain, 'castopod', 'Podcast Broadcasting', 'yellow', '', 'Keep your audience engaged and aggregate your podcast easily with Castopod.'); + echo_link_for_core_app($domain, 'castopod', 'Podcast Broadcasting', 'yellow', '', 'Keep your audience engaged and aggregate your podcast easily with Castopod.', '/cp-auth/login'); } -function echo_link_for_core_app($domain, $subdomain = '', $app_title = '', $color = 'emerald', $svg = '', $app_description = ''){ +function echo_link_for_core_app($domain, $subdomain = '', $app_title = '', $color = 'emerald', $svg = '', $app_description = '', $domain_extension = ''){ $url = ''; if (isset($subdomain) && $subdomain !== '') { $url = $subdomain . '.' . $domain; @@ -154,7 +154,7 @@ function echo_link_for_core_app($domain, $subdomain = '', $app_title = '', $colo echo ''; echo '
'; echo '

'; - echo ''; + echo ''; echo ''; echo $app_title; echo '';