@@ -52,7 +52,7 @@ |
||
52 | 52 | they are from the same user group. You are not allowed to share them to an unlimited |
53 | 53 | audience (e.g. on a publicly accessible web server).</li> |
54 | 54 | <li>If You are an eduroam Identity Provider administrator, you are allowed to download and pass on the Installers to |
55 | -your own <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?> end users, e.g. on the support web pages of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'];?>, on Welcome Package CDs or USB sticks, etc.</li> |
|
55 | +your own <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?> end users, e.g. on the support web pages of your <?php echo CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']; ?>, on Welcome Package CDs or USB sticks, etc.</li> |
|
56 | 56 | <li>If You are a third-party not affiliated with eduroam, you are only allowed to download and pass on |
57 | 57 | the Metadata and/or the Installers after having received written permission by the eduroam Operations team.</li> |
58 | 58 | </ul> |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $admins = $this_fed->listFederationAdmins(); |
45 | 45 | $mailtext = "Hello, |
46 | 46 | |
47 | -invitation tokens for the following new ". CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] ." have recently expired: |
|
47 | +invitation tokens for the following new ". CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] . " have recently expired: |
|
48 | 48 | |
49 | 49 | "; |
50 | 50 | foreach ($listofinstnames as $instname) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | if ($numberofexistingidps > 0) { |
55 | 55 | $mailtext .= " |
56 | 56 | |
57 | -Additionally, $numberofexistingidps invitations for an existing ". CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']." have expired. |
|
57 | +Additionally, $numberofexistingidps invitations for an existing " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] . " have expired. |
|
58 | 58 | "; |
59 | 59 | } |
60 | 60 | $mailtext .= " |
@@ -169,8 +169,7 @@ |
||
169 | 169 | _("and enter the invitation token") . " |
170 | 170 | $newtoken |
171 | 171 | " . ( /* $new_idp_authorized_fedadmin */ FALSE ? |
172 | - wordwrap(sprintf(_("manually. If you reply to this mail, you will reach your %s administrators."), $uiElements->nomenclature_fed), 72) : |
|
173 | - wordwrap(_("manually. Please do not reply to this mail; this is a send-only address.")) ) . " |
|
172 | + wordwrap(sprintf(_("manually. If you reply to this mail, you will reach your %s administrators."), $uiElements->nomenclature_fed), 72) : wordwrap(_("manually. Please do not reply to this mail; this is a send-only address.")) ) . " |
|
174 | 173 | |
175 | 174 | " . wordwrap(_("Do NOT forward the mail before the token has expired - or the recipients may be able to consume the token on your behalf!"), 72) . " |
176 | 175 |
@@ -77,84 +77,84 @@ |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | switch ($operationMode) { |
80 | - case OPERATION_MODE_EDIT: |
|
81 | - $idp = $validator->IdP($_GET['inst_id']); |
|
82 | - // editing IdPs is done from within the popup. When we're done, send the |
|
83 | - // user back to the popup (append the result of the operation later) |
|
84 | - $redirect_destination = "manageAdmins.inc.php?inst_id=" . $idp->identifier . "&"; |
|
85 | - $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
86 | - // is the user primary admin of this IdP? |
|
87 | - $is_owner = $idp->isPrimaryOwner($_SESSION['user']); |
|
88 | - // check if he is (also) federation admin for the federation this IdP is in. His invitations have more blessing then. |
|
89 | - $fedadmin = $userObject->isFederationAdmin($idp->federation); |
|
90 | - // check if he is either one, if not, complain |
|
91 | - if (!$is_owner && !$fedadmin) { |
|
92 | - echo "<p>" . sprintf(_("Something's wrong... you are a %s admin, but not for the %s the requested %s belongs to!"), $uiElements->nomenclature_fed, $uiElements->nomenclature_fed, $uiElements->nomenclature_inst) . "</p>"; |
|
93 | - exit(1); |
|
94 | - } |
|
80 | + case OPERATION_MODE_EDIT: |
|
81 | + $idp = $validator->IdP($_GET['inst_id']); |
|
82 | + // editing IdPs is done from within the popup. When we're done, send the |
|
83 | + // user back to the popup (append the result of the operation later) |
|
84 | + $redirect_destination = "manageAdmins.inc.php?inst_id=" . $idp->identifier . "&"; |
|
85 | + $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
86 | + // is the user primary admin of this IdP? |
|
87 | + $is_owner = $idp->isPrimaryOwner($_SESSION['user']); |
|
88 | + // check if he is (also) federation admin for the federation this IdP is in. His invitations have more blessing then. |
|
89 | + $fedadmin = $userObject->isFederationAdmin($idp->federation); |
|
90 | + // check if he is either one, if not, complain |
|
91 | + if (!$is_owner && !$fedadmin) { |
|
92 | + echo "<p>" . sprintf(_("Something's wrong... you are a %s admin, but not for the %s the requested %s belongs to!"), $uiElements->nomenclature_fed, $uiElements->nomenclature_fed, $uiElements->nomenclature_inst) . "</p>"; |
|
93 | + exit(1); |
|
94 | + } |
|
95 | 95 | |
96 | - $prettyprintname = $idp->name; |
|
97 | - $newtoken = $mgmt->createToken($fedadmin, $mailaddress, $idp); |
|
98 | - $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP " . $idp->identifier . " - Token created for " . $mailaddress); |
|
99 | - $introtext = sprintf(_("a %s of the %s %s \"%s\" has invited you to manage the %s together with him."), $uiElements->nomenclature_fed, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclature_inst, $prettyprintname, $uiElements->nomenclature_inst) . " " . sprintf(_("This invitation is valid for 24 hours from now, i.e. until %s."), strftime("%x %X", time() + 86400)); |
|
100 | - break; |
|
101 | - case OPERATION_MODE_NEWUNLINKED: |
|
102 | - $redirect_destination = "../overview_federation.php?"; |
|
103 | - $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
104 | - // run an input check and conversion of the raw inputs... just in case |
|
105 | - $newinstname = $validator->string($_POST['name']); |
|
106 | - $newcountry = $validator->string($_POST['country']); |
|
107 | - $new_idp_authorized_fedadmin = $userObject->isFederationAdmin($newcountry); |
|
108 | - if ($new_idp_authorized_fedadmin !== TRUE) { |
|
109 | - throw new Exception("Something's wrong... you want to create a new " . $uiElements->nomenclature_inst . ", but are not a " . $uiElements->nomenclature_fed . " admin for the " . $uiElements->nomenclature_fed . " it should be in!"); |
|
110 | - } |
|
111 | - $federation = $validator->Federation($newcountry); |
|
112 | - $prettyprintname = $newinstname; |
|
113 | - $introtext = sprintf(_("a %s %s has invited you to manage the future %s \"%s\" (%s)."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclature_fed, $uiElements->nomenclature_inst, $prettyprintname, $newcountry) . " " . sprintf(_("This invitation is valid for 24 hours from now, i.e. until %s."), strftime("%x %X", time() + 86400)); |
|
114 | - // send the user back to his federation overview page, append the result of the operation later |
|
115 | - // do the token creation magic |
|
116 | - $newtoken = $mgmt->createToken(TRUE, $mailaddress, $newinstname, 0, $newcountry); |
|
117 | - $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP FUTURE - Token created for " . $mailaddress); |
|
118 | - break; |
|
119 | - case OPERATION_MODE_NEWFROMDB: |
|
120 | - $redirect_destination = "../overview_federation.php?"; |
|
121 | - $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
122 | - // a real external DB entry was submitted and all the required parameters are there |
|
123 | - $newexternalid = $validator->string($_POST['externals']); |
|
124 | - $extinfo = $catInstance->getExternalDBEntityDetails($newexternalid); |
|
125 | - $new_idp_authorized_fedadmin = $userObject->isFederationAdmin($extinfo['country']); |
|
126 | - if ($new_idp_authorized_fedadmin !== TRUE) { |
|
127 | - throw new Exception("Something's wrong... you want to create a new " . $uiElements->nomenclature_inst . ", but are not a " . $uiElements->nomenclature_fed . " admin for the " . $uiElements->nomenclature_fed . " it should be in!"); |
|
128 | - } |
|
129 | - $federation = $validator->Federation($extinfo['country']); |
|
130 | - $newcountry = $extinfo['country']; |
|
131 | - // see if the inst name is defined in the currently set language; if not, pick its English name; if N/A, pick the last in the list |
|
132 | - $prettyprintname = ""; |
|
133 | - foreach ($extinfo['names'] as $lang => $name) { |
|
134 | - if ($lang == $languageInstance->getLang()) { |
|
135 | - $prettyprintname = $name; |
|
96 | + $prettyprintname = $idp->name; |
|
97 | + $newtoken = $mgmt->createToken($fedadmin, $mailaddress, $idp); |
|
98 | + $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP " . $idp->identifier . " - Token created for " . $mailaddress); |
|
99 | + $introtext = sprintf(_("a %s of the %s %s \"%s\" has invited you to manage the %s together with him."), $uiElements->nomenclature_fed, CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclature_inst, $prettyprintname, $uiElements->nomenclature_inst) . " " . sprintf(_("This invitation is valid for 24 hours from now, i.e. until %s."), strftime("%x %X", time() + 86400)); |
|
100 | + break; |
|
101 | + case OPERATION_MODE_NEWUNLINKED: |
|
102 | + $redirect_destination = "../overview_federation.php?"; |
|
103 | + $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
104 | + // run an input check and conversion of the raw inputs... just in case |
|
105 | + $newinstname = $validator->string($_POST['name']); |
|
106 | + $newcountry = $validator->string($_POST['country']); |
|
107 | + $new_idp_authorized_fedadmin = $userObject->isFederationAdmin($newcountry); |
|
108 | + if ($new_idp_authorized_fedadmin !== TRUE) { |
|
109 | + throw new Exception("Something's wrong... you want to create a new " . $uiElements->nomenclature_inst . ", but are not a " . $uiElements->nomenclature_fed . " admin for the " . $uiElements->nomenclature_fed . " it should be in!"); |
|
136 | 110 | } |
137 | - } |
|
138 | - if ($prettyprintname == "" && isset($extinfo['names']['en'])) { |
|
139 | - $prettyprintname = $extinfo['names']['en']; |
|
140 | - } |
|
141 | - if ($prettyprintname == "") { |
|
142 | - foreach ($extinfo['names'] as $name) { |
|
143 | - $prettyprintname = $name; |
|
111 | + $federation = $validator->Federation($newcountry); |
|
112 | + $prettyprintname = $newinstname; |
|
113 | + $introtext = sprintf(_("a %s %s has invited you to manage the future %s \"%s\" (%s)."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclature_fed, $uiElements->nomenclature_inst, $prettyprintname, $newcountry) . " " . sprintf(_("This invitation is valid for 24 hours from now, i.e. until %s."), strftime("%x %X", time() + 86400)); |
|
114 | + // send the user back to his federation overview page, append the result of the operation later |
|
115 | + // do the token creation magic |
|
116 | + $newtoken = $mgmt->createToken(TRUE, $mailaddress, $newinstname, 0, $newcountry); |
|
117 | + $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP FUTURE - Token created for " . $mailaddress); |
|
118 | + break; |
|
119 | + case OPERATION_MODE_NEWFROMDB: |
|
120 | + $redirect_destination = "../overview_federation.php?"; |
|
121 | + $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
122 | + // a real external DB entry was submitted and all the required parameters are there |
|
123 | + $newexternalid = $validator->string($_POST['externals']); |
|
124 | + $extinfo = $catInstance->getExternalDBEntityDetails($newexternalid); |
|
125 | + $new_idp_authorized_fedadmin = $userObject->isFederationAdmin($extinfo['country']); |
|
126 | + if ($new_idp_authorized_fedadmin !== TRUE) { |
|
127 | + throw new Exception("Something's wrong... you want to create a new " . $uiElements->nomenclature_inst . ", but are not a " . $uiElements->nomenclature_fed . " admin for the " . $uiElements->nomenclature_fed . " it should be in!"); |
|
144 | 128 | } |
145 | - } |
|
146 | - // fill the rest of the text |
|
147 | - $introtext = sprintf(_("a %s %s has invited you to manage the %s \"%s\"."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclature_fed, $uiElements->nomenclature_inst, $prettyprintname) . " " . sprintf(_("This invitation is valid for 24 hours from now, i.e. until %s."), strftime("%x %X", time() + 86400)); |
|
148 | - // do the token creation magic |
|
149 | - $newtoken = $mgmt->createToken(TRUE, $mailaddress, $prettyprintname, $newexternalid); |
|
150 | - $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP FUTURE - Token created for " . $mailaddress); |
|
151 | - break; |
|
152 | - default: // includes OPERATION_MODE_INVALID |
|
153 | - $wrongcontent = print_r($_POST, TRUE); |
|
154 | - echo "<pre>Wrong parameters in POST: |
|
129 | + $federation = $validator->Federation($extinfo['country']); |
|
130 | + $newcountry = $extinfo['country']; |
|
131 | + // see if the inst name is defined in the currently set language; if not, pick its English name; if N/A, pick the last in the list |
|
132 | + $prettyprintname = ""; |
|
133 | + foreach ($extinfo['names'] as $lang => $name) { |
|
134 | + if ($lang == $languageInstance->getLang()) { |
|
135 | + $prettyprintname = $name; |
|
136 | + } |
|
137 | + } |
|
138 | + if ($prettyprintname == "" && isset($extinfo['names']['en'])) { |
|
139 | + $prettyprintname = $extinfo['names']['en']; |
|
140 | + } |
|
141 | + if ($prettyprintname == "") { |
|
142 | + foreach ($extinfo['names'] as $name) { |
|
143 | + $prettyprintname = $name; |
|
144 | + } |
|
145 | + } |
|
146 | + // fill the rest of the text |
|
147 | + $introtext = sprintf(_("a %s %s has invited you to manage the %s \"%s\"."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $uiElements->nomenclature_fed, $uiElements->nomenclature_inst, $prettyprintname) . " " . sprintf(_("This invitation is valid for 24 hours from now, i.e. until %s."), strftime("%x %X", time() + 86400)); |
|
148 | + // do the token creation magic |
|
149 | + $newtoken = $mgmt->createToken(TRUE, $mailaddress, $prettyprintname, $newexternalid); |
|
150 | + $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP FUTURE - Token created for " . $mailaddress); |
|
151 | + break; |
|
152 | + default: // includes OPERATION_MODE_INVALID |
|
153 | + $wrongcontent = print_r($_POST, TRUE); |
|
154 | + echo "<pre>Wrong parameters in POST: |
|
155 | 155 | " . htmlspecialchars($wrongcontent) . " |
156 | 156 | </pre>"; |
157 | - exit(1); |
|
157 | + exit(1); |
|
158 | 158 | } |
159 | 159 | // are we on https? |
160 | 160 | $proto = "http://"; |
@@ -88,7 +88,7 @@ |
||
88 | 88 | 'server_suffix' => '.hosted.eduroam.org', |
89 | 89 | 'gracetime' => 90, |
90 | 90 | 'CA' => ["type" => "embedded"], # OCSP URL needs to be configured in openssl.cnf |
91 | - # 'CA' => ["type" => "DFN", "SOAP_API_ENDPOINT" => "http://no.idea.where/"], |
|
91 | + # 'CA' => ["type" => "DFN", "SOAP_API_ENDPOINT" => "http://no.idea.where/"], |
|
92 | 92 | |
93 | 93 | ], |
94 | 94 | /** |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | * @var array |
132 | 132 | */ |
133 | - 'MAILSETTINGS' => [ // we always use Submission |
|
133 | + 'MAILSETTINGS' => [// we always use Submission |
|
134 | 134 | 'host' => 'submission.capable.mta', |
135 | 135 | 'user'=> 'mailuser', |
136 | 136 | 'pass' => 'mailpass', |
@@ -146,25 +146,25 @@ discard block |
||
146 | 146 | * @var array |
147 | 147 | */ |
148 | 148 | 'LANGUAGES' => [ |
149 | - 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
150 | - 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
151 | - 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
152 | - 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
153 | - 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
154 | - 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
155 | - 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
156 | - 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
157 | - 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
158 | - 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
159 | - 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
160 | - 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
161 | - 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
162 | - 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
163 | - 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
164 | - 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
165 | - 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
166 | - 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
167 | - 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
149 | + 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
150 | + 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
151 | + 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
152 | + 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
153 | + 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
154 | + 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
155 | + 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
156 | + 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
157 | + 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
158 | + 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
159 | + 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
160 | + 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
161 | + 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
162 | + 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
163 | + 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
164 | + 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
165 | + 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
166 | + 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
167 | + 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
168 | 168 | |
169 | 169 | // For the following languages, partial translations exist in Transifex, but |
170 | 170 | // they are not complete enough for display. Their Transifex content is not |
@@ -104,13 +104,13 @@ discard block |
||
104 | 104 | ], |
105 | 105 | |
106 | 106 | /** |
107 | - * Configuration for GeoIP2 |
|
108 | - * Beware, the legacy version does not really work with IPv6 addresses |
|
109 | - * version: set to 2 if you wish to use GeoIP2, to 1 for the legacy version or set to 0 to turn off geolocation service |
|
110 | - * geoip2-path-to-autoloader: points to the GeoIP2 autoloader |
|
111 | - * geoip2-path-to-db: points to the GeoIP2 city database |
|
112 | - * @var array |
|
113 | - */ |
|
107 | + * Configuration for GeoIP2 |
|
108 | + * Beware, the legacy version does not really work with IPv6 addresses |
|
109 | + * version: set to 2 if you wish to use GeoIP2, to 1 for the legacy version or set to 0 to turn off geolocation service |
|
110 | + * geoip2-path-to-autoloader: points to the GeoIP2 autoloader |
|
111 | + * geoip2-path-to-db: points to the GeoIP2 city database |
|
112 | + * @var array |
|
113 | + */ |
|
114 | 114 | |
115 | 115 | 'GEOIP' => [ |
116 | 116 | 'version' => 0, |
@@ -128,7 +128,6 @@ discard block |
||
128 | 128 | * mails, just configure the signing cert with these parameters. All must |
129 | 129 | * be non-NULL for signing to happen. If you don't need a keypass, make |
130 | 130 | * it an empty string instead. |
131 | - |
|
132 | 131 | * @var array |
133 | 132 | */ |
134 | 133 | 'MAILSETTINGS' => [ // we always use Submission |
@@ -147,25 +146,25 @@ discard block |
||
147 | 146 | * @var array |
148 | 147 | */ |
149 | 148 | 'LANGUAGES' => [ |
150 | - 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
151 | - 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
152 | - 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
153 | - 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
154 | - 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
155 | - 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
156 | - 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
157 | - 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
158 | - 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
159 | - 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
160 | - 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
161 | - 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
162 | - 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
163 | - 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
164 | - 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
165 | - 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
166 | - 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
167 | - 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
168 | - 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
149 | + 'bg' => ['display' => 'Български', 'locale' => 'bg_BG.utf8', 'latin_based' => FALSE], |
|
150 | + 'ca' => ['display' => 'Català', 'locale' => 'ca_ES.utf8', 'latin_based' => TRUE], |
|
151 | + 'cs' => ['display' => 'Čeština', 'locale' => 'cs_CZ.utf8', 'latin_based' => TRUE], |
|
152 | + 'de' => ['display' => 'Deutsch', 'locale' => 'de_DE.utf8', 'latin_based' => TRUE], |
|
153 | + 'el' => ['display' => 'Ελληνικά', 'locale' => 'el_GR.utf8', 'latin_based' => FALSE], |
|
154 | + 'en' => ['display' => 'English(GB)', 'locale' => 'en_GB.utf8', 'latin_based' => TRUE], |
|
155 | + 'es' => ['display' => 'Español', 'locale' => 'es_ES.utf8', 'latin_based' => TRUE], |
|
156 | + 'fr' => ['display' => 'Français', 'locale' => 'fr_FR.utf8', 'latin_based' => TRUE], |
|
157 | + 'gl' => ['display' => 'Galego', 'locale' => 'gl_ES.utf8', 'latin_based' => TRUE], |
|
158 | + 'hr' => ['display' => 'Hrvatski', 'locale' => 'hr_HR.utf8', 'latin_based' => TRUE], |
|
159 | + 'it' => ['display' => 'Italiano', 'locale' => 'it_IT.utf8', 'latin_based' => TRUE], |
|
160 | + 'lt' => ['display' => 'lietuvių', 'locale' => 'lt_LT.utf8', 'latin_based' => TRUE], |
|
161 | + 'nb' => ['display' => 'Norsk', 'locale' => 'nb_NO.utf8', 'latin_based' => TRUE], |
|
162 | + 'pl' => ['display' => 'Polski', 'locale' => 'pl_PL.utf8', 'latin_based' => TRUE], |
|
163 | + 'sl' => ['display' => 'Slovenščina', 'locale' => 'sl_SI.utf8', 'latin_based' => TRUE], |
|
164 | + 'sr' => ['display' => 'Srpski', 'locale' => 'sr_RS@latin', 'latin_based' => TRUE], |
|
165 | + 'fi' => ['display' => 'Suomi', 'locale' => 'fi_FI.utf8', 'latin_based' => TRUE], |
|
166 | + 'hu' => ['display' => 'Magyar', 'locale' => 'hu_HU.utf8', 'latin_based' => TRUE], |
|
167 | + 'pt' => ['display' => 'Português', 'locale' => 'pt_PT.utf8', 'latin_based' => TRUE], |
|
169 | 168 | |
170 | 169 | // For the following languages, partial translations exist in Transifex, but |
171 | 170 | // they are not complete enough for display. Their Transifex content is not |
@@ -242,7 +241,7 @@ discard block |
||
242 | 241 | 'user' => 'customerservice', |
243 | 242 | 'pass' => '2lame4u', |
244 | 243 | 'readonly' => TRUE, ], |
245 | - 'enforce-external-sync' => TRUE, |
|
244 | + 'enforce-external-sync' => TRUE, |
|
246 | 245 | ], |
247 | 246 | |
248 | 247 | /** |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function __construct() { |
63 | 63 | $this->loggerInstance = new Logging(); |
64 | - $this->loggerInstance->debug(3, "--- BEGIN constructing class ". get_class($this)." .\n"); |
|
64 | + $this->loggerInstance->debug(3, "--- BEGIN constructing class " . get_class($this) . " .\n"); |
|
65 | 65 | $this->languageInstance = new Language(); |
66 | 66 | } |
67 | 67 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * Logs the end of lifetime of the entity to the debug log on level 5. |
72 | 72 | */ |
73 | 73 | public function __destruct() { |
74 | - (new Logging())->debug(5,"--- KILL Destructing class ". get_class($this)." .\n"); |
|
74 | + (new Logging())->debug(5, "--- KILL Destructing class " . get_class($this) . " .\n"); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -56,8 +56,8 @@ |
||
56 | 56 | |
57 | 57 | $i = 0; |
58 | 58 | foreach ($salvageFedPrivs as $oneFed) { |
59 | - $_POST['option']["S123456789".$i] = "user:fedadmin#string##"; |
|
60 | - $_POST['value']["S123456789".$i."-0"] = $oneFed; |
|
59 | + $_POST['option']["S123456789" . $i] = "user:fedadmin#string##"; |
|
60 | + $_POST['value']["S123456789" . $i . "-0"] = $oneFed; |
|
61 | 61 | $i++; |
62 | 62 | } |
63 | 63 | ?> |
@@ -26,4 +26,4 @@ |
||
26 | 26 | $Gui->defaultPagePrelude(); |
27 | 27 | |
28 | 28 | // and now, serve actual data |
29 | -include("skins/".$Gui->skinObject->skin."/index.php"); |
|
29 | +include("skins/" . $Gui->skinObject->skin . "/index.php"); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @package ModuleWriting |
20 | 20 | */ |
21 | 21 | namespace devices\xml; |
22 | -require_once(dirname(__FILE__).'/XML.inc.php'); |
|
22 | +require_once(dirname(__FILE__) . '/XML.inc.php'); |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * This class implements full functionality of the generic XML device |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $objs = []; |
155 | 155 | if ($this->langScope === 'global') { |
156 | 156 | foreach ($attributeList['langs'] as $language => $value) { |
157 | - $language = ( $language === 'C' ? 'any' : $language ); |
|
157 | + $language = ($language === 'C' ? 'any' : $language); |
|
158 | 158 | $obj = new $className(); |
159 | 159 | $obj->setValue($value); |
160 | 160 | $obj->setAttributes(['lang' => $language]); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $profileNameLangs = $attr['profile:name']['langs']; |
179 | 179 | } |
180 | 180 | foreach ($instNameLangs as $language => $value) { |
181 | - $language = ( $language === 'C' ? 'any' : $language ); |
|
181 | + $language = ($language === 'C' ? 'any' : $language); |
|
182 | 182 | $displayname = new DisplayName(); |
183 | 183 | if (isset($profileNameLangs)) { |
184 | 184 | $langOrC = isset($profileNameLangs[$language]) ? $profileNameLangs[$language] : $profileNameLangs['C']; |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | $clientCertificateObject->setValue(base64_encode($this->clientCert["certdata"])); |
352 | 352 | $clientCertificateObject->setAttributes(['format' => 'PKCS12', 'encoding' => 'base64']); |
353 | 353 | |
354 | - $clientsidecredential->setProperty('ClientCertificate',$clientCertificateObject); |
|
354 | + $clientsidecredential->setProperty('ClientCertificate', $clientCertificateObject); |
|
355 | 355 | } |
356 | 356 | |
357 | 357 | $authmethod->setProperty('ClientSideCredential', $clientsidecredential); |