| @@ 1400-1405 (lines=6) @@ | ||
| 1397 | return; |
|
| 1398 | } |
|
| 1399 | $insert = false; |
|
| 1400 | } else { |
|
| 1401 | if (!mysqli_query($sqlParser->conn, |
|
| 1402 | "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE id={$row['id']};")) { |
|
| 1403 | echo mysqli_error($sqlParser->conn) . PHP_EOL; |
|
| 1404 | ||
| 1405 | return; |
|
| 1406 | } |
|
| 1407 | } |
|
| 1408 | } |
|
| @@ 560-563 (lines=4) @@ | ||
| 557 | while($row = mysqli_fetch_assoc($rs)) { |
|
| 558 | $props = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|
| 559 | if($row['description'] == $desc){ |
|
| 560 | if (! mysqli_query($sqlParser->conn, "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET plugincode='$plugin', description='$desc', properties='$props' WHERE id={$row['id']};")) { |
|
| 561 | echo "<p>" . mysqli_error($sqlParser->conn) . "</p>"; |
|
| 562 | return; |
|
| 563 | } |
|
| 564 | $insert = false; |
|
| 565 | } else { |
|
| 566 | if (!mysqli_query($sqlParser->conn, "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE id={$row['id']};")) { |
|
| @@ 565-570 (lines=6) @@ | ||
| 562 | return; |
|
| 563 | } |
|
| 564 | $insert = false; |
|
| 565 | } else { |
|
| 566 | if (!mysqli_query($sqlParser->conn, "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE id={$row['id']};")) { |
|
| 567 | echo "<p>".mysqli_error($sqlParser->conn)."</p>"; |
|
| 568 | return; |
|
| 569 | } |
|
| 570 | } |
|
| 571 | } |
|
| 572 | if($insert === true) { |
|
| 573 | $properties = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|