source: main/trunk/greenstone2/macros/authen.dm@ 31975

Last change on this file since 31975 was 28898, checked in by ak19, 10 years ago
  1. The cgiargq query variable is now no longer escaped in the 3 simply or large forms that use it. fqv and other js escaped fields are unchanged, since the jssafe now ensures that backslashes are escaped for macro files, so these resolve correctly in query.dm. 2. securitytools.cpp and .h updated to additionally escape back slashes for macro files when javascript escaping. This is done by default, since jssafe variants of cgiargs are all that are used, and they're used in macro files. 3. Encoded versions of decodedcompressedoptions are now used in all macro files. They're always used in attributes, so the attrsafe version which is set in receptionist.cpp is used.
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1# this file must be UTF-8 encoded
2
3package authen
4
5#######################################################################
6# page content
7#######################################################################
8
9_pagetitle_ {_textGSDLtitle_}
10
11_content_ {
12<br><br><br><br>
13_If_("_activateweb20_" eq "1",
14 <form name="login" method="get" action="_gwcgi_">
15,
16 <form name="login" method="post" action="_gwcgi_">
17)
18<input type=hidden name="e" value="_If_(_cgiarger_,_cgiargerAttrsafe_,_decodedcompressedoptionsAttrsafe_)">
19_hiddenargs_
20<center><table width="_pagewidth_">
21<tr><td>
22_messagestatus_
23</td></tr>
24
25<tr><td>
26<table><tr><td>_textusername_</td>
27<td><input type="text" name="un" value="_cgiargunAttrsafe_" size=10></td>
28<td></td></tr>
29<tr><td>_textpassword_</td>
30<td><input type="password" name="pw" size="10"></td>
31<td><input type="submit" value="_textsignin_"></td>
32</tr>
33</table>
34</td></tr>
35</table>
36</center>
37</form>
38}
39
40
41_messageinvalid_ {_textmessageinvalid_}
42
43_messagefailed_ {_textmessagefailed_}
44
45_messageenabled_ {}
46
47_messagedisabled_ {_textmessagedisabled_}
48
49_messagepermissiondenied_ {_textmessagepermissiondenied_}
50
51_messagestalekey_ {_textmessagestalekey_}
52
53
54#################################
55# when authentication is accepted
56#################################
57
58package authenok
59
60
61#######################################################################
62# page content
63#######################################################################
64
65_pagetitle_ {_authen:textGSDLtitle_}
66
67_content_ {
68_authen:messagestatus_
69}
Note: See TracBrowser for help on using the repository browser.