if (TheSession == NULL) {
TheSession = CreateSession(1, 0, &SessionList, Hdr, &SessionListMutex);
- if ((StrLength(Hdr->c_username) == 0) && (!Hdr->HR.DontNeedAuth)) {
-
- if ((Hdr->HR.Handler != NULL) &&
- (XHTTP_COMMANDS & Hdr->HR.Handler->Flags) == XHTTP_COMMANDS) {
- OverrideRequest(Hdr, HKEY("GET /401 HTTP/1.0"));
- Hdr->HR.prohibit_caching = 1;
- }
-
- /*
- * I don't think we need this anymore now that guest mode is working
- * ajc 2011jan07
- *
- else {
- OverrideRequest(Hdr, HKEY("GET /static/nocookies.html?force_close_session=yes HTTP/1.0"));
- Hdr->HR.prohibit_caching = 1;
- }
- */
+ if ( (StrLength(Hdr->c_username) == 0)
+ && (!Hdr->HR.DontNeedAuth)
+ && (Hdr->HR.Handler != NULL)
+ && ((XHTTP_COMMANDS & Hdr->HR.Handler->Flags) == XHTTP_COMMANDS)
+ ) {
+ OverrideRequest(Hdr, HKEY("GET /401 HTTP/1.0"));
+ Hdr->HR.prohibit_caching = 1;
}
if (StrLength(Hdr->c_language) > 0) {
+++ /dev/null
-<html>
-<head>
- <title>Error</title>
-</head>
-<body>
-
-<div align="center">
-<h2>Sorry!</h2>
-<br>
-This site requires both Cookies and JavaScript to be enabled in your browser.<br>
-Please enable these features and log in again. We are sorry for the inconvenience.
-</div>
-
-<div align="center">
-<a href=".">Back to login...</a>
-</div>
-
-<div align="center">
-Your browser may cache this site. In doubt, press CTRL+SHIFT+R (Firefox) or SHIFT F5 (Internet explorer) to get the actual content, or press the above link to login again.
-</div>
-
-</body>
-</html>
<body>
<div id="is_logged_in" style="display:none"><?%("COND:LOGGEDIN", 1, 1, 1, "no", "yes")></div>
<?ICONBAR>
-<!--("begin modal container")-->
+<!-- begin modal box -->
<div id="modal">
- <div class="md-overlay-decorator"></div>
+ <div class="md-overlay-decorator">
+ </div>
<div class="md-overlay-wrap">
<div class="md-overlay">
- <div class="md-dialog-decorator"></div>
+ <div class="md-dialog-decorator">
+ </div>
<div class="md-dialog-wrap">
<div class="md-dialog" id="dialog">
<div class="md-content" id="md-content">
-
-This is the modal dialog box. If you are seeing this message, the
-modal dialog was invoked without first populating its contents, which
-is a mistake.
-<br>
-<h2><a href="javascript:toggleModal(0);">Dismiss</a></h2>
-
+ <!-- contents of modal box go here -->
</div>
</div>
</div>
</div>
</div>
</div>
-<!--("end modal container")-->
+<!-- end modal box -->
<noscript><div id="noscript_warning">
<?_("WARNING: You have JavaScript disabled in your web browser. Many functions of this system will not work properly.")>
</div></noscript>