Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
logoandw
/
public_html
/
naturallights.biz
/
wp-content
/
plugins
/
imunify-security
/
inc
/
App
/
✏️
Editing: View.php
<?php /** * Copyright (с) Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2025 All Rights Reserved * * Licensed under CLOUD LINUX LICENSE AGREEMENT * https://www.cloudlinux.com/legal/ */ namespace CloudLinux\Imunify\App; /** * View interface. */ abstract class View { /** * Render a template. * * @param string $file Template file. * @param array $data Template data. * * @return void */ public function render( $file, $data = array() ) { $path = IMUNIFY_SECURITY_PATH . '/views/' . $file . '.php'; if ( is_readable( $path ) ) { do_action( 'imunify_security_set_error_handler' ); try { include $path; } catch ( \Exception $e ) { // A broken template fails the same way on every admin page // view, so the report has to be gated. The key carries exactly // what the fingerprint below does, so one Sentry group cannot // receive more events per hour than the throttle promises. if ( Debug::throttleGate( 'widget_rendering_failed_' . get_class( $e ) ) ) { do_action( 'imunify_security_set_error', E_ERROR, 'Widget rendering failed: ' . $e->getMessage(), __FILE__, __LINE__, array( 'fingerprint' => array( 'widget_rendering_failed', get_class( $e ) ), ) ); } } do_action( 'imunify_security_restore_error_handler' ); } } }
💾 Save
❌ Cancel