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

<?php

namespace FluentForm\App\Http\Controllers;

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

class LogController extends Controller
{
    public function get(Logger $logger)
    {
        try {
            $attributes = $this->request->all();
            
            $sanitizeMap = [
                'form_id'  => 'intval',
                'page'     => 'intval',
                'per_page' => 'intval',
                'search'   => 'sanitize_text_field',
                'log_type' => 'sanitize_text_field',
            ];
            $attributes = fluentform_backend_sanitizer($attributes, $sanitizeMap);
            
            return $this->sendSuccess(
                $logger->get($attributes)
            );
        } catch (Exception $e) {
            return $this->sendError([
                'message' => __('Something went wrong, please try again!', 'fluentform'),
                'error'   => $e->getMessage(),
            ]);
        }
    }

    public function getFilters(Logger $logger)
    {
        try {
            $attributes = $this->request->all();
            
            $sanitizeMap = [
                'form_id' => 'intval',
            ];
            $attributes = fluentform_backend_sanitizer($attributes, $sanitizeMap);
            
            return $this->sendSuccess(
                $logger->getFilters($attributes)
            );
        } catch (Exception $e) {
            return $this->sendError([
                'message' => __('Something went wrong, please try again!', 'fluentform'),
                'error'   => $e->getMessage(),
            ]);
        }
    }

    public function remove(Logger $logger)
    {
        try {
            $attributes = $this->request->all();
            
            $sanitizeMap = [
                'log_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).