';
hesk_handle_messages();
echo '
';
}
$provider_name = hesk_SESSION(array('new_provider','name'));
$authorization_url = hesk_SESSION(array('new_provider','authorization_url'));
$token_url = hesk_SESSION(array('new_provider','token_url'));
$client_id = hesk_SESSION(array('new_provider','client_id'));
$client_secret = hesk_SESSION(array('new_provider','client_secret'));
$scope = hesk_SESSION(array('new_provider','scope'));
$no_val_ssl = hesk_SESSION(array('new_provider','no_val_ssl'));
$errors = hesk_SESSION(array('new_provider','errors'));
$errors = is_array($errors) ? $errors : array();
if ( ! hesk_SESSION('edit_provider') && isset($_SERVER['HTTP_HOST']) && isset($_SERVER['REQUEST_URI'])) {
$oauth_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$oauth_link = hesk_clean_utf8($oauth_link);
?>
' . hesk_htmlspecialchars($oauth_link) . ''); ?>