ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-16 14:26:45
Editing: object_role_edit.php
Cancel
Save Changes
<?php // ------------------- Begin Common Code ------------------------ if( basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME']) ) die( 'This page cannot be called directly.' ); global $scoper, $scoper_admin; if ( isset($_POST['rs_submit']) ) { $src_name = sanitize_key( $_POST['src_name'] ); $object_type = sanitize_key( $_POST['object_type'] ); $object_name = sanitize_text_field( $_POST['object_name'] ); $object_id = (int) $_POST['object_id']; } else { $src_name = isset($_GET['src_name']) ? sanitize_key( $_GET['src_name'] ) : ''; $object_type = isset($_GET['object_type']) ? sanitize_key( $_GET['object_type'] ) : ''; $object_name = isset($_GET['object_name']) ? sanitize_text_field( $_GET['object_name'] ) : ''; $object_id = isset($_GET['object_id']) ? (int) $_GET['object_id'] : ''; } if ( ! $is_administrator && ! $scoper_admin->user_can_admin_object($src_name, $object_type, $object_id) ) wp_die( __('You do not have permission to assign roles for this object.', 'scoper') ); // ==== Process Submission ===== $err = 0; if ( isset($_POST['rs_submit'] ) ) { global $scoper_admin_filters; $scoper_admin_filters->mnt_save_object($src_name, '', $object_id); echo '<div id="message" class="updated fade"><p>'; _e('Object Roles Updated.', 'scoper'); echo '</p></div>'; } ?> <?php $item_label = $scoper->data_sources->member_property($src_name, 'object_types', $object_type, 'labels', 'singular_name'); ?> <div class="wrap agp-width97"> <h2><?php printf(__('Assign Roles for %1$s "%2$s"', 'scoper'), $item_label, $object_name); ?></h2> <form action="" method="post" name="role_assign" id="role_assign"> <input type="hidden" name="src_name" value="<?php echo $src_name ?>" /> <input type="hidden" name="object_type" value="<?php echo $object_type ?>" /> <input type="hidden" name="object_name" value="<?php echo $object_name ?>" /> <input type="hidden" name="object_id" value="<?php echo (int) $object_id ?>" /> <ul class='rs-list_horiz'> <li style='float:right;margin: 1em 0.25em 0.25em 0.25em;'><span class="submit" style="border:none;"> <input type="submit" name="rs_submit" class="button-primary" value="<?php _e('Update »', 'scoper');?>" /> </span></li> </ul> <br /> <?php $args = array(); $args['default_hide_threshold'] = 0; $args['html_inserts'] = $scoper->data_sources->member_property('post', 'admin_inserts', 'bottom'); $args['default_role_basis'] = $role_basis; if ( isset($args['html_inserts']->close->container) ) $args['html_inserts']->close->container .= '<br />'; include_once( dirname(__FILE__).'/item_roles_ui_rs.php'); $item_roles_ui = new ScoperItemRolesUI(); $item_roles_ui->single_object_roles_ui($src_name, $object_type, $object_id, $args); ?> <p class="submit alignright" style="clear: both;border:none"> <input type="submit" name="rs_submit" class="button-primary" value="<?php _e('Update »', 'scoper');?>" /> </p> <p style='clear:both'> </p> </form> <?php if ( $object_type ) echo "<a href='admin.php?page=rs-{$object_type}-roles'>" . __( 'back' ) . '</a>'; ?> </div>
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete