| @@ 1303-1309 (lines=7) @@ | ||
| 1300 | } |
|
| 1301 | } |
|
| 1302 | } |
|
| 1303 | if($insert === true) { |
|
| 1304 | $properties = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|
| 1305 | 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);")) { |
|
| 1306 | echo mysqli_error($sqlParser->conn).PHP_EOL; |
|
| 1307 | return; |
|
| 1308 | } |
|
| 1309 | } |
|
| 1310 | echo " $name: " . $_lang['upgraded'] . PHP_EOL; |
|
| 1311 | } else { |
|
| 1312 | if ($properties != NULL ){ |
|
| @@ 589-595 (lines=7) @@ | ||
| 586 | } |
|
| 587 | } |
|
| 588 | } |
|
| 589 | if($insert === true) { |
|
| 590 | $properties = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|
| 591 | 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);")) { |
|
| 592 | echo "<p>".mysqli_error($sqlParser->conn)."</p>"; |
|
| 593 | return; |
|
| 594 | } |
|
| 595 | } |
|
| 596 | echo "<p> $name: <span class=\"ok\">" . $_lang['upgraded'] . "</span></p>"; |
|
| 597 | } else { |
|
| 598 | $properties = mysqli_real_escape_string($conn, parseProperties($properties, true)); |
|