function showBackups($option) { // ---------------------------------------------------------- // Generate a selectable list of the files in Backup Folder // ---------------------------------------------------------- global $_CONFIG; if (!is_dir($_CONFIG['clonerPath'])) { E_print("Your backup directory " . $_CONFIG['clonerPath'] . " is not correct! Unable to continue..."); return; } # initialise list arrays, directories and files separately and array counters for them $d_arr = array(); $d = 0; $f_arr = array(); $f = 0; $s_arr = array(); $s = 0; # obtain the list of backup archive files getBackupFiles($d_arr, $f_arr, $s_arr, $d, $f); # load presentation layer HTML_cloner::showBackups($f_arr, $s_arr, $_CONFIG['clonerPath'], $option); }