Tul xxx Tul
User / IP
:
216.73.216.146
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
ventas
/
app
/
Http
/
Controllers
/
Viewing: SyncPanelController.php
<?php namespace App\Http\Controllers; use App\Services\SyncService; use App\Models\SyncQueue; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class SyncPanelController extends Controller { protected $syncService; public function __construct(SyncService $syncService) { $this->syncService = $syncService; } public function index() { $stats = $this->syncService->getStats(); $pendingItems = SyncQueue::pending() ->orderBy('created_at', 'desc') ->limit(50) ->get(); $failedItems = SyncQueue::failed() ->orderBy('updated_at', 'desc') ->limit(20) ->get(); $recentLogs = DB::table('sync_logs') ->orderBy('created_at', 'desc') ->limit(20) ->get(); $serverConfig = [ 'url' => config('sync.server_url'), 'configured' => !empty(config('sync.server_url')), 'auto_sync' => config('sync.auto_sync'), ]; return view('sync.index', compact('stats', 'pendingItems', 'failedItems', 'recentLogs', 'serverConfig')); } public function checkServer() { $status = $this->syncService->getServerStatus(); return response()->json($status); } public function syncNow() { $results = $this->syncService->fullSync(); return response()->json([ 'success' => true, 'results' => $results, 'message' => "Sincronizados: {$results['push']['synced']}, Fallidos: {$results['push']['failed']}", ]); } public function retryFailed() { $results = $this->syncService->retryFailed(); return response()->json([ 'success' => true, 'results' => $results, ]); } public function clearSynced() { $deleted = $this->syncService->clearSynced(); return response()->json([ 'success' => true, 'deleted' => $deleted, ]); } public function configure(Request $request) { $request->validate([ 'server_url' => 'nullable|url', 'api_key' => 'nullable|string', ]); $envPath = base_path('.env'); $envContent = file_get_contents($envPath); $serverUrl = $request->input('server_url', ''); $apiKey = $request->input('api_key', ''); if (strpos($envContent, 'SYNC_SERVER_URL=') !== false) { $envContent = preg_replace('/SYNC_SERVER_URL=.*/', "SYNC_SERVER_URL={$serverUrl}", $envContent); } else { $envContent .= "\nSYNC_SERVER_URL={$serverUrl}"; } if (strpos($envContent, 'SYNC_API_KEY=') !== false) { $envContent = preg_replace('/SYNC_API_KEY=.*/', "SYNC_API_KEY={$apiKey}", $envContent); } else { $envContent .= "\nSYNC_API_KEY={$apiKey}"; } file_put_contents($envPath, $envContent); return response()->json([ 'success' => true, 'message' => 'Configuración guardada. Reinicie la aplicación para aplicar cambios.', ]); } }
Coded With 💗 by
0x6ick