| @@ 1265-1268 (lines=4) @@ | ||
| 1262 | $category = mysqli_real_escape_string($conn, $modulePlugin[6]); |
|
| 1263 | $leg_names = ''; |
|
| 1264 | $disabled = $modulePlugin[9]; |
|
| 1265 | if(array_key_exists(7, $modulePlugin)) { |
|
| 1266 | // parse comma-separated legacy names and prepare them for sql IN clause |
|
| 1267 | $leg_names = "'" . implode("','", preg_split('/\s*,\s*/', mysqli_real_escape_string($conn, $modulePlugin[7]))) . "'"; |
|
| 1268 | } |
|
| 1269 | if (!file_exists($filecontent)) |
|
| 1270 | echo " $name: " . $_lang['unable_install_plugin'] . " '$filecontent' " . $_lang['not_found'] . PHP_EOL; |
|
| 1271 | else { |
|
| @@ 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 { |
|