PHP 8.0.30
Preview: SubmissionLogController.php Size: 1.36 KB
/home/certprox/zang.certproxywizard.com/wp/wp-content/plugins/fluentform/app/Http/Controllers/SubmissionLogController.php

<?php

namespace FluentForm\App\Http\Controllers;

use Exception;
use FluentForm\App\Services\Logger\Logger;

class SubmissionLogController extends Controller
{
    public function get(Logger $logger, $submissionId)
    {
        try {
            $attributes = $this->request->all();
            
            $sanitizeMap = [
                'page' => 'intval',
                'per_page' => 'intval',
            ];
            $attributes = fluentform_backend_sanitizer($attributes, $sanitizeMap);
            
            return $this->sendSuccess(
                $logger->getSubmissionLogs($submissionId, $attributes)
            );
        } catch (Exception $e) {
            return $this->sendError([
                'message' => $e->getMessage(),
            ]);
        }
    }

    public function remove(Logger $logger)
    {
        try {
            $attributes = $this->request->all();
            
            $sanitizeMap = [
                'log_id' => 'intval',
                'submission_id' => 'intval',
            ];
            $attributes = fluentform_backend_sanitizer($attributes, $sanitizeMap);
            
            return $this->sendSuccess(
                $logger->remove($attributes)
            );
        } catch (Exception $e) {
            return $this->sendError([
                'message' => $e->getMessage(),
            ]);
        }
    }
}

Directory Contents

Dirs: 0 × Files: 19

Name Size Perms Modified Actions
3.99 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
706 B lrw-r--r-- 2026-03-30 10:23:19
Edit Download
172 B lrw-r--r-- 2026-03-30 10:23:19
Edit Download
6.50 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
3.34 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
4.32 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
2.59 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
488 B lrw-r--r-- 2026-03-30 10:23:19
Edit Download
778 B lrw-r--r-- 2026-03-30 10:23:19
Edit Download
9.23 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
2.13 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
2.48 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
7.31 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
1.20 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
7.57 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
1.01 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
1.36 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
1.28 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download
4.90 KB lrw-r--r-- 2026-03-30 10:23:19
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).