/** * Grab all directories and subdirectories for directory $dir and shove them into the global array $directories * * @param string $dir */ function GrabAllLocalDirectories($dir) { global $directories; if ($handle = @opendir($dir)) { while ($filename = readdir($handle)) { $directory = $dir . '/' . $filename; if (is_dir($directory) && CheckDirectory($filename)) { $directories[$directory] = array('localfiles' => 0, 'remotefiles' => 0, 'severity' => 0); GrabAllLocalDirectories($directory); } } closedir($handle); } }
} $table_list .= "</table>\n"; $roster->db->free_result($result); } $sql_tables .= scrollbox($table_list, 'MySQL Tables', '', '100%', '231px'); echo $sql_tables; // Table display fix echo "</td></tr></table>\n"; // File Versioning Information if (true) { //GrabRemoteVersions(); VerifyVersions(); $zippackage_files = ''; // Make a post form for the download of a Zip Package foreach ($directories as $directory => $filecount) { if (isset($files[$directory]) && CheckDirectory($directory) == '1') { foreach ($files[$directory] as $file => $filedata) { if (isset($filedata['update']) && $filedata['update']) { if (isset($file) && $file != 'newer' && $file != 'severity' && $file != 'tooltip' && $file != 'rollup' && $file != 'rev' && $file != 'date' && $file != 'author' && $file != 'md5' && $file != 'update' && $file != 'missing') { if ($zippackage_files != '') { $zippackage_files .= ';'; } $zippackage_files .= $directory . '/' . $file . "\r\n"; } } } } } if ($zippackage_files != '') { // Display Password Box if (!$roster->auth->getAuthorized('roster_cp')) {