continue; } $full_path = htmlentities($_POST['dir'] . $file); $file = htmlentities($file); $class = $file_list->get_checkbox_class($full_path); $ext = preg_replace('/^.*\\./', '', $file); echo "<li class='file ext_{$ext}'>"; echo "<a href='#' rel='" . str_replace('\\', '/', $full_path) . "' class='tree'>{$file}</a>"; if (strstr($_POST['dir'] . $file, DB_NAME . '-backup.sql') === false) { echo "<a href='#' rel='" . str_replace('\\', '/', $full_path) . "' class='checkbox {$class}'></a>"; } echo "</li>"; } } echo "</ul>"; } } } else { if ($_POST['exclude'] && $_POST['path']) { //Convert to the os' directiry separator $path = str_replace('/', DIRECTORY_SEPARATOR, urldecode($_POST['path'])); if ($_POST['exclude'] == 'true') { $file_list->set_excluded($path); } else { $file_list->set_included($path); } } } } catch (Exception $e) { echo '<p class="error">' . $e->getMessage() . '</p>'; }
} if ($file_list->in_ignore_list($file)) { continue; } $full_path = htmlentities($_POST['dir'] . $file); $file = htmlentities($file); $class = $file_list->get_checkbox_class($full_path); $ext = preg_replace('/^.*\\./', '', $file); echo "<li class='file ext_{$ext}'>"; echo "<a href='#' rel='{$full_path}' class='tree'>{$file}</a>"; if (strstr($_POST['dir'] . $file, DB_NAME . '-backup.sql') === false) { echo "<a href='#' rel='{$full_path}' class='checkbox {$class}'></a>"; } echo "</li>"; } } echo "</ul>"; } } } else { if ($_POST['exclude'] && $_POST['path']) { if ($_POST['exclude'] == 'true') { $file_list->set_excluded($_POST['path']); } else { $file_list->set_included($_POST['path']); } } } } catch (Exception $e) { echo '<p class="backup_error">' . $e->getMessage() . '</p>'; }