Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
| revision 1.2.2.1, Mon Jul 27 11:46:18 2009 UTC | revision 1.2.2.2, Fri Jul 31 19:34:48 2009 UTC | |
|---|---|---|
| # | Line 1 | Line 1 |
| 1 | <?php | <?php |
| 2 | /** | /** |
| 3 | * Drupal HotSpot Module: for use with CoovaChilli: | * Drupal HotSpot Module * http://www.coova.org/CoovaChilli |
| 4 | * http://www.coova.org/CoovaChilli | * Copyright 2008-2009 (c) Coova Technologies, LLC. |
| * Copyright 2008 (c) David Bird <david@coova.com> | ||
| 5 | * Licensed under the Gnu Public License. | * Licensed under the Gnu Public License. |
| 6 | */ | */ |
| 7 | ||
| # | Line 108 function hotspot_wispr_xml($url) { | Line 107 function hotspot_wispr_xml($url) { |
| 107 | -->'; | -->'; |
| 108 | } | } |
| 109 | ||
| 110 | function hotspot_wispr_xml_resp() { | |
| 111 | ||
| 112 | if ($_REQUEST['res'] == 'success' || $_REQUEST['res'] == 'already') { | |
| 113 | ||
| 114 | return '<!-- | |
| 115 | <?xml version=\"1.0\" encoding=\"UTF-8\"?> | |
| 116 | <WISPAccessGatewayParam | |
| 117 | xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" | |
| 118 | xsi:noNamespaceSchemaLocation=\"http://www.acmewisp.com/WISPAccessGatewayParam.xsd\"> | |
| 119 | <AuthenticationPollReply> | |
| 120 | <MessageType>140</MessageType> | |
| 121 | <ResponseCode>50</ResponseCode> | |
| 122 | <ReplyMessage>'.$_REQUEST['reply'].'</ReplyMessage> | |
| 123 | <LogoffURL>'.$_SESSION['logouturl'].'</LogoffURL> | |
| 124 | </AuthenticationPollReply> | |
| 125 | </WISPAccessGatewayParam> | |
| 126 | -->'; | |
| 127 | ||
| 128 | } else if ($_REQUEST['res'] == 'failed') { | |
| 129 | return '<!-- | |
| 130 | <?xml version=\"1.0\" encoding=\"UTF-8\"?> | |
| 131 | <WISPAccessGatewayParam | |
| 132 | xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" | |
| 133 | xsi:noNamespaceSchemaLocation=\"http://www.acmewisp.com/WISPAccessGatewayParam.xsd\"> | |
| 134 | <AuthenticationPollReply> | |
| 135 | <MessageType>140</MessageType> | |
| 136 | <ResponseCode>102</ResponseCode> | |
| 137 | <ReplyMessage>'.$_REQUEST['reply'].'</ReplyMessage> | |
| 138 | </AuthenticationPollReply> | |
| 139 | </WISPAccessGatewayParam> | |
| 140 | -->'; | |
| 141 | ||
| 142 | } | |
| 143 | ||
| 144 | return ''; | |
| 145 | } | |
| 146 |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |