$20 GRAYBYTE WORDPRESS FILE MANAGER $37

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/bqrcodec/contact.kemberinc.com/wp-content/plugins/wp-user-switch/templates/

HOME
Current File : /home/bqrcodec/contact.kemberinc.com/wp-content/plugins/wp-user-switch/templates//settings.php
<?php

namespace IqbalRony\WP_User_Switch;
if ( ! defined( 'ABSPATH' ) ) {
	die;
}
if ( isset( $_POST['wpus_allow_users_nonce'] ) && wp_verify_nonce( $_POST['wpus_allow_users_nonce'], 'wpus_allow_users_nonce' ) && isset( $_POST['wpus_allow_users_submit'] ) && $_POST['wpus_allow_users_submit'] ) {
	if ( isset( $_POST['wpus_allow_users'] ) && ! empty( $_POST['wpus_allow_users'] ) && is_array( $_POST['wpus_allow_users'] ) ) {
			$allow_users = array();
		   foreach ( $_POST['wpus_allow_users'] as $key => $value ) {
		     $allow_users[ sanitize_key( $key ) ] = sanitize_text_field( $value );
		   }
	   update_option( 'wpus_allow_users', $allow_users );
	} elseif ( empty( $_POST['wpus_allow_users'] ) ) {
		update_option( 'wpus_allow_users', array() );
	}
}
$role = get_option( 'wpus_allow_users' ) ? get_option( 'wpus_allow_users' ) : array();
$i = 0;
?>
	<div class="wpus-settings-area">
		<h2><?php esc_html_e( 'User Switch Settings', 'user-switch' ); ?></h2>
		<div class="wpus-settings">
			<form method="post" class="user_switch" action="">
				<div class="wpus-allow-user-table">
					<div class="wpus-allow-user-title">
						<h4><?php esc_html_e( 'Allowed User To Switch', 'user-switch' ); ?></h4>
					</div>
					<div class="wpus-allow-user-wrap">
						<ul>
							<li class="title">
								<span class="username"><?php esc_html_e( 'Username', 'wp-user-switch' ); ?></span>
								<span class="name"><?php esc_html_e( 'Name', 'wp-user-switch' ); ?></span>
							</li>
					  <?php foreach ( get_users() as $user ):
						  if ( array_key_exists( 'manage_options', $user->allcaps ) == true ) {
							  continue;
						  }
						  ?>
								 <li>
									 <label>
									 <span class="username">
										 <input type="checkbox" name="wpus_allow_users[<?php echo esc_html($i); ?>]"
										        value="<?php echo sanitize_user( $user->data->user_login ); ?>" <?php echo in_array( $user->data->user_login, $role ) == true ? esc_html( 'checked' ) : ''; ?>>
												<?php echo sanitize_user( $user->data->user_login ); ?>
									 </span>
									 </label>
									 <span class="display-name"><?php echo esc_html( $user->data->display_name ); ?></span>
								 </li>
						  <?php $i++; endforeach; ?>
						</ul>
					</div>
				</div>
				<input type="hidden" name="wpus_allow_users_nonce"
				       value="<?php echo wp_create_nonce( 'wpus_allow_users_nonce' ); ?>">
				<button class="wp-core-ui button-primary" name="wpus_allow_users_submit" value="submit"
				        type="submit"><?php esc_html_e( 'Save Changes', 'wp-user-switch' ); ?></button>
			</form>
		</div>
	</div>
<?php

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
26 Mar 2024 1.22 PM
bqrcodec / bqrcodec
0755
admin.php
1.777 KB
26 Mar 2024 1.22 PM
bqrcodec / bqrcodec
0644
settings.php
2.62 KB
26 Mar 2024 1.22 PM
bqrcodec / bqrcodec
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF