HEX
Server: nginx/1.18.0
System: Linux iZj6c1ieg2jrpk1z5tzi19Z 6.3.9-1.el7.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 21 22:18:40 EDT 2023 x86_64
User: www (1001)
PHP: 8.2.4
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.cytocare.cn/wp-content/plugins/gwolle-gb/admin/tabs/gb-debugtab.php
<?php
/*
 * Settings page for the guestbook
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly



/*
 * Debug tab of the Settings page.
 *
 */
function gwolle_gb_page_settingstab_debug() {

	if ( ! current_user_can('manage_options') ) {
		die(esc_html__('You need a higher level of permission.', 'gwolle-gb'));
	} ?>

	<input type="hidden" id="gwolle_gb_tab" name="gwolle_gb_tab" value="gwolle_gb_debug" />
	<?php
	settings_fields( 'gwolle_gb_options' );
	do_settings_sections( 'gwolle_gb_options' );

	/* Nonce */
	$nonce = wp_create_nonce( 'gwolle_gb_page_settings_debugtab' );
	echo '<input type="hidden" id="gwolle_gb_page_settings_debugtab" name="gwolle_gb_page_settings_debugtab" value="' . esc_attr( $nonce ) . '" />';
	?>
	<table class="form-table">
		<tbody>

		<tr>
			<td scope="row" colspan="2">
				<p>
					<?php esc_html_e('Please provide this information when posting a support message on the support forum.', 'gwolle-gb'); ?>
				</p>
			</td>
		</tr>

		<?php
		/* Check Nonce */
		$verified = false;
		if ( isset($_POST['gwolle_gb_page_settings_debugtab']) ) {
			$verified = wp_verify_nonce( $_POST['gwolle_gb_page_settings_debugtab'], 'gwolle_gb_page_settings_debugtab' );
		}
		if ( $verified && isset( $_POST['gwolle_gb_debug'] ) ) {
			// Save test entries
			$entry_id = gwolle_gb_test_add_entry( false );
			$entry_id_emoji = gwolle_gb_test_add_entry( true );
			?>

			<tr>
				<th><?php esc_html_e('Standard test:', 'gwolle-gb'); ?></th>
				<td><?php
					if ( $entry_id === 0 ) {
						echo '👎 ';
						esc_html_e('Failed.', 'gwolle-gb');
					} else {
						echo '👍 ';
						esc_html_e('Succeeded.', 'gwolle-gb');
					} ?>
				</td>
			</tr>
			<tr>
				<th><?php esc_html_e('Emoji test:', 'gwolle-gb'); ?></th>
				<td><?php
					if ( $entry_id_emoji === 0 ) {
						echo '👎 ';
						esc_html_e('Failed.', 'gwolle-gb');
					} else {
						echo '👍 ';
						esc_html_e('Succeeded.', 'gwolle-gb');
					} ?>
				</td>
			</tr>
			<?php
		}
		?>

		<tr>
			<th scope="row"><label for="blogdescription"><?php esc_html_e('Test', 'gwolle-gb'); ?></label></th>
			<td>
				<p>
				<?php esc_html_e('This test will attempt to save two test entries, one with standard text and one with Emoji.', 'gwolle-gb'); ?>
				</p>
				<p>
					<input type="submit" name="gwolle_gb_debug" id="gwolle_gb_debug" class="button button-primary" value="<?php esc_attr_e('Run test', 'gwolle-gb'); ?>" />
				</p>
			</td>
		</tr>

		<?php gwolle_gb_debug_info(); ?>

		</tbody>
	</table>

	<?php
}