@@ -4,12 +4,12 @@ |
||
| 4 | 4 | define('OPNAME_SUFFIX', '.hosted.eduroam.org'); |
| 5 | 5 | |
| 6 | 6 | function cat_socket($obj) { |
| 7 | - $sock = socket_create(AF_UNIX, SOCK_STREAM, 0); |
|
| 8 | - $conn = socket_connect($sock, SOCKET); |
|
| 9 | - if ( $conn ) { |
|
| 10 | - socket_write ($sock, $obj, strlen($obj)); |
|
| 11 | - $out = socket_read ($sock, 2048); |
|
| 12 | - return $out; |
|
| 13 | - } |
|
| 14 | - return 'FAILURE'; |
|
| 7 | + $sock = socket_create(AF_UNIX, SOCK_STREAM, 0); |
|
| 8 | + $conn = socket_connect($sock, SOCKET); |
|
| 9 | + if ( $conn ) { |
|
| 10 | + socket_write ($sock, $obj, strlen($obj)); |
|
| 11 | + $out = socket_read ($sock, 2048); |
|
| 12 | + return $out; |
|
| 13 | + } |
|
| 14 | + return 'FAILURE'; |
|
| 15 | 15 | } |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | return $helpdesk; |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | - private function getCredentialApplicability() { |
|
| 269 | + private function getCredentialApplicability() { |
|
| 270 | 270 | $setWired = isset($this->attributes['media:wired'][0]) && |
| 271 | 271 | $this->attributes['media:wired'][0] == 'on' ? 1 : 0; |
| 272 | 272 | $ssids = $this->attributes['internal:SSID']; |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | } |
| 394 | 394 | |
| 395 | 395 | private function getAuthMethod($eap) { |
| 396 | - // $attr = $this->attributes; |
|
| 396 | + // $attr = $this->attributes; |
|
| 397 | 397 | $authmethod = new AuthenticationMethod(); |
| 398 | 398 | $eapParams = $this->getAuthenticationMethodParams($eap); |
| 399 | 399 | $eaptype = new Type(); |
@@ -89,12 +89,12 @@ |
||
| 89 | 89 | $this->templates[WELCOME_ABOARD_TERMS] = ""; |
| 90 | 90 | foreach ([ |
| 91 | 91 | "eduroam" => [ |
| 92 | - "TOU" => "https://wiki.geant.org/display/H2eduroam/Terms+and+Conditions", |
|
| 93 | - "PRIV" => "https://www.eduroam.org/privacy/", |
|
| 92 | + "TOU" => "https://wiki.geant.org/display/H2eduroam/Terms+and+Conditions", |
|
| 93 | + "PRIV" => "https://www.eduroam.org/privacy/", |
|
| 94 | 94 | ], |
| 95 | 95 | "OpenRoaming" => [ |
| 96 | - "TOU" => "https://wballiance.com/openroaming/toc-2020/", |
|
| 97 | - "PRIV" => "https://wballiance.com/openroaming/privacy-policy-2020/", |
|
| 96 | + "TOU" => "https://wballiance.com/openroaming/toc-2020/", |
|
| 97 | + "PRIV" => "https://wballiance.com/openroaming/privacy-policy-2020/", |
|
| 98 | 98 | ] |
| 99 | 99 | ] as $consortium => $terms) { |
| 100 | 100 | $this->templates[WELCOME_ABOARD_TERMS] .= sprintf("<p>" . _("When connecting to %s hotspots, the following <a href='%s'>Terms and Conditions</a> and <a href='%s'>Privacy Notice</a> apply.") . "</p>", $consortium, $terms['TOU'], $terms['PRIV']); |