pathfinder.mod 1.0 Finds the absolute path to a directory for you. The function is located in your Admin Center underneath the "Maintenance Controls" section. Useful for such mods as the file attachment mod, where you need to know the full path to your folder you want to store attachments in, or for finding the full path to your avatars folder. Please note, you should search for directories with unique names. If you have two or more directories in your webspace with the same name, the mod will only tell you the path for the first one it finds. Searches should also be kept case sensitive. The larger and more complex your directory structure is, the longer the search will take. Dave Baughman http://www.baughmania.com Sources/Admin.pl  
$pathfind{'1'}
~; if (!$FORM{'path_request'}) { $yymain .= "$pathfind{'2'}"; } else { use File::Find; $toplevel = "$ENV{'DOCUMENT_ROOT'}"; find({ wanted => \&List }, $toplevel); if ($dir_path) { $yymain .= qq~ $pathfind{'3'} $FORM{'path_request'}:
$dir_path ~; } else { $yymain .= qq~ $pathfind{'3'} $FORM{'path_request'}:
$pathfind{'4'} ~; } } $yymain .= qq~
 
sub FullStats { sub List { &is_admin; if((-d $_) && ($_ eq "$FORM{'path_request'}")) { $dir_path = "$File::Find::dir/$_"; } } sub FullStats { english.lng 1; $pathfind{'1'} = "Directory Locator"; $pathfind{'2'} = "Find the absolute path to folders on your webserver. Just
enter the exact name of the folder you want the path for
in the box below. Depending on how large your directory
structure is, this may take a few seconds."; $pathfind{'3'} = "Absolute path to"; $pathfind{'4'} = "Directory Not Found on Server";