Faculty Application Form

[insert_php]
$directory = ‘/home/www/mathsci/html/cms/wp-content/uploads/professor-applications/en/’;

$files = scandir ( $directory , 1 );

foreach ($files as $file) {

if (((strpos($file, ‘.pdf’) !== false) || (strpos($file, ‘.hwp’) !== false) || (strpos($file, ‘.doc’) !== false) || (strpos($file, ‘.docx’) !== false)) && !(strpos($file, ‘tmp’) !== false)) {

echo (““);
if (is_user_logged_in()==true && (current_user_can(‘administrator’) || current_user_can(‘editor’)) ) {
echo (“
“);
}
else {
echo(‘
‘);
}
}

}
echo (“
 
 
 
 
 
 
“);
if (is_user_logged_in()!=true) {
echo (“Administrator Login“);
}
[/insert_php]