Subversion Repositories wimsdev

Rev

Rev 5920 | Rev 7809 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5920 Rev 5921
Line 40... Line 40...
40
  will become<pre>3*pi*x</pre>
40
  will become<pre>3*pi*x</pre>
41
  after substitution.
41
  after substitution.
42
  <p>
42
  <p>
43
  Array addressing: if the variable $(emph)l$emphend contains a
43
  Array addressing: if the variable $(emph)l$emphend contains a
44
  comma-separated list $(emph)a,b,c,d,e$emphend, then the string
44
  comma-separated list $(emph)a,b,c,d,e$emphend, then the string
45
  <tt>$$(i[3])</tt> gives <tt>c</tt> after substitution, and
45
  <span class="tt">$$(i[3])</span> gives <span class="tt">c</span> after substitution, and
46
  <tt>$$(i[2 to 4])</tt> tives <tt>b,c,d</tt>, etc.
46
  <span class="tt">$$(i[2 to 4])</span> tives <span class="tt">b,c,d</span>, etc.
47
  </p><p>
47
  </p><p>
48
  Two-dimensional array addressing is also available: if</p>
48
  Two-dimensional array addressing is also available: if</p>
49
  <pre>$$M=x,y,z;a,b,c</pre>
49
  <pre>$$M=x,y,z;a,b,c</pre>
50
  (a 2x3 matrix), then
50
  (a 2x3 matrix), then
51
  <pre>$$(M[1;3,2])=z,y</pre>
51
  <pre>$$(M[1;3,2])=z,y</pre>
Line 131... Line 131...
131
  </table>
131
  </table>
132
  Also, variables $emph module_has_intro$emphend,
132
  Also, variables $emph module_has_intro$emphend,
133
  $emph module_has_help$emphend and
133
  $emph module_has_help$emphend and
134
  $emph module_has_about$emphend
134
  $emph module_has_about$emphend
135
  have value "yes" if the module's directory contains the respective
135
  have value "yes" if the module's directory contains the respective
136
  .phtml file. These variables are used in the command <tt>!homeref</tt>.
136
  .phtml file. These variables are used in the command <span class="tt">!homeref</span>.
137
 </li><li>Certain environment variables setup by httpd are readable by wims
137
 </li><li>Certain environment variables setup by httpd are readable by wims
138
  modules under names starting with $emph httpd_$emphend. For example, the
138
  modules under names starting with $emph httpd_$emphend. For example, the
139
  environment variable $emph REMOTE_HOST$emphend becomes
139
  environment variable $emph REMOTE_HOST$emphend becomes
140
  $emph httpd_REMOTE_HOST$emphend under wims. <br/>
140
  $emph httpd_REMOTE_HOST$emphend under wims. <br/>
141
  Please refer to httpd protocol specifications for details of such variables.
141
  Please refer to httpd protocol specifications for details of such variables.
Line 147... Line 147...
147
  variable names starting with the name of the interface to that external
147
  variable names starting with the name of the interface to that external
148
  package followed by $emph _$emphend will have special meanings for that
148
  package followed by $emph _$emphend will have special meanings for that
149
  interface, and should be reserved for that purpose.
149
  interface, and should be reserved for that purpose.
150
  </li>
150
  </li>
151
</ul>
151
</ul>
152
 
-