(478) 396-4311 | Fax (478) 997-6272
Warner Robins, GA 31088
[insert_php] $current_user = wp_get_current_user();
$uploads = wp_upload_dir();
$dir = opendir($uploads[‘basedir’].’/2016/12′);
$current_year = date(“Y”);
$docs = array();
$doc_name = array();
for ($x = 2012; $x <= (int)$current_year; $x++) { for ($y = 1; $y <= 12; $y++) { if( $y < 10) { $month = '0'. (string)$y; } else { $month = (string)$y; } if($dir = @opendir($uploads['basedir'].'/'.(string)$x.'/'.$month)) { while (false !== ($file = readdir($dir))) { if (stripos($file, "jpg") === false && stripos($file,$current_user->user_login)!== false ) {
echo(stripos($file, “jpg”));
echo(‘
‘);
array_push($docs, ‘/’.(string)$x.’/’.$month . ‘/’.$file);
array_push($doc_name, $file);
}
}
}
}
}

[/insert_php]

Hello [insert_php]echo $current_user->user_login;[/insert_php]!

Tax Documents:
[insert_php] for ($x = 0; $x < count($docs); $x++) { echo ("“.$doc_name[$x].”“);
echo(‘
‘);
}
[/insert_php]

(c) 2016 Das-Brooks Bookkeeping