Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\Prototype\SuperuserData;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/** Cadangan data. Tahap tampilan: semua aksi hanya menampilkan notifikasi. */
|
||||
class CadanganController extends Controller
|
||||
{
|
||||
private const PESAN = 'Tampilan prototipe: perubahan belum disimpan karena basis data belum dibangun.';
|
||||
|
||||
public function index(): View
|
||||
{
|
||||
$riwayat = SuperuserData::cadangan();
|
||||
$berhasil = $riwayat->where('status', 'Berhasil');
|
||||
|
||||
return view('superuser.cadangan.index', [
|
||||
'riwayat' => $riwayat,
|
||||
'jumlah' => $berhasil->count(),
|
||||
'terakhir' => $berhasil->first(),
|
||||
'totalMb' => round($berhasil->sum('ukuran'), 1),
|
||||
'jadwal' => SuperuserData::jadwalCadangan(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function store(): RedirectResponse
|
||||
{
|
||||
return $this->kembali('Permintaan cadangan manual diterima.');
|
||||
}
|
||||
|
||||
public function jadwal(Request $request): RedirectResponse
|
||||
{
|
||||
$request->validate([
|
||||
'frekuensi' => ['required', 'in:harian,mingguan,bulanan'],
|
||||
'jam' => ['required', 'date_format:H:i'],
|
||||
'retensi' => ['required', 'integer', 'between:1,365'],
|
||||
], [], ['frekuensi' => 'frekuensi', 'jam' => 'jam', 'retensi' => 'masa simpan']);
|
||||
|
||||
return $this->kembali('Jadwal cadangan berhasil divalidasi.');
|
||||
}
|
||||
|
||||
public function pulihkan(string $id): RedirectResponse
|
||||
{
|
||||
$cadangan = $this->find($id);
|
||||
abort_if($cadangan['status'] !== 'Berhasil', 404);
|
||||
|
||||
return $this->kembali("Permintaan pemulihan dari {$cadangan['berkas']} diterima.");
|
||||
}
|
||||
|
||||
public function destroy(string $id): RedirectResponse
|
||||
{
|
||||
$cadangan = $this->find($id);
|
||||
|
||||
return $this->kembali("Cadangan {$cadangan['berkas']} berhasil dihapus.");
|
||||
}
|
||||
|
||||
/** @return array<string, mixed> */
|
||||
private function find(string $id): array
|
||||
{
|
||||
$cadangan = SuperuserData::cadangan()->firstWhere('id', $id);
|
||||
abort_if($cadangan === null, 404);
|
||||
|
||||
return $cadangan;
|
||||
}
|
||||
|
||||
private function kembali(string $pesan): RedirectResponse
|
||||
{
|
||||
return redirect()->route('superuser.cadangan')->with('info', $pesan.' '.self::PESAN);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Enums\Role;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\Prototype\Sample;
|
||||
use App\Support\Prototype\SuperuserData;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
class DashboardController extends Controller
|
||||
{
|
||||
public function __invoke(Request $request): View
|
||||
{
|
||||
$role = Role::Superuser;
|
||||
$user = $request->user()->loadMissing($role->profileRelation());
|
||||
$profile = $user->{$role->profileRelation()};
|
||||
|
||||
// Label => nilai; kolom kosong dilewati.
|
||||
$details = array_map(strval(...), array_filter([
|
||||
'Username' => $user->username,
|
||||
$role->identifierLabel() => $profile?->nip,
|
||||
'Jabatan' => $profile?->jabatan,
|
||||
'Unit kerja' => $profile?->unit_kerja,
|
||||
], fn (mixed $value): bool => $value !== null));
|
||||
|
||||
$pengguna = SuperuserData::pengguna();
|
||||
$aktivitas = SuperuserData::aktivitas();
|
||||
$cadangan = SuperuserData::cadangan();
|
||||
|
||||
$perRole = collect(SuperuserData::ROLES)->mapWithKeys(fn (string $r): array => [$r => $pengguna->where('role', $r)->count()])->filter();
|
||||
$perHari = $aktivitas
|
||||
->groupBy(fn (array $a): string => substr($a['waktu'], 0, 10))
|
||||
->map->count()
|
||||
->sortKeys();
|
||||
|
||||
return view('superuser.dashboard', [
|
||||
'user' => $user,
|
||||
'details' => $details,
|
||||
'totalAkun' => $pengguna->count(),
|
||||
'akunAktif' => $pengguna->where('aktif', true)->count(),
|
||||
'akunNonaktif' => $pengguna->where('aktif', false)->count(),
|
||||
'totalAktivitas' => $aktivitas->count(),
|
||||
'gagalMasuk' => $aktivitas->where('aksi', 'Gagal masuk')->count(),
|
||||
'sesiAktif' => SuperuserData::sesiLain()->count() + 1,
|
||||
'cadanganTerakhir' => $cadangan->firstWhere('status', 'Berhasil'),
|
||||
'roleLabels' => $perRole->keys()->all(),
|
||||
'roleData' => $perRole->values()->all(),
|
||||
'hariLabels' => $perHari->keys()->map(fn (string $d): string => Carbon::parse($d)->locale('id')->isoFormat('D MMM'))->all(),
|
||||
'hariData' => $perHari->values()->all(),
|
||||
'aktivitasTerbaru' => $aktivitas->take(5),
|
||||
'pengumuman' => Sample::pengumuman()->where('status', 'Terbit')->sortByDesc('tanggal')->take(3)->values(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\Prototype\SuperuserData;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
class HakAksesController extends Controller
|
||||
{
|
||||
public function __invoke(): View
|
||||
{
|
||||
return view('superuser.hak-akses.index', [
|
||||
'roles' => SuperuserData::ROLES,
|
||||
'groups' => SuperuserData::hakAkses(),
|
||||
'kode' => SuperuserData::kodeAkses(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
/** Ringkasan kondisi sistem dari konfigurasi dan pemeriksaan sederhana pada server ini. */
|
||||
class KesehatanSistemController extends Controller
|
||||
{
|
||||
public function __invoke(): View
|
||||
{
|
||||
$total = @disk_total_space(storage_path());
|
||||
$bebas = @disk_free_space(storage_path());
|
||||
$terpakai = ($total && $bebas !== false) ? $total - $bebas : null;
|
||||
$gb = fn (float|int $bytes): float => round($bytes / 1024 ** 3, 1);
|
||||
|
||||
$layanan = [
|
||||
['nama' => 'Basis data', 'nilai' => (string) config('database.default'), 'icon' => 'circle-stack'],
|
||||
['nama' => 'Cache', 'nilai' => (string) config('cache.default'), 'icon' => 'cube'],
|
||||
['nama' => 'Antrean tugas', 'nilai' => (string) config('queue.default'), 'icon' => 'queue-list'],
|
||||
['nama' => 'Penyimpanan sesi', 'nilai' => (string) config('session.driver'), 'icon' => 'finger-print'],
|
||||
['nama' => 'Surel keluar', 'nilai' => (string) config('mail.default'), 'icon' => 'document-text'],
|
||||
];
|
||||
|
||||
$periksa = [
|
||||
['nama' => 'Mode debug nonaktif', 'ok' => ! config('app.debug'), 'catatan' => config('app.debug') ? 'APP_DEBUG menyala; matikan di produksi.' : 'APP_DEBUG mati.'],
|
||||
['nama' => 'Kunci aplikasi terisi', 'ok' => filled(config('app.key')), 'catatan' => filled(config('app.key')) ? 'APP_KEY tersedia.' : 'Jalankan php artisan key:generate.'],
|
||||
['nama' => 'Folder storage dapat ditulis', 'ok' => is_writable(storage_path()), 'catatan' => storage_path()],
|
||||
['nama' => 'Folder bootstrap/cache dapat ditulis', 'ok' => is_writable(base_path('bootstrap/cache')), 'catatan' => base_path('bootstrap/cache')],
|
||||
['nama' => 'Lingkungan produksi', 'ok' => app()->isProduction(), 'catatan' => 'Lingkungan saat ini: '.app()->environment().'.'],
|
||||
];
|
||||
|
||||
return view('superuser.kesehatan-sistem.index', [
|
||||
'versi' => [
|
||||
'Laravel' => app()->version(),
|
||||
'PHP' => PHP_VERSION,
|
||||
'Lingkungan' => app()->environment(),
|
||||
'Zona waktu' => (string) config('app.timezone'),
|
||||
],
|
||||
'layanan' => $layanan,
|
||||
'periksa' => $periksa,
|
||||
'disk' => $terpakai === null ? null : ['terpakai' => $gb($terpakai), 'total' => $gb($total)],
|
||||
'lolos' => collect($periksa)->where('ok', true)->count(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Http\Controllers\Prototype\ResourceController;
|
||||
use App\Support\Prototype\SuperuserData;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
/** Log aktivitas: hanya baca. */
|
||||
class LogAktivitasController extends ResourceController
|
||||
{
|
||||
protected function rows(): Collection
|
||||
{
|
||||
return SuperuserData::aktivitas();
|
||||
}
|
||||
|
||||
protected function routeBase(): string
|
||||
{
|
||||
return 'superuser.log-aktivitas';
|
||||
}
|
||||
|
||||
protected function names(): array
|
||||
{
|
||||
return [
|
||||
'singular' => 'Aktivitas',
|
||||
'plural' => 'Log aktivitas',
|
||||
'description' => 'Jejak audit tindakan penting pengguna pada sistem, dari yang terbaru.',
|
||||
];
|
||||
}
|
||||
|
||||
protected function abilities(): array
|
||||
{
|
||||
return ['create' => false, 'show' => false, 'edit' => false, 'delete' => false];
|
||||
}
|
||||
|
||||
protected function perPage(): int
|
||||
{
|
||||
return 15;
|
||||
}
|
||||
|
||||
protected function search(): array
|
||||
{
|
||||
return ['deskripsi', 'pengguna', 'ip', 'aksi'];
|
||||
}
|
||||
|
||||
protected function filters(): array
|
||||
{
|
||||
$rows = $this->rows();
|
||||
|
||||
return [
|
||||
['name' => 'aksi', 'label' => 'Jenis aksi', 'options' => $rows->pluck('aksi')->unique()->sort()->mapWithKeys(fn (string $a): array => [$a => $a])->all()],
|
||||
['name' => 'pengguna', 'label' => 'Pengguna', 'options' => $rows->pluck('pengguna')->unique()->sort()->mapWithKeys(fn (string $p): array => [$p => $p])->all()],
|
||||
];
|
||||
}
|
||||
|
||||
protected function columns(): array
|
||||
{
|
||||
return [
|
||||
['label' => 'Waktu', 'key' => 'waktu'],
|
||||
['label' => 'Pengguna', 'key' => 'pengguna'],
|
||||
['label' => 'Aksi', 'key' => 'aksi', 'badge' => fn (array $r): string => match ($r['aksi']) {
|
||||
'Masuk' => 'success',
|
||||
'Gagal masuk' => 'danger',
|
||||
'Ubah data', 'Input nilai' => 'gold',
|
||||
'Terbitkan' => 'accent',
|
||||
default => 'neutral',
|
||||
}],
|
||||
['label' => 'Deskripsi', 'key' => 'deskripsi'],
|
||||
['label' => 'Alamat IP', 'key' => 'ip'],
|
||||
];
|
||||
}
|
||||
|
||||
protected function fields(?array $row): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\Prototype\SuperuserData;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class PengaturanController extends Controller
|
||||
{
|
||||
public function show(Request $request): View
|
||||
{
|
||||
$tabs = SuperuserData::pengaturan();
|
||||
$tab = (string) $request->query('tab');
|
||||
|
||||
if (! isset($tabs[$tab])) {
|
||||
$tab = array_key_first($tabs);
|
||||
}
|
||||
|
||||
return view('superuser.pengaturan.index', ['tabs' => $tabs, 'tab' => $tab]);
|
||||
}
|
||||
|
||||
/** Tahap tampilan: formulir hanya divalidasi, belum disimpan. */
|
||||
public function update(Request $request): RedirectResponse
|
||||
{
|
||||
$tabs = SuperuserData::pengaturan();
|
||||
$tab = (string) $request->input('tab');
|
||||
abort_unless(isset($tabs[$tab]), 404);
|
||||
|
||||
$rules = [];
|
||||
$names = [];
|
||||
$checkboxes = [];
|
||||
|
||||
foreach ($tabs[$tab]['fields'] as $field) {
|
||||
if ($field['type'] === 'checkbox') {
|
||||
$checkboxes[$field['name']] = $request->boolean($field['name']);
|
||||
$rules[$field['name']] = ['boolean'];
|
||||
} else {
|
||||
$rules[$field['name']] = $field['rules'];
|
||||
}
|
||||
$names[$field['name']] = Str::lower($field['label']);
|
||||
}
|
||||
|
||||
$request->merge($checkboxes);
|
||||
$request->validate($rules, [], $names);
|
||||
|
||||
$label = Str::lower($tabs[$tab]['label']);
|
||||
|
||||
return redirect()->route('superuser.pengaturan', ['tab' => $tab])
|
||||
->with('info', "Pengaturan {$label} berhasil divalidasi. Tampilan prototipe: perubahan belum disimpan karena basis data belum dibangun.");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Http\Controllers\Prototype\ResourceController;
|
||||
use App\Support\Prototype\SuperuserData;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class PenggunaController extends ResourceController
|
||||
{
|
||||
protected function rows(): Collection
|
||||
{
|
||||
return SuperuserData::pengguna();
|
||||
}
|
||||
|
||||
protected function routeBase(): string
|
||||
{
|
||||
return 'superuser.pengguna';
|
||||
}
|
||||
|
||||
protected function keyName(): string
|
||||
{
|
||||
return 'username';
|
||||
}
|
||||
|
||||
protected function names(): array
|
||||
{
|
||||
return [
|
||||
'singular' => 'Pengguna',
|
||||
'plural' => 'Pengguna',
|
||||
'description' => 'Kelola akun semua peran: tambah, ubah data, aktifkan atau nonaktifkan, dan atur ulang kata sandi.',
|
||||
];
|
||||
}
|
||||
|
||||
protected function search(): array
|
||||
{
|
||||
return ['nama', 'username', 'email'];
|
||||
}
|
||||
|
||||
protected function filters(): array
|
||||
{
|
||||
return [
|
||||
['name' => 'role', 'label' => 'Peran', 'options' => array_combine(SuperuserData::ROLES, SuperuserData::ROLES)],
|
||||
['name' => 'status', 'label' => 'Status', 'options' => ['Aktif' => 'Aktif', 'Nonaktif' => 'Nonaktif']],
|
||||
];
|
||||
}
|
||||
|
||||
protected function columns(): array
|
||||
{
|
||||
return [
|
||||
['label' => 'Nama', 'key' => 'nama'],
|
||||
['label' => 'Username', 'key' => 'username'],
|
||||
['label' => 'Peran', 'key' => 'role', 'badge' => fn (array $r): string => SuperuserData::ROLE_TONE[$r['role']] ?? 'neutral'],
|
||||
['label' => 'Email', 'key' => 'email'],
|
||||
['label' => 'Status', 'key' => 'status', 'badge' => fn (array $r): string => $r['aktif'] ? 'success' : 'danger'],
|
||||
['label' => 'Masuk terakhir', 'key' => 'terakhir'],
|
||||
];
|
||||
}
|
||||
|
||||
protected function fields(?array $row): array
|
||||
{
|
||||
$editing = $row !== null;
|
||||
|
||||
return [
|
||||
['name' => 'nama', 'label' => 'Nama lengkap', 'section' => 'Identitas', 'span' => 'full', 'rules' => ['required', 'string', 'max:120']],
|
||||
['name' => 'username', 'label' => 'Username', 'section' => 'Identitas', 'hint' => 'Huruf, angka, titik, garis bawah, atau tanda hubung.', 'rules' => ['required', 'string', 'max:40', 'regex:/^[A-Za-z0-9._-]+$/']],
|
||||
['name' => 'email', 'label' => 'Email', 'type' => 'email', 'section' => 'Identitas', 'rules' => ['required', 'email', 'max:120']],
|
||||
['name' => 'role', 'label' => 'Peran', 'type' => 'select', 'section' => 'Akun', 'options' => array_combine(SuperuserData::ROLES, SuperuserData::ROLES), 'rules' => ['required', 'in:'.implode(',', SuperuserData::ROLES)]],
|
||||
['name' => 'password', 'label' => 'Kata sandi', 'type' => 'password', 'section' => 'Akun', 'optional' => $editing, 'hint' => $editing ? 'Kosongkan bila tidak diubah.' : 'Minimal 8 karakter, berisi huruf dan angka.', 'rules' => ['required', 'string', 'min:8']],
|
||||
['name' => 'aktif', 'label' => 'Akun aktif dan boleh masuk', 'type' => 'checkbox', 'section' => 'Akun', 'default' => true, 'span' => 'full'],
|
||||
];
|
||||
}
|
||||
|
||||
protected function rowActions(array $row): array
|
||||
{
|
||||
return [['label' => 'Kata sandi', 'href' => route('superuser.pengguna.password', $row['username']), 'icon' => 'key']];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\Prototype\SuperuserData;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Validation\Rules\Password;
|
||||
|
||||
/** Atur ulang kata sandi akun lain (tahap tampilan: hanya validasi). */
|
||||
class PenggunaPasswordController extends Controller
|
||||
{
|
||||
public function edit(string $record): View
|
||||
{
|
||||
return view('superuser.pengguna.password', ['pengguna' => $this->find($record)]);
|
||||
}
|
||||
|
||||
public function update(Request $request, string $record): RedirectResponse
|
||||
{
|
||||
$pengguna = $this->find($record);
|
||||
|
||||
$request->validate([
|
||||
'password' => ['required', 'confirmed', Password::min(8)->letters()->numbers()],
|
||||
], [], ['password' => 'kata sandi baru']);
|
||||
|
||||
return redirect()->route('superuser.pengguna.index')
|
||||
->with('info', "Kata sandi {$pengguna['nama']} berhasil divalidasi. Tampilan prototipe: perubahan belum disimpan karena basis data belum dibangun.");
|
||||
}
|
||||
|
||||
/** @return array<string, mixed> */
|
||||
private function find(string $record): array
|
||||
{
|
||||
$pengguna = SuperuserData::pengguna()->firstWhere('username', $record);
|
||||
abort_if($pengguna === null, 404);
|
||||
|
||||
return $pengguna;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Superuser;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Support\Prototype\SuperuserData;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
/** Sesi login aktif. Tahap tampilan: mengakhiri sesi hanya menampilkan notifikasi. */
|
||||
class SesiAktifController extends Controller
|
||||
{
|
||||
public function index(Request $request): View
|
||||
{
|
||||
$user = $request->user();
|
||||
|
||||
// Sesi ini dibuat dari permintaan nyata; sesi lain berupa data contoh.
|
||||
$ini = [
|
||||
'id' => 'sesi-ini',
|
||||
'nama' => $user->name,
|
||||
'username' => $user->username,
|
||||
'role' => $user->role->label(),
|
||||
'perangkat' => $this->perangkat((string) $request->userAgent()),
|
||||
'ip' => (string) $request->ip(),
|
||||
'lokasi' => '-',
|
||||
'mulai' => now()->format('Y-m-d H:i'),
|
||||
'terakhir' => now()->format('Y-m-d H:i'),
|
||||
'saat_ini' => true,
|
||||
];
|
||||
|
||||
return view('superuser.sesi-aktif.index', [
|
||||
'sesi' => SuperuserData::sesiLain()->prepend($ini),
|
||||
]);
|
||||
}
|
||||
|
||||
public function destroy(string $id): RedirectResponse
|
||||
{
|
||||
$sesi = SuperuserData::sesiLain()->firstWhere('id', $id);
|
||||
abort_if($sesi === null, 404);
|
||||
|
||||
return redirect()->route('superuser.sesi-aktif')
|
||||
->with('info', "Sesi {$sesi['nama']} pada {$sesi['perangkat']} berhasil diakhiri. Tampilan prototipe: perubahan belum disimpan karena basis data belum dibangun.");
|
||||
}
|
||||
|
||||
public function destroyAll(): RedirectResponse
|
||||
{
|
||||
return redirect()->route('superuser.sesi-aktif')
|
||||
->with('info', 'Semua sesi lain berhasil diakhiri. Tampilan prototipe: perubahan belum disimpan karena basis data belum dibangun.');
|
||||
}
|
||||
|
||||
private function perangkat(string $agent): string
|
||||
{
|
||||
$browser = match (true) {
|
||||
str_contains($agent, 'Edg/') => 'Edge',
|
||||
str_contains($agent, 'Firefox/') => 'Firefox',
|
||||
str_contains($agent, 'Chrome/') => 'Chrome',
|
||||
str_contains($agent, 'Safari/') => 'Safari',
|
||||
default => 'Peramban',
|
||||
};
|
||||
$os = match (true) {
|
||||
str_contains($agent, 'Windows') => 'Windows',
|
||||
str_contains($agent, 'Android') => 'Android',
|
||||
str_contains($agent, 'iPhone'), str_contains($agent, 'iPad') => 'iOS',
|
||||
str_contains($agent, 'Mac OS') => 'macOS',
|
||||
str_contains($agent, 'Linux') => 'Linux',
|
||||
default => 'perangkat tidak dikenal',
|
||||
};
|
||||
|
||||
return "{$browser} di {$os}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user