Revision 249fc764
Added by Sjon Hortensius over 10 years ago
etc/inc/authgui.inc | ||
---|---|---|
212 | 212 |
<head> |
213 | 213 |
<link rel="stylesheet" href="/bootstrap/css/pfSense.css" /> |
214 | 214 |
<title><?=gettext("Login"); ?></title> |
215 |
<script>var events = events || [];</script> |
|
215 | 216 |
</head> |
216 | 217 |
<body id="login" class="no-menu"> |
217 | 218 |
<div id="jumbotron"> |
... | ... | |
262 | 263 |
</div> |
263 | 264 |
</div> |
264 | 265 |
</div> |
265 |
</div> |
|
266 |
<script src="/jquery/jquery-1.11.1.min.js"></script> |
|
267 |
<script> |
|
268 |
$(function() { |
|
269 |
document.cookie= |
|
270 |
"cookie_test=1" + |
|
271 |
"<?php echo $config['system']['webgui']['protocol'] == 'https' ? '; secure' : '';?>"; |
|
272 |
|
|
273 |
if (document.cookie.indexOf("cookie_test") == -1) |
|
274 |
document.getElementById("no_cookies").className = ''; |
|
275 |
|
|
276 |
// Delete it |
|
277 |
document.cookie = "cookie_test=1; expires=Thu, 01-Jan-1970 00:00:01 GMT"; |
|
278 |
}); |
|
279 |
</script> |
|
280 |
</body> |
|
281 |
</html> |
|
266 |
|
|
267 |
<script> |
|
268 |
events.push(function() { |
|
269 |
document.cookie= |
|
270 |
"cookie_test=1" + |
|
271 |
"<?php echo $config['system']['webgui']['protocol'] == 'https' ? '; secure' : '';?>"; |
|
272 |
|
|
273 |
if (document.cookie.indexOf("cookie_test") == -1) |
|
274 |
document.getElementById("no_cookies").className = ''; |
|
275 |
|
|
276 |
// Delete it |
|
277 |
document.cookie = "cookie_test=1; expires=Thu, 01-Jan-1970 00:00:01 GMT"; |
|
278 |
}); |
|
279 |
</script> |
|
282 | 280 |
<?php |
283 |
} // end function
|
|
281 |
require('foot.inc');
|
|
284 | 282 |
|
285 |
?> |
|
283 |
} // end function |
Also available in: Unified diff
use foot.inc instead of custom footer on login screen