���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 91.108.106.221  /  Your IP : 216.73.216.210
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/omjaindia.com/public_html/wp-content/plugins/hostinger/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/omjaindia.com/public_html/wp-content/plugins/hostinger/includes/Loader.php
<?php

namespace Hostinger;

defined( 'ABSPATH' ) || exit;

class Loader {
    protected array $actions;
    protected array $filters;

    public function __construct() {
        $this->actions = array();
        $this->filters = array();
    }

    /**
     * @param string $hook
     * @param mixed  $component
     * @param string $callback
     * @param int    $priority
     * @param int    $accepted_args
     *
     * @return void
     */
    public function add_action( string $hook, $component, string $callback, int $priority = 10, int $accepted_args = 1 ) {
        $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args );
    }

    /**
     * @param string $hook
     * @param mixed  $component
     * @param string $callback
     * @param int    $priority
     * @param int    $accepted_args
     *
     * @return void
     */
    public function add_filter( string $hook, $component, string $callback, int $priority = 10, int $accepted_args = 1 ) {
        $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args );
    }

    /**
     * @param array  $hooks
     * @param string $hook
     * @param mixed  $component
     * @param string $callback
     * @param int    $priority
     * @param int    $accepted_args
     *
     * @return array
     */
    private function add(
        array $hooks,
        string $hook,
        $component,
        string $callback,
        int $priority,
        int $accepted_args
    ): array {
        $hooks[] = array(
            'hook'          => $hook,
            'component'     => $component,
            'callback'      => $callback,
            'priority'      => $priority,
            'accepted_args' => $accepted_args,
        );

        return $hooks;
    }

    /**
     * @return void
     */
    public function run(): void {
        foreach ( $this->filters as $hook ) {
            add_filter(
                $hook['hook'],
                array( $hook['component'], $hook['callback'] ),
                $hook['priority'],
                $hook['accepted_args']
            );
        }

        foreach ( $this->actions as $hook ) {
            add_action(
                $hook['hook'],
                array( $hook['component'], $hook['callback'] ),
                $hook['priority'],
                $hook['accepted_args']
            );
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit