HEX
Server: Apache
System: Linux uyu7574470001-7d78c9ff74-xfpwm 4.19.91-21.al7.x86_64 #1 SMP Wed Sep 2 19:47:49 CST 2020 x86_64
User: ()
PHP: 7.4.16
Disabled: chmod,exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,socket_create_listen,socket_create_pair,socket_create,socket_get_option,socket_getpeername,socket_getsockname,socket_last_error,socket_listen,socket_read,socket_recv,socket_recvfrom,socket_select,socket_send,socket_sendto,socket_set_block,socket_set_nonblock,socket_set_option,socket_shutdown,socket_strerror,socket_write,stream_socket_client,stream_socket_server,pfsockopen,disk_total_space,disk_free_space,chown,diskfreespace,getrusage,get_current_user,getmyuid,getmypid,dl,leak,listen,chgrp,link,symlink,dlopen,proc_nice,proc_get_stats,proc_terminate,shell_exec,sh2_exec,posix_getpwuid,posix_getgrgid,posix_kill,ini_restore,mkfifo,dbmopen,dbase_open,filepro,filepro_rowcount,posix_mkfifo,putenv,sleep,fsockopen
Upload Files
File: /usr/home/uyu7574470001/htdocs/wp-content/plugins/intuitive-custom-post-order/admin/settings.php
<?php

$hicpo_options = get_option( 'hicpo_options' );
$hicpo_objects = isset( $hicpo_options['objects'] ) ? $hicpo_options['objects'] : [];
$hicpo_tags = isset( $hicpo_options['tags'] ) ? $hicpo_options['tags'] : [];

?>

<div class="wrap">

<h2><?php esc_html_e( 'Intuitive Custom Post Order Settings', 'intuitive-custom-post-order' ); ?></h2>

<?php if ( isset( $_GET['msg'] ) ) : ?>
<div id="message" class="updated below-h2">
	<?php if ( 'update' === $_GET['msg'] ) : ?>
		<p><?php esc_html_e( 'Settings saved.' ); ?></p>
	<?php endif; ?>
</div>
<?php endif; ?>

<form method="post">

<?php
if ( function_exists( 'wp_nonce_field' ) ) {
	wp_nonce_field( 'nonce_hicpo' );}
?>

<div id="hicpo_select_objects">

<table class="form-table">
	<tbody>
		<tr valign="top">
			<th scope="row"><?php esc_html_e( 'Sortable Post Types', 'intuitive-custom-post-order' ); ?></th>
			<td>
			<?php
				$post_types = get_post_types(
					[
						'show_ui' => true,
						'show_in_menu' => true,
					],
					'objects'
				);

				foreach ( $post_types as $post_type ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
					if ( 'attachment' === $post_type->name ) {
						continue;
					}
					?>
					<label><input type="checkbox" name="objects[]" value="<?php echo esc_attr( $post_type->name ); ?>"
					<?php
					if ( isset( $hicpo_objects ) && is_array( $hicpo_objects ) ) {
						if ( in_array( $post_type->name, $hicpo_objects ) ) {
							echo 'checked="checked"'; }
					}
					?>
					>&nbsp;<?php echo esc_html( $post_type->label ); ?></label><br>
					<?php
				}
				?>
			</td>
		</tr>
	</tbody>
</table>

</div>

<label><input type="checkbox" id="hicpo_allcheck_objects"> <?php esc_html_e( 'All Check', 'intuitive-custom-post-order' ); ?></label>

<div id="hicpo_select_tags">

<table class="form-table">
	<tbody>
		<tr valign="top">
			<th scope="row"><?php esc_html_e( 'Sortable Taxonomies', 'intuitive-custom-post-order' ); ?></th>
			<td>
			<?php
				$taxonomies = get_taxonomies(
					[
						'show_ui' => true,
					],
					'objects'
				);

				foreach ( $taxonomies as $taxonomy ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
					if ( 'post_format' === $taxonomy->name ) {
						continue;
					}
					?>
					<label><input type="checkbox" name="tags[]" value="<?php echo esc_attr( $taxonomy->name ); ?>"
					<?php
					if ( isset( $hicpo_tags ) && is_array( $hicpo_tags ) ) {
						if ( in_array( $taxonomy->name, $hicpo_tags ) ) {
							echo 'checked="checked"'; }
					}
					?>
					>&nbsp;<?php echo esc_html( $taxonomy->label ); ?></label><br>
					<?php
				}
				?>
			</td>
		</tr>
	</tbody>
</table>

</div>

<label><input type="checkbox" id="hicpo_allcheck_tags"> <?php esc_html_e( 'All Check', 'intuitive-custom-post-order' ); ?></label>

<p class="submit">
	<input type="submit" class="button-primary" name="hicpo_submit" value="<?php esc_attr_e( 'Update', 'intuitive-custom-post-order' ); ?>">
</p>

</form>

</div>

<script>
(function($){

	$("#hicpo_allcheck_objects").on('click', function(){
		var items = $("#hicpo_select_objects input");
		if ( $(this).is(':checked') ) $(items).prop('checked', true);
		else $(items).prop('checked', false);
	});

	$("#hicpo_allcheck_tags").on('click', function(){
		var items = $("#hicpo_select_tags input");
		if ( $(this).is(':checked') ) $(items).prop('checked', true);
		else $(items).prop('checked', false);
	});

})(jQuery)
</script>