|
@@ 1419-1428 (lines=10) @@
|
| 1416 |
|
} |
| 1417 |
|
} |
| 1418 |
|
echo " $name: " . $_lang['upgraded'] . PHP_EOL; |
| 1419 |
|
} else { |
| 1420 |
|
if ($properties != null) { |
| 1421 |
|
$properties = mysqli_real_escape_string($conn, parseProperties($properties, true)); |
| 1422 |
|
} |
| 1423 |
|
if (!mysqli_query($sqlParser->conn, |
| 1424 |
|
"INSERT INTO $dbase.`" . $table_prefix . "site_plugins` (name,description,plugincode,properties,moduleguid,category,disabled) VALUES('$name','$desc','$plugin','$properties','$guid',$category,$disabled);")) { |
| 1425 |
|
echo mysqli_error($sqlParser->conn) . PHP_EOL; |
| 1426 |
|
|
| 1427 |
|
return; |
| 1428 |
|
} |
| 1429 |
|
echo " $name: " . $_lang['installed'] . PHP_EOL; |
| 1430 |
|
} |
| 1431 |
|
// add system events |
|
@@ 1487-1496 (lines=10) @@
|
| 1484 |
|
return; |
| 1485 |
|
} |
| 1486 |
|
echo " $name: " . $_lang['upgraded'] . PHP_EOL; |
| 1487 |
|
} else { |
| 1488 |
|
if ($properties != null) { |
| 1489 |
|
$properties = mysqli_real_escape_string($conn, parseProperties($properties, true)); |
| 1490 |
|
} |
| 1491 |
|
if (!mysqli_query($sqlParser->conn, |
| 1492 |
|
"INSERT INTO $dbase.`" . $table_prefix . "site_snippets` (name,description,snippet,properties,category) VALUES('$name','$desc','$snippet','$properties',$category);")) { |
| 1493 |
|
echo mysqli_error($sqlParser->conn) . PHP_EOL; |
| 1494 |
|
|
| 1495 |
|
return; |
| 1496 |
|
} |
| 1497 |
|
echo " $name: " . $_lang['installed'] . PHP_EOL; |
| 1498 |
|
} |
| 1499 |
|
} |