diff options
Diffstat (limited to 'sca-cpp/trunk/modules/edit/htdocs/public/notauth.html')
-rw-r--r-- | sca-cpp/trunk/modules/edit/htdocs/public/notauth.html | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/sca-cpp/trunk/modules/edit/htdocs/public/notauth.html b/sca-cpp/trunk/modules/edit/htdocs/public/notauth.html index f49c914057..a4c808deb7 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/public/notauth.html +++ b/sca-cpp/trunk/modules/edit/htdocs/public/notauth.html @@ -18,7 +18,7 @@ --> <html> <head> -<title>App Edit - Sorry</title> +<title>Sorry</title> <meta name="viewport" content="width=device-width user-scalable=no initial-scale=1.0"/> <meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/> @@ -29,20 +29,27 @@ <body class="delayed"> <div id="menu"></div> -<script type="text/javascript"> - -// Load the menu bar -ui.loadwidget('menu', '/menu.html', ui.showbody); -</script> - -<h1>App Edit</h1> +<h1 id="h1"></h1> <br/> + <div class="hd1">Sorry, you're not authorized to view this page.</div> <form name="signout" action="/public/notauth.html" method="GET"> +</form> + <script type="text/javascript"> + +// Load the menu bar +if (!issubdomain(window.location.hostname)) + ui.loadwidget('menu', '/menu.html', ui.showbody); + +$('h1').innerHTML = domaintitle(window.location.hostname); + +ui.showbody(); + function submitSignout() { - document.cookie = 'TuscanyOpenAuth=;expires=' + new Date(1970,01,01).toGMTString() + ';path=/;secure=TRUE'; + var reset = 'TuscanyOpenAuth=;expires=' + new Date(1970,01,01).toGMTString() + ';domain=.' + domainname(window.location.hostname) + ';path=/;secure=TRUE'; + document.cookie = reset; document.signout.submit(); return true; } @@ -50,7 +57,6 @@ function submitSignout() { if (window.top.location.pathname != '/public/notauth.html') submitSignout(); </script> -</form> </body> </html> |