| @@ 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)); |
|
| @@ 1319-1325 (lines=7) @@ | ||
| 1316 | } |
|
| 1317 | } |
|
| 1318 | } |
|
| 1319 | if($insert === true) { |
|
| 1320 | $properties = mysqli_real_escape_string($conn, propUpdate($properties,$row['properties'])); |
|
| 1321 | 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);")) { |
|
| 1322 | echo mysqli_error($sqlParser->conn).PHP_EOL; |
|
| 1323 | return; |
|
| 1324 | } |
|
| 1325 | } |
|
| 1326 | echo " $name: " . $_lang['upgraded'] . PHP_EOL; |
|
| 1327 | } else { |
|
| 1328 | if ($properties != NULL ){ |
|