Migracia na 6.0

- oprava chyb v log
- welcome.blade url uprava
This commit is contained in:
Jaroslav Drzik
2020-03-25 14:52:08 +01:00
parent fd43aef235
commit 575b55bdc2
86 changed files with 98404 additions and 1928 deletions

6
app/Http/Controllers/Logging.php Normal file → Executable file
View File

@@ -8,7 +8,7 @@ use Illuminate\Support\Facades\DB;
class Logging extends Controller
{
private $_items = [ 'netstat_sent' => 'i', 'netstat_recv' => 'i', 'memory_free' => 'f', 'memory_total' => 'f', 'memory_used' => 'f', 'disk_free' => 'B', 'disk_percent' => 'f', 'disk_used' => 'B', 'disk_total' => 'B', 'processes' => 'i', 'temp' => 'i', 'load' => 'f', 'username' =>'s', 'computer' => 's'];
public static $_items = [ 'netstat_sent' => 'i', 'netstat_recv' => 'i', 'memory_free' => 'f', 'memory_total' => 'f', 'memory_used' => 'f', 'disk_free' => 'B', 'disk_percent' => 'f', 'disk_used' => 'B', 'disk_total' => 'B', 'processes' => 'i', 'temp' => 'i', 'load' => 'f', 'username' =>'s', 'computer' => 's'];
private $_values = [];
private $_ucache = [];
@@ -46,7 +46,7 @@ class Logging extends Controller
$id = DB::table('computers')->insertGetId(['computer' => $comp]);
$this->_ccache[$comp] = $id;
\apc_store('computers',$this->_ccache);
\apcu_store('computers',$this->_ccache);
return $id;
}
@@ -97,7 +97,7 @@ class Logging extends Controller
}
}
foreach ($this->_items as $k => $t) {
foreach (self::$_items as $k => $t) {
$val = $this->_values[$k];
if ($t == 's') continue;