|
@@ -118,11 +118,11 @@ discard block |
|
|
block discarded – undo |
118
|
118
|
$this->possibleFailureReasons = $_SESSION["SUSPECTS"] ?? []; // if we know nothing, don't talk to anyone |
119
|
119
|
$this->additionalFindings = $_SESSION["EVIDENCE"] ?? []; |
120
|
120
|
|
121
|
|
- $this->subjectPrefix = _("[eduroam Diagnostics]") . " "; |
|
121
|
+ $this->subjectPrefix = _("[eduroam Diagnostics]")." "; |
122
|
122
|
$this->finalGreeting = "\n" |
123
|
123
|
. _("(This service is in an early stage. We apologise if this is a false alert. If this is the case, please send an email report to [email protected], forwarding the entire message (including the 'SUSPECTS' and 'EVIDENCE' data at the end), and explain why this is a false positive.)") |
124
|
124
|
. "\n" |
125
|
|
- . _("Yours sincerely,") . "\n" |
|
125
|
+ . _("Yours sincerely,")."\n" |
126
|
126
|
. "\n" |
127
|
127
|
. _("Ed U. Roam, the eduroam diagnostics algorithm"); |
128
|
128
|
|
|
@@ -133,13 +133,13 @@ discard block |
|
|
block discarded – undo |
133
|
133
|
"bcc" => [], |
134
|
134
|
"reply-to" => [Logopath::TARGET_EDUROAM_OT], |
135
|
135
|
"subject" => _("[POLICYVIOLATION NATIONAL] IdP with no entry in eduroam database"), |
136
|
|
- "body" => _("Dear NRO administrator,") . "\n" |
|
136
|
+ "body" => _("Dear NRO administrator,")."\n" |
137
|
137
|
. "\n" |
138
|
|
- . wordwrap(sprintf(_("an end-user requested diagnostics for realm %s. Real-time connectivity checks determined that the realm exists, but we were unable to find an IdP with that realm in the eduroam database."), $this->additionalFindings['REALM'])) . "\n" |
|
138
|
+ . wordwrap(sprintf(_("an end-user requested diagnostics for realm %s. Real-time connectivity checks determined that the realm exists, but we were unable to find an IdP with that realm in the eduroam database."), $this->additionalFindings['REALM']))."\n" |
139
|
139
|
. "\n" |
140
|
|
- . _("By not listing IdPs in the eduroam database, you are violating the eduroam policy.") . "\n" |
|
140
|
+ . _("By not listing IdPs in the eduroam database, you are violating the eduroam policy.")."\n" |
141
|
141
|
. "\n" |
142
|
|
- . _("Additionally, this creates operational issues. In particular, we are unable to direct end users to their IdP for further diagnosis/instructions because there are no contact points for that IdP in the database.") . "\n" |
|
142
|
+ . _("Additionally, this creates operational issues. In particular, we are unable to direct end users to their IdP for further diagnosis/instructions because there are no contact points for that IdP in the database.")."\n" |
143
|
143
|
. "\n" |
144
|
144
|
. _("Please stop the policy violation ASAP by listing the IdP which is associated to this realm.") |
145
|
145
|
. "\n", |
|
@@ -150,11 +150,11 @@ discard block |
|
|
block discarded – undo |
150
|
150
|
"bcc" => [], |
151
|
151
|
"reply-to" => [Logopath::TARGET_ENDUSER], |
152
|
152
|
"subject" => _("[TECHNICAL PROBLEM] Administrator suspects technical problem with your IdP"), |
153
|
|
- "body" => _("Dear IdP administrator,") . "\n" |
|
153
|
+ "body" => _("Dear IdP administrator,")."\n" |
154
|
154
|
. "\n" |
155
|
155
|
. sprintf(_("an organisation administrator requested diagnostics for realm %s. "), $this->additionalFindings['REALM']) |
156
|
156
|
. "\n" |
157
|
|
- . _("Real-time connectivity checks determined that the realm appears to be working in acceptable parameters, but the administrator insisted to contact you with the supplemental information below.") . "\n" |
|
157
|
+ . _("Real-time connectivity checks determined that the realm appears to be working in acceptable parameters, but the administrator insisted to contact you with the supplemental information below.")."\n" |
158
|
158
|
. "\n", |
159
|
159
|
], |
160
|
160
|
Logopath::IDP_SUSPECTED_PROBLEM_INTERACTIVE_EVIDENCED => [ |
|
@@ -163,11 +163,11 @@ discard block |
|
|
block discarded – undo |
163
|
163
|
"bcc" => [], |
164
|
164
|
"reply-to" => [Logopath::TARGET_ENDUSER], |
165
|
165
|
"subject" => _("[TECHNICAL PROBLEM] Administrator suspects technical problem with your IdP"), |
166
|
|
- "body" => _("Dear IdP administrator,") . "\n" |
|
166
|
+ "body" => _("Dear IdP administrator,")."\n" |
167
|
167
|
. "\n" |
168
|
168
|
. sprintf(_("an organisation administrator requested diagnostics for realm %s. "), $this->additionalFindings['REALM']) |
169
|
169
|
. "\n" |
170
|
|
- . _("Real-time connectivity checks determined that the realm indeed has an operational problem at this point in time. Please see the supplemental information below.") . "\n" |
|
170
|
+ . _("Real-time connectivity checks determined that the realm indeed has an operational problem at this point in time. Please see the supplemental information below.")."\n" |
171
|
171
|
. "\n", |
172
|
172
|
], |
173
|
173
|
]; |
|
@@ -175,13 +175,13 @@ discard block |
|
|
block discarded – undo |
175
|
175
|
// add exalted human-readable information to main mail body |
176
|
176
|
foreach ($this->mailStack as $oneEntry) |
177
|
177
|
if (isset($this->additionalFindings['INTERACTIVE_ENDUSER_AUTH_TIMESTAMP'])) { |
178
|
|
- $oneEntry["body"] .= _("Authentication/Attempt Timestamp of user session:") ." ".$this->additionalFindings['INTERACTIVE_ENDUSER_AUTH_TIMESTAMP']."\n"; |
|
178
|
+ $oneEntry["body"] .= _("Authentication/Attempt Timestamp of user session:")." ".$this->additionalFindings['INTERACTIVE_ENDUSER_AUTH_TIMESTAMP']."\n"; |
179
|
179
|
} |
180
|
180
|
if (isset($this->additionalFindings['INTERACTIVE_ENDUSER_MAC'])) { |
181
|
|
- $oneEntry["body"] .= _("MAC address of end user in question:") ." ".$this->additionalFindings['INTERACTIVE_ENDUSER_MAC']."\n"; |
|
181
|
+ $oneEntry["body"] .= _("MAC address of end user in question:")." ".$this->additionalFindings['INTERACTIVE_ENDUSER_MAC']."\n"; |
182
|
182
|
} |
183
|
183
|
if (isset($this->additionalFindings['INTERACTIVE_ADDITIONAL_COMMENTS'])) { |
184
|
|
- $oneEntry["body"] .= _("Additional Comments:") ." ".$this->additionalFindings['INTERACTIVE_ADDITIONAL_COMMENTS']."\n"; |
|
184
|
+ $oneEntry["body"] .= _("Additional Comments:")." ".$this->additionalFindings['INTERACTIVE_ADDITIONAL_COMMENTS']."\n"; |
185
|
185
|
} |
186
|
186
|
|
187
|
187
|
|
|
@@ -352,7 +352,7 @@ discard block |
|
|
block discarded – undo |
352
|
352
|
|
353
|
353
|
$handle = \core\common\OutsideComm::mailHandle(); |
354
|
354
|
// let's identify outselves |
355
|
|
- $handle->FromName = \config\Master::APPEARANCE['productname'] . " Real-Time Diagnostics System"; |
|
355
|
+ $handle->FromName = \config\Master::APPEARANCE['productname']." Real-Time Diagnostics System"; |
356
|
356
|
// add recipients |
357
|
357
|
foreach (Logopath::CATEGORYBINDING as $arrayName => $functionName) { |
358
|
358
|
foreach ($theMail[$arrayName] as $onePrincipal) { |