| @@ 1243-1246 (lines=4) @@ | ||
| 1240 | $category = mysqli_real_escape_string($conn, $modulePlugin[6]); |
|
| 1241 | $leg_names = ''; |
|
| 1242 | $disabled = $modulePlugin[9]; |
|
| 1243 | if (array_key_exists(7, $modulePlugin)) { |
|
| 1244 | // parse comma-separated legacy names and prepare them for sql IN clause |
|
| 1245 | $leg_names = "'" . implode("','", |
|
| 1246 | preg_split('/\s*,\s*/', mysqli_real_escape_string($conn, $modulePlugin[7]))) . "'"; |
|
| 1247 | } |
|
| 1248 | if (!file_exists($filecontent)) { |
|
| 1249 | echo " $name: " . $_lang['unable_install_plugin'] . " '$filecontent' " . $_lang['not_found'] . PHP_EOL; |
|
| @@ 648-651 (lines=4) @@ | ||
| 645 | $category = mysqli_real_escape_string($conn, $modulePlugin[6]); |
|
| 646 | $leg_names = ''; |
|
| 647 | $disabled = $modulePlugin[9]; |
|
| 648 | if (array_key_exists(7, $modulePlugin)) { |
|
| 649 | // parse comma-separated legacy names and prepare them for sql IN clause |
|
| 650 | $leg_names = "'" . implode( |
|
| 651 | "','", |
|
| 652 | preg_split('/\s*,\s*/', mysqli_real_escape_string($conn, $modulePlugin[7])) |
|
| 653 | ) . "'"; |
|
| 654 | } |
|