User files
[exec]
$count=0;
$dir=’./wp-content/Downloads/Users/’ . um_get_display_name( $user_id );
if (file_exists($dir)) {
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != “.” && $file != “..”) {
if (is_file($dir.”/”.$file)) {
$count=$count+1;
$tmp=”/wp-content/Downloads/Users/”. um_get_display_name( $user_id ) .”/” . $file;
echo ““;
echo “-$file\n”;
echo ““;
}
}
}
closedir($handle);
}
}
if ($count==0) {
echo “Files not found”;
}
[/exec]
Common files
[exec]
$count=0;
$dir=’./wp-content/Downloads/Users’;
if (file_exists($dir)) {
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != “.” && $file != “..”) {
if (is_file($dir.”/”.$file)) {
$count=$count+1;
echo ““;
echo “-$file\n”;
echo ““;
}
}
}
closedir($handle);
}
}
if ($count==0) {
echo “Files not found”;
}
[/exec]