| @@ 665-674 (lines=10) @@ | ||
| 662 | $shell = str_replace('<!-- FILTERS -->', "'" . implode("'," . PHP_EOL . "\t\t\t\t'", $elements) . "'", $shell); |
|
| 663 | } |
|
| 664 | ||
| 665 | public function __injectAboutInformation(&$shell, $details) |
|
| 666 | { |
|
| 667 | if (!is_array($details) || empty($details)) { |
|
| 668 | return; |
|
| 669 | } |
|
| 670 | ||
| 671 | foreach ($details as $key => $val) { |
|
| 672 | $shell = str_replace('<!-- ' . strtoupper($key) . ' -->', addslashes($val), $shell); |
|
| 673 | } |
|
| 674 | } |
|
| 675 | } |
|
| 676 | ||
| @@ 1494-1503 (lines=10) @@ | ||
| 1491 | $shell = str_replace($placeholder, trim($string), $shell); |
|
| 1492 | } |
|
| 1493 | ||
| 1494 | public static function injectAboutInformation(&$shell, array $details) |
|
| 1495 | { |
|
| 1496 | if (empty($details)) { |
|
| 1497 | return; |
|
| 1498 | } |
|
| 1499 | ||
| 1500 | foreach ($details as $key => $val) { |
|
| 1501 | $shell = str_replace('<!-- ' . strtoupper($key) . ' -->', addslashes($val), $shell); |
|
| 1502 | } |
|
| 1503 | } |
|
| 1504 | ||
| 1505 | public function __injectIncludedElements(&$shell, $elements) |
|
| 1506 | { |
|