I've not looked at adding file extensions to the search, but I've got an imbedded WordPress blog on my site and wanted to use the DTK to search in the WordPress files too. I made the following change to /YOUR_ADMIN/developers_tool_kit.php to accomplish that:
Code:
/// all files
case ('locate_all_files'):
$zv_check_root = false;
if ($configuration_key_lookup == '') {
$messageStack->add_session(ERROR_CONFIGURATION_KEY_NOT_ENTERED, 'caution');
zen_redirect(zen_href_link(FILENAME_DEVELOPERS_TOOL_KIT));
}
$found = 'false';
$zv_files_group = $_POST['zv_files'];
$zv_filestype_group = $_POST['zv_filestype'];
//echo 'settings: ' . '$zv_files_group: ' . $zv_files_group . '$zv_filestype_group: ' . $zv_filestype_group . '<br>';
//echo 'Who am I template ' . $template_dir . ' sess lang ' . $_SESSION['language'];
switch ($zv_files_group) {
case (0): // none
$filename_listing = '';
break;
case (1): // all
$zv_check_root = true;
$filename_listing = '';
$check_directory = array();
// get includes
$sub_dir_files = array();
getDirList(DIR_FS_CATALOG . DIR_WS_INCLUDES, $zv_filestype_group);
$sub_dir_files_catalog = $sub_dir_files;
// get email
$sub_dir_files = array();
getDirList(DIR_FS_EMAIL_TEMPLATES, $zv_filestype_group);
$sub_dir_files_email = $sub_dir_files;
// get admin
$sub_dir_files = array();
getDirList(DIR_FS_ADMIN, $zv_filestype_group);
$sub_dir_files_admin= $sub_dir_files;
$check_dir = array_merge($sub_dir_files_catalog, $sub_dir_files_email, $sub_dir_files_admin);
for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {
$check_directory[] = $check_dir[$i] . '/';
}
break;
case (2): // all catalog
$zv_check_root = true;
$filename_listing = '';
$check_directory = array();
$sub_dir_files = array();
getDirList(DIR_FS_CATALOG . DIR_WS_INCLUDES, $zv_filestype_group);
$sub_dir_files_catalog = $sub_dir_files;
// get email
$sub_dir_files = array();
getDirList(DIR_FS_EMAIL_TEMPLATES, $zv_filestype_group);
$sub_dir_files_email = $sub_dir_files;
// get wordpress
$sub_dir_files = array();
getDirList(DIR_FS_CATALOG . 'wordpress/', $zv_filestype_group);
$sub_dir_files_wp = $sub_dir_files;
$check_dir = array_merge($sub_dir_files_catalog, $sub_dir_files_email, $sub_dir_files_wp);
for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {
$zv_add_dir= str_replace('//', '/', $check_dir[$i] . '/');
if (strstr($zv_add_dir, DIR_WS_ADMIN) == '') {
$check_directory[] = $zv_add_dir;
}
}
break;
case (3): // all admin
$zv_check_root = false;
$filename_listing = '';
Bookmarks