cbffaf6ab3f88223f27e97062b3d16f925652d4d
[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: 307 Temporary Redirect\r\n"
6 echo -en "Location: http://$SERVER_ADDR/cgi-bin/luci/splash\r\n" 
7 echo -en "\r\n"
8
9 cat <<EOT
10 <?xml version="1.0" encoding="UTF-8"?>
11 <WISPAccessGatewayParam xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.wballiance.net/wispr_2_0.xsd">
12         <Redirect>
13                 <MessageType>100</MessageType>
14                 <ResponseCode>0</ResponseCode>
15                 <AccessProcedure>1.0</AccessProcedure>
16                 <AccessLocation>12</AccessLocation>
17                 <LocationName>$SERVER_ADDR</LocationName>
18                 <LoginURL>http://$SERVER_ADDR/cgi-bin/luci/splash?wispr=1</LoginURL>
19                 <AbortLoginURL>http://$SERVER_ADDR/</AbortLoginURL>
20         </Redirect>
21 </WISPAccessGatewayParam>
22 EOT
23