@@ -97,14 +97,14 @@ |
||
97 | 97 | case "SUCCESS": |
98 | 98 | $cryptText = ""; |
99 | 99 | switch ($_GET['transportsecurity']) { |
100 | - case "ENCRYPTED": |
|
101 | - $cryptText = _("and <b>encrypted</b> to the mail domain"); |
|
102 | - break; |
|
103 | - case "CLEAR": |
|
104 | - $cryptText = _("but <b>in clear text</b> to the mail domain"); |
|
105 | - break; |
|
106 | - default: |
|
107 | - throw new Exception("Error: unknown encryption status of invitation!?!"); |
|
100 | + case "ENCRYPTED": |
|
101 | + $cryptText = _("and <b>encrypted</b> to the mail domain"); |
|
102 | + break; |
|
103 | + case "CLEAR": |
|
104 | + $cryptText = _("but <b>in clear text</b> to the mail domain"); |
|
105 | + break; |
|
106 | + default: |
|
107 | + throw new Exception("Error: unknown encryption status of invitation!?!"); |
|
108 | 108 | } |
109 | 109 | echo $uiElements->boxRemark(sprintf(_("The invitation email was sent successfully %s."), $cryptText), _("The invitation email was sent.")); |
110 | 110 | break; |
@@ -120,6 +120,9 @@ |
||
120 | 120 | return Telepath::STATUS_GOOD; |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @param string $homeFlr |
|
125 | + */ |
|
123 | 126 | private function checkNROFlow($visitedFlr, $homeFlr) { |
124 | 127 | // TODO: this is a stub, need eduroam OT API to query the current server status |
125 | 128 | // APIQueryNRODirect($visitedFlr, $homeFlr); |
@@ -120,6 +120,9 @@ discard block |
||
120 | 120 | return $find[0]; |
121 | 121 | } |
122 | 122 | |
123 | + /** |
|
124 | + * @param string $input |
|
125 | + */ |
|
123 | 126 | public function tooltip($input) { |
124 | 127 | $descriptions = []; |
125 | 128 | if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0) { |
@@ -256,6 +259,10 @@ discard block |
||
256 | 259 | return $number . " B"; |
257 | 260 | } |
258 | 261 | |
262 | + /** |
|
263 | + * @param string $ref |
|
264 | + * @param boolean $checkpublic |
|
265 | + */ |
|
259 | 266 | public static function getBlobFromDB($ref, $checkpublic) { |
260 | 267 | $validator = new \web\lib\common\InputValidation(); |
261 | 268 | $reference = $validator->databaseReference($ref); |
@@ -402,7 +409,7 @@ discard block |
||
402 | 409 | * @param string $text the text to display |
403 | 410 | * @param string $caption the caption to display |
404 | 411 | * @param bool $omittabletags the output usually has tr/td table tags, this option suppresses them |
405 | - * @return type |
|
412 | + * @return string |
|
406 | 413 | */ |
407 | 414 | public function boxOkay(string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) { |
408 | 415 | return $this->boxFlexible(\core\common\Entity::L_OK, $text, $caption, $omittabletags); |
@@ -414,7 +421,7 @@ discard block |
||
414 | 421 | * @param string $text the text to display |
415 | 422 | * @param string $caption the caption to display |
416 | 423 | * @param bool $omittabletags the output usually has tr/td table tags, this option suppresses them |
417 | - * @return type |
|
424 | + * @return string |
|
418 | 425 | */ |
419 | 426 | public function boxRemark(string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) { |
420 | 427 | return $this->boxFlexible(\core\common\Entity::L_REMARK, $text, $caption, $omittabletags); |
@@ -426,7 +433,7 @@ discard block |
||
426 | 433 | * @param string $text the text to display |
427 | 434 | * @param string $caption the caption to display |
428 | 435 | * @param bool $omittabletags the output usually has tr/td table tags, this option suppresses them |
429 | - * @return type |
|
436 | + * @return string |
|
430 | 437 | */ |
431 | 438 | public function boxWarning(string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) { |
432 | 439 | return $this->boxFlexible(\core\common\Entity::L_WARN, $text, $caption, $omittabletags); |
@@ -438,7 +445,7 @@ discard block |
||
438 | 445 | * @param string $text the text to display |
439 | 446 | * @param string $caption the caption to display |
440 | 447 | * @param bool $omittabletags the output usually has tr/td table tags, this option suppresses them |
441 | - * @return type |
|
448 | + * @return string |
|
442 | 449 | */ |
443 | 450 | public function boxError(string $text = NULL, string $caption = NULL, bool $omittabletags = FALSE) { |
444 | 451 | return $this->boxFlexible(\core\common\Entity::L_ERROR, $text, $caption, $omittabletags); |
@@ -77,90 +77,90 @@ |
||
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 admin of this IdP? |
|
87 | - $is_owner = FALSE; |
|
88 | - $owners = $idp->owner(); |
|
89 | - foreach ($owners as $oneowner) { |
|
90 | - if ($oneowner['ID'] == $_SESSION['user'] && $oneowner['LEVEL'] == "FED") { |
|
91 | - $is_owner = TRUE; |
|
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 admin of this IdP? |
|
87 | + $is_owner = FALSE; |
|
88 | + $owners = $idp->owner(); |
|
89 | + foreach ($owners as $oneowner) { |
|
90 | + if ($oneowner['ID'] == $_SESSION['user'] && $oneowner['LEVEL'] == "FED") { |
|
91 | + $is_owner = TRUE; |
|
92 | + } |
|
93 | + } |
|
94 | + // check if he is (also) federation admin for the federation this IdP is in. His invitations have more blessing then. |
|
95 | + $fedadmin = $userObject->isFederationAdmin($idp->federation); |
|
96 | + // check if he is either one, if not, complain |
|
97 | + if (!$is_owner && !$fedadmin) { |
|
98 | + 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>"; |
|
99 | + exit(1); |
|
92 | 100 | } |
93 | - } |
|
94 | - // check if he is (also) federation admin for the federation this IdP is in. His invitations have more blessing then. |
|
95 | - $fedadmin = $userObject->isFederationAdmin($idp->federation); |
|
96 | - // check if he is either one, if not, complain |
|
97 | - if (!$is_owner && !$fedadmin) { |
|
98 | - 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>"; |
|
99 | - exit(1); |
|
100 | - } |
|
101 | 101 | |
102 | - $prettyprintname = $idp->name; |
|
103 | - $newtoken = $mgmt->createToken($fedadmin, $mailaddress, $idp); |
|
104 | - $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP " . $idp->identifier . " - Token created for " . $mailaddress); |
|
105 | - $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)); |
|
106 | - break; |
|
107 | - case OPERATION_MODE_NEWUNLINKED: |
|
108 | - $redirect_destination = "../overview_federation.php?"; |
|
109 | - $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
110 | - // run an input check and conversion of the raw inputs... just in case |
|
111 | - $newinstname = $validator->string($_POST['name']); |
|
112 | - $newcountry = $validator->string($_POST['country']); |
|
113 | - $new_idp_authorized_fedadmin = $userObject->isFederationAdmin($newcountry); |
|
114 | - if ($new_idp_authorized_fedadmin !== TRUE) { |
|
115 | - 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!"); |
|
116 | - } |
|
117 | - $federation = $validator->Federation($newcountry); |
|
118 | - $prettyprintname = $newinstname; |
|
119 | - $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)); |
|
120 | - // send the user back to his federation overview page, append the result of the operation later |
|
121 | - // do the token creation magic |
|
122 | - $newtoken = $mgmt->createToken(TRUE, $mailaddress, $newinstname, 0, $newcountry); |
|
123 | - $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP FUTURE - Token created for " . $mailaddress); |
|
124 | - break; |
|
125 | - case OPERATION_MODE_NEWFROMDB: |
|
126 | - $redirect_destination = "../overview_federation.php?"; |
|
127 | - $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
128 | - // a real external DB entry was submitted and all the required parameters are there |
|
129 | - $newexternalid = $validator->string($_POST['externals']); |
|
130 | - $extinfo = $catInstance->getExternalDBEntityDetails($newexternalid); |
|
131 | - $new_idp_authorized_fedadmin = $userObject->isFederationAdmin($extinfo['country']); |
|
132 | - if ($new_idp_authorized_fedadmin !== TRUE) { |
|
133 | - 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!"); |
|
134 | - } |
|
135 | - $federation = $validator->Federation($extinfo['country']); |
|
136 | - $newcountry = $extinfo['country']; |
|
137 | - // 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 |
|
138 | - $prettyprintname = ""; |
|
139 | - foreach ($extinfo['names'] as $lang => $name) { |
|
140 | - if ($lang == $languageInstance->getLang()) { |
|
141 | - $prettyprintname = $name; |
|
102 | + $prettyprintname = $idp->name; |
|
103 | + $newtoken = $mgmt->createToken($fedadmin, $mailaddress, $idp); |
|
104 | + $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP " . $idp->identifier . " - Token created for " . $mailaddress); |
|
105 | + $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)); |
|
106 | + break; |
|
107 | + case OPERATION_MODE_NEWUNLINKED: |
|
108 | + $redirect_destination = "../overview_federation.php?"; |
|
109 | + $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
110 | + // run an input check and conversion of the raw inputs... just in case |
|
111 | + $newinstname = $validator->string($_POST['name']); |
|
112 | + $newcountry = $validator->string($_POST['country']); |
|
113 | + $new_idp_authorized_fedadmin = $userObject->isFederationAdmin($newcountry); |
|
114 | + if ($new_idp_authorized_fedadmin !== TRUE) { |
|
115 | + 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!"); |
|
142 | 116 | } |
143 | - } |
|
144 | - if ($prettyprintname == "" && isset($extinfo['names']['en'])) { |
|
145 | - $prettyprintname = $extinfo['names']['en']; |
|
146 | - } |
|
147 | - if ($prettyprintname == "") { |
|
148 | - foreach ($extinfo['names'] as $name) { |
|
149 | - $prettyprintname = $name; |
|
117 | + $federation = $validator->Federation($newcountry); |
|
118 | + $prettyprintname = $newinstname; |
|
119 | + $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)); |
|
120 | + // send the user back to his federation overview page, append the result of the operation later |
|
121 | + // do the token creation magic |
|
122 | + $newtoken = $mgmt->createToken(TRUE, $mailaddress, $newinstname, 0, $newcountry); |
|
123 | + $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP FUTURE - Token created for " . $mailaddress); |
|
124 | + break; |
|
125 | + case OPERATION_MODE_NEWFROMDB: |
|
126 | + $redirect_destination = "../overview_federation.php?"; |
|
127 | + $mailaddress = abortOnBogusMail($newmailaddress, $redirect_destination); |
|
128 | + // a real external DB entry was submitted and all the required parameters are there |
|
129 | + $newexternalid = $validator->string($_POST['externals']); |
|
130 | + $extinfo = $catInstance->getExternalDBEntityDetails($newexternalid); |
|
131 | + $new_idp_authorized_fedadmin = $userObject->isFederationAdmin($extinfo['country']); |
|
132 | + if ($new_idp_authorized_fedadmin !== TRUE) { |
|
133 | + 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!"); |
|
150 | 134 | } |
151 | - } |
|
152 | - // fill the rest of the text |
|
153 | - $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)); |
|
154 | - // do the token creation magic |
|
155 | - $newtoken = $mgmt->createToken(TRUE, $mailaddress, $prettyprintname, $newexternalid); |
|
156 | - $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP FUTURE - Token created for " . $mailaddress); |
|
157 | - break; |
|
158 | - default: // includes OPERATION_MODE_INVALID |
|
159 | - $wrongcontent = print_r($_POST, TRUE); |
|
160 | - echo "<pre>Wrong parameters in POST: |
|
135 | + $federation = $validator->Federation($extinfo['country']); |
|
136 | + $newcountry = $extinfo['country']; |
|
137 | + // 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 |
|
138 | + $prettyprintname = ""; |
|
139 | + foreach ($extinfo['names'] as $lang => $name) { |
|
140 | + if ($lang == $languageInstance->getLang()) { |
|
141 | + $prettyprintname = $name; |
|
142 | + } |
|
143 | + } |
|
144 | + if ($prettyprintname == "" && isset($extinfo['names']['en'])) { |
|
145 | + $prettyprintname = $extinfo['names']['en']; |
|
146 | + } |
|
147 | + if ($prettyprintname == "") { |
|
148 | + foreach ($extinfo['names'] as $name) { |
|
149 | + $prettyprintname = $name; |
|
150 | + } |
|
151 | + } |
|
152 | + // fill the rest of the text |
|
153 | + $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)); |
|
154 | + // do the token creation magic |
|
155 | + $newtoken = $mgmt->createToken(TRUE, $mailaddress, $prettyprintname, $newexternalid); |
|
156 | + $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP FUTURE - Token created for " . $mailaddress); |
|
157 | + break; |
|
158 | + default: // includes OPERATION_MODE_INVALID |
|
159 | + $wrongcontent = print_r($_POST, TRUE); |
|
160 | + echo "<pre>Wrong parameters in POST: |
|
161 | 161 | " . htmlspecialchars($wrongcontent) . " |
162 | 162 | </pre>"; |
163 | - exit(1); |
|
163 | + exit(1); |
|
164 | 164 | } |
165 | 165 | // are we on https? |
166 | 166 | $proto = "http://"; |
@@ -125,6 +125,7 @@ discard block |
||
125 | 125 | * |
126 | 126 | * @param string $device |
127 | 127 | * @param AbstractProfile $profile |
128 | + * @param string $generatedFor |
|
128 | 129 | * @return array info about the new installer (mime and link) |
129 | 130 | */ |
130 | 131 | private function generateNewInstaller($device, $profile, $generatedFor, $token, $password) { |
@@ -459,6 +460,10 @@ discard block |
||
459 | 460 | readfile($file); |
460 | 461 | } |
461 | 462 | |
463 | + /** |
|
464 | + * @param string $destFile |
|
465 | + * @param integer $resize |
|
466 | + */ |
|
462 | 467 | private function processImage($inputImage, $destFile, $width, $height, $resize) { |
463 | 468 | $info = new \finfo(); |
464 | 469 | $filetype = $info->buffer($inputImage, FILEINFO_MIME_TYPE); |
@@ -485,7 +490,6 @@ discard block |
||
485 | 490 | * When called for DiscoJuice, first check if file cache exists |
486 | 491 | * If not then generate the file and save it in the cache |
487 | 492 | * @param int $idp IdP identifier |
488 | - * @param int $disco flag turning on image generation for DiscoJuice |
|
489 | 493 | * @param int $width maximum width of the generated image |
490 | 494 | * @param int $height maximum height of the generated image |
491 | 495 | * if one of these is 0 then it is treated as no upper bound |
@@ -260,6 +260,9 @@ discard block |
||
260 | 260 | return _("Sorry, this should not happen - no additional information is available"); |
261 | 261 | } |
262 | 262 | |
263 | + /** |
|
264 | + * @param string $file |
|
265 | + */ |
|
263 | 266 | private function findSourceFile($file) { |
264 | 267 | if (is_file($this->module_path . '/Files/' . $this->device_id . '/' . $file)) { |
265 | 268 | return $this->module_path . '/Files/' . $this->device_id . '/' . $file; |
@@ -540,6 +543,9 @@ discard block |
||
540 | 543 | 'application/pdf' => 'pdf', |
541 | 544 | ]; |
542 | 545 | |
546 | + /** |
|
547 | + * @param string $type |
|
548 | + */ |
|
543 | 549 | private function saveLogoFile($logos,$type) { |
544 | 550 | $iterator = 0; |
545 | 551 | $returnarray = []; |
@@ -53,14 +53,14 @@ |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | switch ($_GET['token']) { |
56 | - case "SELF-REGISTER": |
|
57 | - $token = "SELF-REGISTER"; |
|
58 | - $checkval = \core\UserManagement::TOKENSTATUS_OK_NEW; |
|
59 | - $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration']; |
|
60 | - break; |
|
61 | - default: |
|
62 | - $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
63 | - $checkval = $usermgmt->checkTokenValidity($token); |
|
56 | + case "SELF-REGISTER": |
|
57 | + $token = "SELF-REGISTER"; |
|
58 | + $checkval = \core\UserManagement::TOKENSTATUS_OK_NEW; |
|
59 | + $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration']; |
|
60 | + break; |
|
61 | + default: |
|
62 | + $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
63 | + $checkval = $usermgmt->checkTokenValidity($token); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | if ($checkval < 0) { |
@@ -96,6 +96,12 @@ discard block |
||
96 | 96 | */ |
97 | 97 | protected $frontendHandle; |
98 | 98 | |
99 | + /** |
|
100 | + * @param integer $idpIdentifier |
|
101 | + * @param string $deviceId |
|
102 | + * @param string $area |
|
103 | + * @param string $lang |
|
104 | + */ |
|
99 | 105 | protected function saveDownloadDetails($idpIdentifier, $profileId, $deviceId, $area, $lang, $eapType) { |
100 | 106 | if (CONFIG['PATHS']['logdir']) { |
101 | 107 | $f = fopen(CONFIG['PATHS']['logdir'] . "/download_details.log", "a"); |
@@ -285,6 +291,9 @@ discard block |
||
285 | 291 | * |
286 | 292 | * @param string device the device identifier string |
287 | 293 | * @param string path the path where the new installer can be found |
294 | + * @param string $device |
|
295 | + * @param string $path |
|
296 | + * @param integer $integerEapType |
|
288 | 297 | */ |
289 | 298 | abstract public function updateCache($device, $path, $mime, $integerEapType); |
290 | 299 | |
@@ -600,7 +609,7 @@ discard block |
||
600 | 609 | * it? Silverbullet will always return TRUE; RADIUS profiles need to do some |
601 | 610 | * heavy lifting here. |
602 | 611 | * |
603 | - * * @return boolean TRUE if enough info is set to enable installers |
|
612 | + * * @return integer TRUE if enough info is set to enable installers |
|
604 | 613 | */ |
605 | 614 | public function readinessLevel() { |
606 | 615 | $result = $this->databaseHandle->exec("SELECT sufficient_config, showtime FROM profile WHERE profile_id = ?", "i", $this->identifier); |
@@ -205,7 +205,7 @@ |
||
205 | 205 | * @param int $rowid the HTML field base name of the option to be displayed |
206 | 206 | * @param string $optionName the name of the option to display |
207 | 207 | * @param string $optionValue the value of the option to display |
208 | - * @param mixed $optionLang the language of the option to display |
|
208 | + * @param null|string $optionLang the language of the option to display |
|
209 | 209 | * @return string HTML code |
210 | 210 | * @throws Exception |
211 | 211 | */ |