| @@ 551-554 (lines=4) @@ | ||
| 548 | $category = mysqli_real_escape_string($conn, $modulePlugin[6]); |
|
| 549 | $leg_names = ''; |
|
| 550 | $disabled = $modulePlugin[9]; |
|
| 551 | if(array_key_exists(7, $modulePlugin)) { |
|
| 552 | // parse comma-separated legacy names and prepare them for sql IN clause |
|
| 553 | $leg_names = "'" . implode("','", preg_split('/\s*,\s*/', mysqli_real_escape_string($conn, $modulePlugin[7]))) . "'"; |
|
| 554 | } |
|
| 555 | if (!file_exists($filecontent)) |
|
| 556 | echo "<p> $name: <span class=\"notok\">" . $_lang['unable_install_plugin'] . " '$filecontent' " . $_lang['not_found'] . ".</span></p>"; |
|
| 557 | else { |
|
| @@ 1281-1284 (lines=4) @@ | ||
| 1278 | $category = mysqli_real_escape_string($conn, $modulePlugin[6]); |
|
| 1279 | $leg_names = ''; |
|
| 1280 | $disabled = $modulePlugin[9]; |
|
| 1281 | if(array_key_exists(7, $modulePlugin)) { |
|
| 1282 | // parse comma-separated legacy names and prepare them for sql IN clause |
|
| 1283 | $leg_names = "'" . implode("','", preg_split('/\s*,\s*/', mysqli_real_escape_string($conn, $modulePlugin[7]))) . "'"; |
|
| 1284 | } |
|
| 1285 | if (!file_exists($filecontent)) |
|
| 1286 | echo " $name: " . $_lang['unable_install_plugin'] . " '$filecontent' " . $_lang['not_found'] . PHP_EOL; |
|
| 1287 | else { |
|