????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.113 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/tempvsty/./pontiacques.org/wp-content/plugins/groups/lib/admin/ |
Upload File : |
<?php
/**
* groups-admin-tree-view.php
*
* Copyright (c) "kento" Karim Rahimpur www.itthinx.com
*
* This code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*
* This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This header and all notices must be kept intact.
*
* @author Karim Rahimpur
* @package groups
* @since groups 1.0.0
*/
if ( !defined( 'ABSPATH' ) ) {
exit;
}
/**
* Tree view : a simple tree view
*/
function groups_admin_tree_view() {
$output = '';
if ( !Groups_User::current_user_can( GROUPS_ACCESS_GROUPS ) ) {
wp_die( esc_html__( 'Access denied.', 'groups' ) );
}
$output .= '<div class="groups-tree-view">';
$output .= '<h1>';
$output .= esc_html__( 'Tree of Groups', 'groups' );
$output .= '</h1>';
$tree = Groups_Utility::get_group_tree();
$tree_output = '';
$linked = Groups_User::current_user_can( GROUPS_ADMINISTER_GROUPS );
Groups_Utility::render_group_tree( $tree, $tree_output, $linked );
$output .= $tree_output;
$output .= '</div>'; // .groups-tree-view
echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
} // function groups_admin_tree_view()