| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 2 | Features | 1 |
| 1 | <?php |
||
| 30 | public function getContent(): string { |
||
| 31 | if (isset($_REQUEST['no_design'])) { |
||
| 32 | phpinfo(); |
||
| 33 | exit; |
||
| 34 | } else { |
||
| 35 | /*$content = ""; |
||
| 36 | |||
| 37 | ob_start(); |
||
| 38 | phpinfo(); |
||
| 39 | $content = ob_get_contents(); |
||
| 40 | ob_get_clean(); |
||
| 41 | |||
| 42 | return $content;*/ |
||
| 43 | |||
| 44 | //show iframe |
||
| 45 | return " <iframe src=\"" . DomainUtils::generateURL("admin/phpinfo") . "?no_design=true\"></iframe> "; |
||
| 46 | } |
||
| 65 |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.