REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.13 KB
Close
/home/certprox/template.certproxywizard.com/wp-content/plugins/hostinger/includes/Mcp/EventHandlerFactory.php
Text
Base64
<?php namespace Hostinger\Mcp; use Hostinger\Admin\Proxy; use Hostinger\Mcp\Handlers\WebsiteMcpOptInToggled; use Hostinger\Mcp\Handlers\WebsitePageUpdated; use Hostinger\Mcp\Handlers\WebsiteUpdated; defined( 'ABSPATH' ) || exit; class EventHandlerFactory { public const MCP_EVENT_UPDATED = 'wordpress.website.updated'; public const MCP_EVENT_PAGE_UPDATED = 'wordpress.website.page_updated'; public const MCP_EVENT_OPTIN_TOGGLED = 'wordpress.website.mcp.opt_in_toggled'; private array $handlers; private Proxy $proxy; public function __construct( Proxy $proxy ) { $this->proxy = $proxy; $this->handlers = array( self::MCP_EVENT_UPDATED => WebsiteUpdated::class, self::MCP_EVENT_PAGE_UPDATED => WebsitePageUpdated::class, self::MCP_EVENT_OPTIN_TOGGLED => WebsiteMcpOptInToggled::class, ); } public function get_handler( string $event ) { $handler = $this->handlers[ $event ] ?? false; if ( ! $handler ) { throw new \WP_Exception( 'Invalid event' ); } return new $handler( $this->proxy ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Handlers
DIR
-
drwxr-xr-x
2026-06-14 00:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
EventHandlerFactory.php
1.13 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).