|
@@ 1297-1306 (lines=10) @@
|
| 1294 |
|
} |
| 1295 |
|
} |
| 1296 |
|
echo " $name: " . $_lang['upgraded'] . PHP_EOL; |
| 1297 |
|
} else { |
| 1298 |
|
if ($properties != null) { |
| 1299 |
|
$properties = mysqli_real_escape_string($conn, parseProperties($properties, true)); |
| 1300 |
|
} |
| 1301 |
|
if (!mysqli_query($sqlParser->conn, |
| 1302 |
|
"INSERT INTO $dbase.`" . $table_prefix . "site_plugins` (name,description,plugincode,properties,moduleguid,category,disabled) VALUES('$name','$desc','$plugin','$properties','$guid',$category,$disabled);")) { |
| 1303 |
|
echo mysqli_error($sqlParser->conn) . PHP_EOL; |
| 1304 |
|
|
| 1305 |
|
return; |
| 1306 |
|
} |
| 1307 |
|
echo " $name: " . $_lang['installed'] . PHP_EOL; |
| 1308 |
|
} |
| 1309 |
|
// add system events |
|
@@ 1365-1374 (lines=10) @@
|
| 1362 |
|
return; |
| 1363 |
|
} |
| 1364 |
|
echo " $name: " . $_lang['upgraded'] . PHP_EOL; |
| 1365 |
|
} else { |
| 1366 |
|
if ($properties != null) { |
| 1367 |
|
$properties = mysqli_real_escape_string($conn, parseProperties($properties, true)); |
| 1368 |
|
} |
| 1369 |
|
if (!mysqli_query($sqlParser->conn, |
| 1370 |
|
"INSERT INTO $dbase.`" . $table_prefix . "site_snippets` (name,description,snippet,properties,category) VALUES('$name','$desc','$snippet','$properties',$category);")) { |
| 1371 |
|
echo mysqli_error($sqlParser->conn) . PHP_EOL; |
| 1372 |
|
|
| 1373 |
|
return; |
| 1374 |
|
} |
| 1375 |
|
echo " $name: " . $_lang['installed'] . PHP_EOL; |
| 1376 |
|
} |
| 1377 |
|
} |