| @@ 577-580 (lines=4) @@ | ||
| 574 | while($row = mysqli_fetch_assoc($rs)) { |
|
| 575 | $props = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|
| 576 | if($row['description'] == $desc){ |
|
| 577 | if (! mysqli_query($sqlParser->conn, "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET plugincode='$plugin', description='$desc', properties='$props' WHERE id={$row['id']};")) { |
|
| 578 | echo "<p>" . mysqli_error($sqlParser->conn) . "</p>"; |
|
| 579 | return; |
|
| 580 | } |
|
| 581 | $insert = false; |
|
| 582 | } else { |
|
| 583 | if (!mysqli_query($sqlParser->conn, "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE id={$row['id']};")) { |
|
| @@ 582-587 (lines=6) @@ | ||
| 579 | return; |
|
| 580 | } |
|
| 581 | $insert = false; |
|
| 582 | } else { |
|
| 583 | if (!mysqli_query($sqlParser->conn, "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE id={$row['id']};")) { |
|
| 584 | echo "<p>".mysqli_error($sqlParser->conn)."</p>"; |
|
| 585 | return; |
|
| 586 | } |
|
| 587 | } |
|
| 588 | } |
|
| 589 | if($insert === true) { |
|
| 590 | $properties = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|
| @@ 1296-1301 (lines=6) @@ | ||
| 1293 | return; |
|
| 1294 | } |
|
| 1295 | $insert = false; |
|
| 1296 | } else { |
|
| 1297 | if (!mysqli_query($sqlParser->conn, "UPDATE $dbase.`" . $table_prefix . "site_plugins` SET disabled='1' WHERE id={$row['id']};")) { |
|
| 1298 | echo mysqli_error($sqlParser->conn).PHP_EOL; |
|
| 1299 | return; |
|
| 1300 | } |
|
| 1301 | } |
|
| 1302 | } |
|
| 1303 | if($insert === true) { |
|
| 1304 | $properties = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|