luci-0.10: merge r7157
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 16 Jun 2011 23:02:20 +0000 (23:02 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 16 Jun 2011 23:02:20 +0000 (23:02 +0000)
applications/luci-splash/htdocs/cgi-bin/splash/splash.sh

index 0abb72373732f9c46e65b25511c8ac74d5d9f64f..75e3c2edfdcf02fca44838a655ceee1bb002d17c 100755 (executable)
@@ -2,5 +2,24 @@
 echo -en "Cache-Control: no-cache, max-age=0, no-store, must-revalidate\r\n"
 echo -en "Pragma: no-cache\r\n"
 echo -en "Expires: -1\r\n"
-echo -en "Status: 307 Temporary Redirect\r\n"
-echo -en "Location: http://$SERVER_ADDR/cgi-bin/luci/splash\r\n\r\n" 
+echo -en "Status: 403 Forbidden\r\n"
+echo -en "Content-Type: text/html\r\n\r\n"
+#echo -en "Status: 307 Temporary Redirect\r\n"
+#echo -en "Location: http://$SERVER_ADDR/cgi-bin/luci/splash\r\n\r\n" 
+
+cat <<EOT
+<html>
+       <head>
+               <title>Splash</title>
+               <meta http-equiv="refresh" content="0; url=http://$SERVER_ADDR/cgi-bin/luci/splash" />
+       </head>
+       <body style="font-family:sans-serif">
+               <h1>Splash on $(cat /proc/sys/kernel/hostname)</h1>
+               <p>
+                       Redirecting to authentication for $REMOTE_ADDR on $SERVER_ADDR.<br /><br />
+                       [<a href="http://$SERVER_ADDR/cgi-bin/luci/splash">Click here to continue...</a>]
+               </p>
+       </body>
+</html>
+EOT
+