@@ -52,7 +52,7 @@ |
||
52 | 52 | $eaptype = NULL; |
53 | 53 | $eap_id = 0; |
54 | 54 | if (isset($_POST['eaptype'])) { |
55 | - $eaptype = unserialize(stripslashes($_POST['eaptype']), [ "allowed_classes" => false ]); |
|
55 | + $eaptype = unserialize(stripslashes($_POST['eaptype']), ["allowed_classes" => false]); |
|
56 | 56 | // the POST could have sneaked in an integer instead of the expected array. |
57 | 57 | // be sure to double-check |
58 | 58 | if (!is_array($eaptype)) { |
@@ -68,7 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | protected function setSupportedEapMethods($eapArray) { |
70 | 70 | $this->supportedEapMethods = $eapArray; |
71 | - $this->loggerInstance->debug(4, "This device (".__CLASS__.") supports the following EAP methods: "); |
|
71 | + $this->loggerInstance->debug(4, "This device (" . __CLASS__ . ") supports the following EAP methods: "); |
|
72 | 72 | $this->loggerInstance->debug(4, print_r($this->supportedEapMethods, true)); |
73 | 73 | } |
74 | 74 |
@@ -2,15 +2,15 @@ |
||
2 | 2 | require_once('DeviceConfig.php'); |
3 | 3 | |
4 | 4 | class Device_RedirectDev extends DeviceConfig { |
5 | - /** |
|
6 | - * Constructs a Device object. |
|
7 | - * |
|
8 | - * @final not to be redefined |
|
9 | - */ |
|
5 | + /** |
|
6 | + * Constructs a Device object. |
|
7 | + * |
|
8 | + * @final not to be redefined |
|
9 | + */ |
|
10 | 10 | final public function __construct() { |
11 | 11 | parent::__construct(); |
12 | - $this->setSupportedEapMethods([EAPTYPE_NONE]); |
|
13 | - $this->loggerInstance->debug(4,"RedirectEx called"); |
|
12 | + $this->setSupportedEapMethods([EAPTYPE_NONE]); |
|
13 | + $this->loggerInstance->debug(4,"RedirectEx called"); |
|
14 | 14 | } |
15 | 15 | public function writeDeviceInfo() { |
16 | 16 | $out = "<p>"; |
@@ -10,7 +10,7 @@ |
||
10 | 10 | final public function __construct() { |
11 | 11 | parent::__construct(); |
12 | 12 | $this->setSupportedEapMethods([EAPTYPE_NONE]); |
13 | - $this->loggerInstance->debug(4,"RedirectEx called"); |
|
13 | + $this->loggerInstance->debug(4, "RedirectEx called"); |
|
14 | 14 | } |
15 | 15 | public function writeDeviceInfo() { |
16 | 16 | $out = "<p>"; |
@@ -129,7 +129,7 @@ |
||
129 | 129 | <key>PayloadIdentifier</key> |
130 | 130 | <string>" . mobileconfig_superclass::$iPhonePayloadPrefix . ".$this->massagedConsortium.$this->massagedCountry.$this->massagedInst.$this->massagedProfile.$this->lang</string> |
131 | 131 | <key>PayloadOrganization</key> |
132 | - <string>" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['general:instname'][0]), ENT_XML1, 'UTF-8') . ( $this->attributes['internal:profile_count'][0] > 1 ? " (" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['profile:name'][0]), ENT_XML1, 'UTF-8') . ")" : "") . "</string> |
|
132 | + <string>" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['general:instname'][0]), ENT_XML1, 'UTF-8') . ($this->attributes['internal:profile_count'][0] > 1 ? " (" . htmlspecialchars(iconv("UTF-8", "UTF-8//IGNORE", $this->attributes['profile:name'][0]), ENT_XML1, 'UTF-8') . ")" : "") . "</string> |
|
133 | 133 | <key>PayloadType</key> |
134 | 134 | <string>Configuration</string> |
135 | 135 | <key>PayloadUUID</key> |