diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2018-09-25 19:17:21 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2018-09-25 19:17:21 -0700 |
| commit | 97656ea6ea7a9138036ba1499a05d64a1f8850c6 (patch) | |
| tree | acc870e858d45b93883dd211877a5335010ab2f2 /httemplate/misc/edge_browser_check-header.html | |
| parent | 8c914e2614a40b95291df00d0b8dbd5766f611b5 (diff) | |
| parent | b932d7d067c6f3d917f9da3efe6b9ab7fd23ab8e (diff) | |
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'httemplate/misc/edge_browser_check-header.html')
| -rw-r--r-- | httemplate/misc/edge_browser_check-header.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/httemplate/misc/edge_browser_check-header.html b/httemplate/misc/edge_browser_check-header.html new file mode 100644 index 000000000..4d36de598 --- /dev/null +++ b/httemplate/misc/edge_browser_check-header.html @@ -0,0 +1,32 @@ +% if ( $force_redirect ) { + <script type="text/javascript"> + if ( <% $DEBUG %> || /Edge\/17\.17134/.test( navigator.userAgent )) { + if ( window.location.href.indexOf("fail_notice") == -1 ) { + window.location.href = "<% $fsurl %>misc/edge_browser_check-fail_notice.html"; + } + } + </script> +% } +% if ( $do_check ) { + <iframe id="edge_browser_check_iframe" style="display:none;"></iframe> + <script type="text/javascript"> + if ( <% $DEBUG %> || /Edge\/17\.17134/.test( navigator.userAgent )) { + $("#edge_browser_check_iframe").attr( + 'src', + '<% $fsurl %>misc/edge_browser_check-iframe.html?edge_browser_check=1' + ); + } + </script> +% } +<%init> +my $curuser = $FS::CurrentUser::CurrentUser; +my $cgi = FS::UID::cgi(); +my $DEBUG = 0; + +my $do_check = 0; +$do_check = 1 + if $curuser + && $curuser->get_pref('edge_bug_vulnerable') ne 'N'; + +my $force_redirect = $curuser->get_pref('edge_bug_vulnerable') eq 'Y' ? 1 : 0; +</%init>
\ No newline at end of file |
