From c200f2a4c272d150d93b0cb962de0463a5688452 Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Fri, 31 Aug 2018 00:25:13 +0200 Subject: send out of pushed updates --- src/logexternal.php | 2 ++ tools/boca-submit-log | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/logexternal.php b/src/logexternal.php index 36918bf..114c1d9 100644 --- a/src/logexternal.php +++ b/src/logexternal.php @@ -51,6 +51,8 @@ if(isset($_POST["comp"]) && $_POST["comp"] != "" ) { @file_put_contents("/var/www/boca/src/private/logexternal/" . $secret[0] . '.' . $name . '.logfs', "\nbegin(" . time() . ',' . date(DATE_RFC2822) . ")\n" . base64_decode($_POST['logfs']), LOCK_EX | FILE_APPEND); if(isset($_POST['loglshw'])) @file_put_contents("/var/www/boca/src/private/logexternal/" . $secret[0] . '.' . $name . '.loglshw', "\nbegin(" . time() . ',' . date(DATE_RFC2822) . ")\n" . base64_decode($_POST['loglshw']), LOCK_EX | FILE_APPEND); + if(isset($_POST['logupd'])) + @file_put_contents("/var/www/boca/src/private/logexternal/" . $secret[0] . '.' . $name . '.logupd', "\nbegin(" . time() . ',' . date(DATE_RFC2822) . ")\n" . base64_decode($_POST['logupd']), LOCK_EX | FILE_APPEND); if(isset($_POST['logkfs'])) @file_put_contents("/var/www/boca/src/private/logexternal/" . $secret[0] . '.' . $name . '.logkfs', "\nbegin(" . time() . ',' . date(DATE_RFC2822) . ")\n" . base64_decode($_POST['logkfs']), LOCK_EX | FILE_APPEND); if(isset($_POST['logkeys'])) diff --git a/tools/boca-submit-log b/tools/boca-submit-log index 1c4b142..40a6fb7 100644 --- a/tools/boca-submit-log +++ b/tools/boca-submit-log @@ -28,7 +28,7 @@ for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do [ -f /root/.logsession ] || touch /root/.logsession diff /root/.logsession /root/.logsession.tmp > /root/.logsession.diff 2>/dev/null res=$? - lshw | > /root/.loglshw.tmp + lshw > /root/.loglshw.tmp 2>/dev/null [ -f /root/.loglshw ] || touch /root/.loglshw diff /root/.loglshw /root/.loglshw.tmp > /root/.loglshw.diff 2>/dev/null reslshw=$? -- cgit v1.2.3