options['appinsights_token']) { include_once ($AppInsights_Config->plugin_path . '/appinsights-api.php'); global $AppInsights_API; } else { echo '
' . __ ( "This plugin needs an authorization:", 'appinsights' ) . '
'; return; } include_once ($AppInsights_Config->plugin_path . '/appinsights-tools.php'); $tools = new AppInsights_Tools(); $tools->appinsights_cleanup_timeouts(); if (! $AppInsights_API->get_access_token()) { echo '' . __ ( "Something went wrong.", 'appinsights' ) . '
'; return; } if (current_user_can ( 'manage_options' )) { if (is_array ($AppInsights_Config->options['appinsights_component_list']) == FALSE || !$AppInsights_Config->options ['appinsights_component']) { echo '' . __ ( "Please select an application insights resource/component:", 'appinsights' ) . '
'; return; } else { $component_id = $AppInsights_Config->options ['appinsights_component']; } } $AppInsights_Config->set_plugin_options (); ?>