Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > > extendify > > app
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
Assist | Directory | - | - | |
Draft | Directory | - | - | |
HelpCenter | Directory | - | - | |
Launch | Directory | - | - | |
Library | Directory | - | - | |
PageCreator | Directory | - | - | |
Recommendations | Directory | - | - | |
Shared | Directory | - | - | |
AdminPageRouter.php | File | 10367 bytes | July 16 2025 19:39:24. | |
Affiliate.php | File | 2513 bytes | May 22 2025 22:26:12. | |
ApiRouter.php | File | 2342 bytes | June 09 2025 17:02:32. | |
Config.php | File | 3716 bytes | July 16 2025 19:39:24. | |
Insights.php | File | 6572 bytes | July 16 2025 19:39:24. | |
PartnerData.php | File | 11019 bytes | July 16 2025 19:39:24. | |
SiteSettings.php | File | 1341 bytes | May 22 2025 22:26:12. |
<?php /** * API router */ namespace Extendify; defined('ABSPATH') || die('No direct access.'); /** * Simple router for the REST Endpoints */ class ApiRouter extends \WP_REST_Controller { /** * The class instance. * * @var self|null */ protected static $instance = null; /** * Check the authorization of the request * * @return boolean */ public function checkPermission() { // Check for the nonce on the server (used by WP REST). if ( isset($_SERVER['HTTP_X_WP_NONCE']) && \wp_verify_nonce(sanitize_text_field(wp_unslash($_SERVER['HTTP_X_WP_NONCE'])), 'wp_rest') ) { return \current_user_can(Config::$requiredCapability); } return false; } /** * Register dynamic routes * * @param string $namespace - The api name space. * @param string $endpoint - The endpoint. * @param function $callback - The callback to run. * * @return void */ public function getHandler($namespace, $endpoint, $callback) { \register_rest_route($namespace, $endpoint, [ 'methods' => 'GET', 'callback' => $callback, 'permission_callback' => [$this, 'checkPermission'], ]); } /** * The post handler * * @param string $namespace - The api name space. * @param string $endpoint - The endpoint. * @param string $callback - The callback to run. * * @return void */ public function postHandler($namespace, $endpoint, $callback) { \register_rest_route($namespace, $endpoint, [ 'methods' => 'POST', 'callback' => $callback, 'permission_callback' => [$this, 'checkPermission'], ]); } /** * The caller * * @param string $name - The name of the method to call. * @param array $arguments - The arguments to pass in. * * @return mixed */ public static function __callStatic($name, array $arguments) { $name = "{$name}Handler"; if (is_null(self::$instance)) { self::$instance = new static(); } $r = self::$instance; return $r->$name(Config::$slug . '/' . Config::$apiVersion, ...$arguments); } }
SILENT KILLER Tool