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

Last change on this file since 27803 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
RevLine 
[7343]1# this file must be UTF-8 encoded
2
[382]3package authen
4
5#######################################################################
6# page content
7#######################################################################
8
[876]9_pagetitle_ {_textGSDLtitle_}
[382]10
11_content_ {
[725]12<br><br><br><br>
[23519]13_If_("_activateweb20_" eq "1",
14 <form name="login" method="get" action="_gwcgi_">
15,
16 <form name="login" method="post" action="_gwcgi_">
17)
[876]18<input type=hidden name="e" value="_If_(_cgiarger_,_cgiarger_,_decodedcompressedoptions_)">
[382]19_hiddenargs_
[12554]20<center><table width="_pagewidth_">
[1129]21<tr><td>
22_messagestatus_
23</td></tr>
[382]24
[1129]25<tr><td>
[1363]26<table><tr><td>_textusername_</td>
[1129]27<td><input type="text" name="un" value="_cgiargun_" size=10></td>
28<td></td></tr>
29<tr><td>_textpassword_</td>
[12554]30<td><input type="password" name="pw" size="10"></td>
[3080]31<td><input type="submit" value="_textsignin_"></td>
[1129]32</tr>
[382]33</table>
[1363]34</td></tr>
[1129]35</table>
[12554]36</center>
[382]37</form>
38}
39
40
[876]41_messageinvalid_ {_textmessageinvalid_}
[382]42
[876]43_messagefailed_ {_textmessagefailed_}
[382]44
45_messageenabled_ {}
46
[876]47_messagedisabled_ {_textmessagedisabled_}
[382]48
[876]49_messagepermissiondenied_ {_textmessagepermissiondenied_}
[382]50
[876]51_messagestalekey_ {_textmessagestalekey_}
[382]52
53
54#################################
55# when authentication is accepted
56#################################
57
58package authenok
59
60
61#######################################################################
62# page content
63#######################################################################
64
[876]65_pagetitle_ {_authen:textGSDLtitle_}
[382]66
67_content_ {
68_authen:messagestatus_
69}
Note: See TracBrowser for help on using the repository browser.