File:  [LON-CAPA] / loncom / html / adm / help / tex / Guts_Apache_Env.tex
Revision 1.2: download - view: text, annotated - select for diffs
Mon May 17 22:08:56 2004 UTC (20 years, 2 months ago) by albertel
Branches: MAIN
CVS tags: version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, HEAD
- add missing \label
- add errormessage generation to lonhelp.pm in case it does not find a label for
   the reference

- This should fix #3016, and make it easier to find these errors in the fututre

    1: \label{Guts_Apache_Env}
    2: 
    3: The environment is accessible through the global hash named \%ENV.
    4: In addition to the standard variables placed in the environment by
    5: the Apache server, LON-CAPA places a lot of information in the \%ENV.
    6: You can see this information by going to \texttt{/adm/test}; the top
    7: part of that screen will show your current \%ENV. (You may need to
    8: modify \texttt{/home/httpd/lonTabs/htpasswd} before you can view that
    9: handler and change the password for \texttt{lonadm}.)
   10: 
   11: Many of the environment variables are primarily useful to the authentication
   12: and permission routines (such as \texttt{Apache::lonnet::allowed}),
   13: and are very rarely directly manipulated. 
   14: 
   15: Generally, the \%ENV is informally organized into {}``namespaces'',
   16: such as {}``browser'' (containing browser information), {}``course''
   17: (containing course-specific information), etc. For the following table,
   18: the full name of the variable is the name shown on the left, prepended
   19: by the section it is in. For instance, the first \%ENV member shown
   20: below is \$ENV\{'browser.mathml'\}. Only generally useful portions
   21: of the \%ENV are covered here.
   22: 
   23: \begin{longtable}{|c|c|}
   24: \hline 
   25: \textbf{\%ENV name}&
   26: \textbf{Description}\tabularnewline
   27: \hline
   28: \endfirsthead
   29: \textbf{browser:}&
   30: \tabularnewline
   31: \hline 
   32: .mathml&
   33: if true, browser support MathML\tabularnewline
   34: \hline 
   35: .os&
   36: indicates OS of browser\tabularnewline
   37: \hline 
   38: .type&
   39: indicates type of browser ({}``ie'', {}``mozilla'', etc)\tabularnewline
   40: \hline 
   41: .version&
   42: version of the browser\tabularnewline
   43: \hline 
   44: \textbf{environment:}&
   45: \tabularnewline
   46: \hline 
   47: .firstname&
   48: user's firstname\tabularnewline
   49: \hline 
   50: .generation&
   51: user's generation ({}``1st'', {}``jr.'', etc)\tabularnewline
   52: \hline 
   53: .id&
   54: institution-specific ID number\tabularnewline
   55: \hline 
   56: .lastname&
   57: user's lastname\tabularnewline
   58: \hline
   59: .middlename&
   60: user's middle name\tabularnewline
   61: \hline
   62: .remote&
   63: 'on' if the user has the remote open\tabularnewline
   64: \hline
   65: \textbf{request:}&
   66: \tabularnewline
   67: \hline
   68: .course.fn&
   69: {}``full name'' of the course directory\tabularnewline
   70: \hline
   71: .course.id&
   72: ID of the course currently logged into\tabularnewline
   73: \hline
   74: .course.sec&
   75: current section of the course the user is in\tabularnewline
   76: \hline
   77: .course.uri&
   78: URI of the top-level map\tabularnewline
   79: \hline
   80: .filename&
   81: requested filename for current request\tabularnewline
   82: \hline
   83: .host&
   84: originating IP of request\tabularnewline
   85: \hline
   86: .role&
   87: full role designation for the course\tabularnewline
   88: \hline
   89: .role.adv&
   90: whether the user is {}``advanced''; generally don't use\tabularnewline
   91: \hline
   92: .role.domain&
   93: domain of the current course\tabularnewline
   94: \hline
   95: \textbf{user:}&
   96: \tabularnewline
   97: \hline
   98: .adv&
   99: whether the user is {}``advanced''; generally don't use\tabularnewline
  100: \hline
  101: .author&
  102: whether the user is an author\tabularnewline
  103: \hline
  104: .domain&
  105: domain the user is from\tabularnewline
  106: \hline
  107: .home&
  108: user's home server\tabularnewline
  109: \hline
  110: .name&
  111: user's login name\tabularnewline
  112: \hline
  113: \end{longtable}
  114: 
  115: Other variables are frequently available, and you can add new ones
  116: easily; see \texttt{Apache::lonnet::appenv()} and friends.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>