| @@ 512-523 (lines=12) @@ | ||
| 509 | $this->loggerInstance->debug(4, "code_page=" . $this->codePage . "\n"); |
|
| 510 | $this->copyBasicFiles(); |
|
| 511 | ||
| 512 | switch ($eap["OUTER"]) { |
|
| 513 | case \core\common\EAP::TTLS: |
|
| 514 | $this->copyGeantLinkFiles(); |
|
| 515 | break; |
|
| 516 | case \core\common\EAP::PWD: |
|
| 517 | $this->copyPwdFiles(); |
|
| 518 | break; |
|
| 519 | default: |
|
| 520 | if (!$this->translateFile('peap_tls.inc', 'cat.NSI', $this->codePage)) { |
|
| 521 | throw new Exception("Translating needed file peap_tls.inc failed!"); |
|
| 522 | } |
|
| 523 | } |
|
| 524 | $this->loggerInstance->debug(4, "copyFiles end\n"); |
|
| 525 | return TRUE; |
|
| 526 | } |
|
| @@ 471-479 (lines=9) @@ | ||
| 468 | private function copyFiles($eap) { |
|
| 469 | $this->loggerInstance->debug(4, "copyFiles start\n"); |
|
| 470 | $this->copyBasicFiles(); |
|
| 471 | switch ($eap["OUTER"]) { |
|
| 472 | case \core\common\EAP::PWD: |
|
| 473 | $this->copyPwdFiles(); |
|
| 474 | break; |
|
| 475 | default: |
|
| 476 | if (!$this->translateFile('eap_w8.inc', 'cat.NSI', $this->codePage)) { |
|
| 477 | throw new Exception("Translating needed file eap_w8.inc failed!"); |
|
| 478 | } |
|
| 479 | } |
|
| 480 | $this->loggerInstance->debug(4, "copyFiles end\n"); |
|
| 481 | return TRUE; |
|
| 482 | } |
|