summaryrefslogtreecommitdiff
path: root/templates/header.tmpl.in
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2012-10-15 21:02:10 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2012-10-15 21:02:10 +0000
commit3dd9c340583c44d4dcb7223efbd0a815e0027ff7 (patch)
treeb152c85430602eae72e9d9ae80d27fbba715f4f5 /templates/header.tmpl.in
parent5a9febac19255ab8aea598449ea63bda730b2fe0 (diff)
downloadcups-3dd9c340583c44d4dcb7223efbd0a815e0027ff7.tar.gz
Merge changes from CUPS 1.7svn-r10643
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@3940 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'templates/header.tmpl.in')
-rw-r--r--templates/header.tmpl.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/header.tmpl.in b/templates/header.tmpl.in
index a383725c5..8aaf89c18 100644
--- a/templates/header.tmpl.in
+++ b/templates/header.tmpl.in
@@ -6,8 +6,16 @@
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
<LINK REL="SHORTCUT ICON" HREF="/images/cups-icon.png" TYPE="image/png">
{refresh_page?<META HTTP-EQUIV="Refresh" CONTENT="{refresh_page}">:}
+ <SCRIPT TYPE="text/javascript"><!--
+ /* Show an error if cookies are disabled */
+ function check_cookies() {
+ if (!navigator.cookieEnabled) {
+ document.getElementById('body').innerHTML = 'This page uses cookies to prevent common cross-site attacks. Please enable cookies in your browser.';
+ }
+ }
+ --></SCRIPT>
</HEAD>
-<BODY>
+<BODY ONLOAD="check_cookies();">
<TABLE CLASS="page" SUMMARY="{title}">
<TR><TD CLASS="body">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
@@ -27,3 +35,4 @@ VALUE="{SECTION=help?{?QUERY}:}" AUTOSAVE="org.cups.help" RESULTS="20"></FORM></
</TR>
<TR><TD COLSPAN="9">&nbsp;</TD></TR>
</TABLE>
+<DIV ID="body">