<?php include_once 'functions.php'; $user_list = getUserListing(); for ($i = 0; $i < totaluser(); $i++) { $list_email = $user_list[$i]["email"]; $list_id = $user_list[$i]["id"]; $list_username = $user_list[$i]["username"]; $list_date = $user_list[$i]["date"]; $list_token = $user_list[$i]["token"]; ?> <table border="0"> <tr width="100"> <td width="100"><?php echo $list_id; ?> </td> <td width="100"><?php echo $list_username; ?> </td> <td width="150"><?php echo $list_email; ?> </td> <td width="100"><?php echo $list_date; ?> </td> <td width="100"><?php echo $list_token;
$html = ''; ?> <div class="wrap adminfilebrowser"> <h2><?php _e('Link users to folder', 'useyourdrive'); ?> </h2> <div id='UseyourDrive-UserToFolder'> <?php $html .= getUserListing($guest); //loop through each user foreach ($user_ids as $user) { // Get user data $curuser = get_userdata($user->ID); $html .= getUserListing($curuser); } echo $html; ?> </div> <div id='uyd-embedded' style='clear:both;display:none;'> <?php echo $this->UseyourDrive->createFromShortcode(array('mode' => 'files', 'upload' => '0', 'rename' => '0', 'delete' => '0', 'addfolder' => '1', 'showfiles' => '0', 'mcepopup' => 'linkto', 'search' => '0')); ?> </div> </div> <?php function getUserListing($curuser) { $html = '<div class="uyd-user ' . ($curuser->ID === 'GUEST' ? 'guest' : '') . '">'; /* Gravatar */