function createDir($path = '.') { if ($handle = opendir($path)) { echo "<ul>"; while (false !== ($file = readdir($handle))) { if (is_dir($path . $file) && $file != '.' && $file != '..' && substr($file, 0, 1) != '.' && $file != 'support' && $file != 'vendor' && $file != 'Procfile' && $file != 'README.md' && $file != 'index.php' && $file != 'composer.json') { printSubDir($file, $path, $queue); } else { if ($file != '.' && $file != '..' && substr($file, 0, 1) != '.' && $file != 'support' && $file != 'vendor' && $file != 'Procfile' && $file != 'README.md' && $file != 'index.php' && $file != 'composer.json') { $queue[] = $file; } } } printQueue($queue, $path); echo "</ul>"; } }
function createDir($path, $chatType) { if ($handle = opendir($path)) { echo "<ul id='ul-sticer'>"; while (false !== ($file = readdir($handle))) { if (is_dir($path . $file) && $file != '.' && $file != '..') { printSubDir($file, $path, $chatType); } else { if ($file != '.' && $file != '..') { $queue[] = $file; } } } printQueue($queue, $path, $chatType); echo "</ul>"; } }