HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/sectest.concertium.com/public_bak/wp-content/plugins/convertplug/preview.php
<?php
/**
 * Prohibit direct script loading.
 *
 * @package Convert_Plus.
 */

defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );

if ( isset( $_REQUEST['cp_admin_page_nonce'] ) && ! wp_verify_nonce( $_REQUEST['cp_admin_page_nonce'], 'cp_admin_page' ) ) {
	wp_die( 'No direct script access allowed!' );
}

$module = isset( $_GET['module'] ) ? sanitize_text_field( $_GET['module'] ) : '';
$theme  = isset( $_GET['theme'] ) ? esc_attr( $_GET['theme'] ) : '';
$class  = isset( $_GET['class'] ) ? sanitize_text_field( $_GET['class'] ) : '';


if ( '' !== $module ) {

	if ( file_exists( CP_BASE_DIR . '/modules/' . $module . '/functions/functions.options.php' ) ) {

		require_once CP_BASE_DIR . '/modules/' . $module . '/functions/functions.options.php';

		$settings = $class::$options;
		foreach ( $settings as $style => $options ) {
			if ( $style === $theme ) {
				$demo_html     = $options['demo_url'];
				$demo_dir      = $options['demo_dir'];
				$customizer_js = $options['customizer_js'];
			}
		}

		$post_content = Cp_Filesystem::prefix_get_filesystem()->get_contents( $demo_dir );
		print_r( $post_content ); //phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
	}
}