Update export_log.php

This commit is contained in:
jakani24
2024-01-21 17:41:09 +01:00
parent 68a050fc7e
commit a676a9acf0

View File

@@ -66,6 +66,7 @@ if($perms[2]!=="1"){
if ($conn->connect_error) { if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error); die("Connection failed: " . $conn->connect_error);
} }
$last_id=-1;
$export_file = fopen("/var/www/html/export/cyberhex_log_export.vsc", 'w'); $export_file = fopen("/var/www/html/export/cyberhex_log_export.vsc", 'w');
fwrite($export_file,"id;loglevel;logtext;machine_id;time\r\n"); fwrite($export_file,"id;loglevel;logtext;machine_id;time\r\n");
while($num_of_log_entrys!=0){ while($num_of_log_entrys!=0){