refactor: update pricing table and improve UI component references

This commit is contained in:
udo committed 2026-04-18 16:29:22 +00:00
1 parent 07e322961e
commit 072a5fa490
14 files changed
+29 -27

No files matched your search

+4 -1
View File
@@ -193,7 +193,10 @@ class Filebase
static function truncate_log($from_file, $lines = 128)
{
$lines = intval($lines);
return(shell_exec('tail -n '.$lines.' '.escapeshellarg($from_file).' > /tmp/trunc ; cp /tmp/trunc '.escapeshellarg($from_file)));
$tmp = tempnam(sys_get_temp_dir(), 'trunc_');
shell_exec('tail -n '.$lines.' '.escapeshellarg($from_file).' > '.escapeshellarg($tmp).' && cp '.escapeshellarg($tmp).' '.escapeshellarg($from_file));
@unlink($tmp);
return true;
}
static function json_lines($lines)