| @@ 1743-1752 (lines=10) @@ | ||
| 1740 | return (bool)preg_match('/^\{\$[\w-]+(.[\w]+(-[\w]+)?){0,1}\}|[\d]+$/', $string); |
|
| 1741 | } |
|
| 1742 | ||
| 1743 | public static function injectAboutInformation(&$shell, array $details) |
|
| 1744 | { |
|
| 1745 | if (empty($details)) { |
|
| 1746 | return; |
|
| 1747 | } |
|
| 1748 | ||
| 1749 | foreach ($details as $key => $val) { |
|
| 1750 | $shell = str_replace('<!-- ' . strtoupper($key) . ' -->', addslashes($val), $shell); |
|
| 1751 | } |
|
| 1752 | } |
|
| 1753 | ||
| 1754 | public function __injectVarList(&$shell, $vars) |
|
| 1755 | { |
|
| @@ 656-665 (lines=10) @@ | ||
| 653 | } |
|
| 654 | } |
|
| 655 | ||
| 656 | public function __injectAboutInformation(&$shell, $details) |
|
| 657 | { |
|
| 658 | if (!is_array($details) || empty($details)) { |
|
| 659 | return; |
|
| 660 | } |
|
| 661 | ||
| 662 | foreach ($details as $key => $val) { |
|
| 663 | $shell = str_replace('<!-- ' . strtoupper($key) . ' -->', addslashes($val), $shell); |
|
| 664 | } |
|
| 665 | } |
|
| 666 | ||
| 667 | public function __injectFilters(&$shell, $elements) |
|
| 668 | { |
|