Rev 9071 | Rev 15218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9071 | Rev 11282 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | 32 | ||
33 | Wims is accessed by a request to the main cgi program, for example |
33 | Wims is accessed by a request to the main cgi program, for example |
34 | <pre> |
34 | <pre> |
35 | http://wims.unice.fr/wims/wims.cgi |
35 | http://wims.unice.fr/wims/wims.cgi |
36 | </pre> |
36 | </pre> |
- | 37 | <p> |
|
37 | which usually should be followed by parameters. A call to the main wims.cgi |
38 | which usually should be followed by parameters. A call to the main wims.cgi |
38 | program without parameter will bring up the wims homepage of the site. |
39 | program without parameter will bring up the wims homepage of the site. |
39 | 40 | </p><p> |
|
40 | Parameters of wims.cgi is a usual http $emph name=value$emphend pair, where the |
41 | Parameters of wims.cgi is a usual http $emph name=value$emphend pair, where the |
41 | $emph name$emphend field may be one of the following: |
42 | $emph name$emphend field may be one of the following: |
42 | </p> |
43 | </p> |
43 | <ul> |
44 | <ul> |
44 | <li><span |
45 | <li><span class="wims_emph">cmd</span>: the value is the command of the call. |
45 | Valid commands: |
46 | Valid commands: |
46 | $table_header |
47 | $table_header |
47 | $table_tr<th>Parameter string</th><th>Meaning</th></tr> |
48 | $table_tr<th>Parameter string</th><th>Meaning</th></tr> |
48 | $table_tr<td>cmd=intro</td><td>get introduction page of the module</td></tr> |
49 | $table_tr<td>cmd=intro</td><td>get introduction page of the module</td></tr> |
49 | $table_tr<td>cmd=new</td><td>open new working session</td></tr> |
50 | $table_tr<td>cmd=new</td><td>open new working session</td></tr> |
Line 55... | Line 56... | ||
55 | $table_tr<td>cmd=hint</td><td>get contextual hint</td></tr> |
56 | $table_tr<td>cmd=hint</td><td>get contextual hint</td></tr> |
56 | $table_tr<td>cmd=resume</td><td>resume work (e.g. after help)</td></tr> |
57 | $table_tr<td>cmd=resume</td><td>resume work (e.g. after help)</td></tr> |
57 | $table_tr<td>cmd=getins</td><td>get dynamic insertions: internal use<br/> |
58 | $table_tr<td>cmd=getins</td><td>get dynamic insertions: internal use<br/> |
58 | by the server. Not to be used by modules.</td></tr> |
59 | by the server. Not to be used by modules.</td></tr> |
59 | </table> |
60 | </table> |
60 | </li><li><span |
61 | </li><li><span class="wims_emph">module</span>. the value is the name of the module |
61 | which the user wants to access. <br/> |
62 | which the user wants to access. <br/> |
62 | </li><li><span |
63 | </li><li><span class="wims_emph">session</span>: the value is the number of the current |
63 | session of the user. <br/> |
64 | session of the user. <br/> |
64 | The session number is automatically generated by wims.cgi, and is usually |
65 | The session number is automatically generated by wims.cgi, and is usually |
65 | automatically contained in the pages sent by the server. Tampering with this |
66 | automatically contained in the pages sent by the server. Tampering with this |
66 | parameter by the user (e.g. in order to spy into others' work) is not |
67 | parameter by the user (e.g. in order to spy into others' work) is not |
67 | allowed and has practically no chance to get through. |
68 | allowed and has practically no chance to get through. |
68 | </li><li><span |
69 | </li><li><span class="wims_emph">lang</span>: the value defines the prefered language |
69 | of the user. |
70 | of the user. |
70 | </li><li><span |
71 | </li><li><span class="wims_emph">user</span>: the value is the user name (for |
71 | registered users; reserved for internal use). |
72 | registered users; reserved for internal use). |
72 | </li><li><span |
73 | </li><li><span class="wims_emph">useropts</span>: the value contains user options for the |
73 | server. The format is coded and may varie from version to version. |
74 | server. The format is coded and may varie from version to version. |
74 | </li><li><span |
75 | </li><li><span class="wims_emph">worksheet</span>: reserved for internal use, for |
75 | determining user works assigned by worksheets. |
76 | determining user works assigned by worksheets. |
76 | </li><li><span |
77 | </li><li><span class="wims_emph">special_parm</span>: this parameter is reserved for |
77 | special requests (help, etc). |
78 | special requests (help, etc). |
78 | </li><li>Any variables accepted by the module on which the user is working on (or |
79 | </li><li>Any variables accepted by the module on which the user is working on (or |
79 | wants to work on). |
80 | wants to work on). |
80 | </li></ul> |
81 | </li></ul> |
81 | 82 |