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

Last change on this file since 26560 was 23519, checked in by davidb, 13 years ago

Introduction of 'web-2.0' capabilities, triggered by setting the macro _activateweb20_ to 1. This in turn adds in a 'login' and 'logout' feature in the main navigation bar.

  • 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_,_cgiarger_,_decodedcompressedoptions_)">
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="_cgiargun_" 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.