Apache::lonindexer - mod_perl module for cross server filesystem browsing
Invoked by /etc/httpd/conf/srm.conf:
<LocationMatch "^/res.*/$">
SetHandler perl-script
PerlHandler Apache::lonindexer
</LocationMatch>
This module enables a scheme of browsing across a cross server.
This is part of the LearningOnline Network with CAPA project
described at http://www.lon-capa.org.
This routine is only run once after compilation.
-
Initializes %language hash table.
This routine is called by Apache and mod_perl.
-
read in machine configuration variables
-
see if called from an interactive mode
-
refresh environment with user database values (in %hash)
-
define extra fields and buttons in case of special mode
-
set catalogmodefunctions to have extra needed javascript functionality
-
print header
-
evaluate actions from previous page (both cumulatively and chronologically)
-
output title
-
get state of file attributes to be showing
-
output state of file attributes to be showing
-
output starting row to the indexed file/directory hierarchy
-
read in what directories have previously been set to ``open''
-
if not at top level, provide an uplink arrow
-
recursively go through all the directories and output as appropriate
-
information useful for group import
-
end the tables
-
end the output and return
-
scanDir - recursive scan of a directory
-
get_list - get complete matched list based on the uri (returns an array)
-
match_ext - filters out files based on extensions (returns an array)
-
display_line - displays one line in appropriate table format
-
begin_form - prints the beginning of a form for directory or file link
-
start_fresh_session - settings whenever the user causes the indexer window
to be launched