| @@ 1409-1415 (lines=7) @@ | ||
| 1406 | } |
|
| 1407 | } |
|
| 1408 | } |
|
| 1409 | if ($insert === true) { |
|
| 1410 | $properties = mysqli_real_escape_string($conn, propUpdate($properties, $row['properties'])); |
|
| 1411 | if (!mysqli_query($sqlParser->conn, |
|
| 1412 | "INSERT INTO $dbase.`" . $table_prefix . "site_plugins` (name,description,plugincode,properties,moduleguid,disabled,category) VALUES('$name','$desc','$plugin','$properties','$guid','0',$category);")) { |
|
| 1413 | echo mysqli_error($sqlParser->conn) . PHP_EOL; |
|
| 1414 | ||
| 1415 | return; |
|
| 1416 | } |
|
| 1417 | } |
|
| 1418 | echo " $name: " . $_lang['upgraded'] . PHP_EOL; |
|
| @@ 572-578 (lines=7) @@ | ||
| 569 | } |
|
| 570 | } |
|
| 571 | } |
|
| 572 | if($insert === true) { |
|
| 573 | $properties = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|
| 574 | if(!mysqli_query($sqlParser->conn, "INSERT INTO $dbase.`".$table_prefix."site_plugins` (name,description,plugincode,properties,moduleguid,disabled,category) VALUES('$name','$desc','$plugin','$properties','$guid','0',$category);")) { |
|
| 575 | echo "<p>".mysqli_error($sqlParser->conn)."</p>"; |
|
| 576 | return; |
|
| 577 | } |
|
| 578 | } |
|
| 579 | echo "<p> $name: <span class=\"ok\">" . $_lang['upgraded'] . "</span></p>"; |
|
| 580 | } else { |
|
| 581 | $properties = mysqli_real_escape_string($conn, parseProperties($properties, true)); |
|