75e3c2edfdcf02fca44838a655ceee1bb002d17c
[project/luci.git] / applications / luci-splash / htdocs / cgi-bin / splash / splash.sh
1 #!/bin/sh
2 echo -en "Cache-Control: no-cache, max-age=0, no-store, must-revalidate\r\n"
3 echo -en "Pragma: no-cache\r\n"
4 echo -en "Expires: -1\r\n"
5 echo -en "Status: 403 Forbidden\r\n"
6 echo -en "Content-Type: text/html\r\n\r\n"
7 #echo -en "Status: 307 Temporary Redirect\r\n"
8 #echo -en "Location: http://$SERVER_ADDR/cgi-bin/luci/splash\r\n\r\n" 
9
10 cat <<EOT
11 <html>
12         <head>
13                 <title>Splash</title>
14                 <meta http-equiv="refresh" content="0; url=http://$SERVER_ADDR/cgi-bin/luci/splash" />
15         </head>
16         <body style="font-family:sans-serif">
17                 <h1>Splash on $(cat /proc/sys/kernel/hostname)</h1>
18                 <p>
19                         Redirecting to authentication for $REMOTE_ADDR on $SERVER_ADDR.<br /><br />
20                         [<a href="http://$SERVER_ADDR/cgi-bin/luci/splash">Click here to continue...</a>]
21                 </p>
22         </body>
23 </html>
24 EOT
25