home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / FAQ / cgi-bin / discus4_00 / source / usrlogin.tmpl < prev    next >
Text File  |  2009-11-06  |  9KB  |  252 lines

  1. # FILE: usrlogin.tmpl
  2. # DESCRIPTION: Log in to profile editor or board
  3. # Copyright (c) 2002, DiscusWare, LLC, all rights reserved
  4. # -------------------------------------------------------------------------------------------
  5. # Translation note: This file is drawn from language.conf and should not itself need
  6. # to be translated.
  7.  
  8. <!--BEGIN-->
  9. <#simple variables#>
  10. <#if $general->{screen} eq "uilogin"#>
  11.     <#define $pagetitle = "$L{UILOGIN_TITLE}"#>
  12.     <#define $instr = "$L{UILOGIN_LOGIN}"#>
  13.     <#define $pageaction = "uilogin"#>
  14.     <#define $extratext = "<#unescape "$GLOBAL_OPTIONS{login_message}"#>"#>
  15.     <#define $logintext = "$L{PROFILE_LOGIN_BUTTON}"#>
  16. <#else#>
  17.     <#if $general->{messagecode} == 0#>
  18.         <#define $pagetitle = "$L{PROFEDIT_TITLE}"#>
  19.         <#define $instr = "$L{PROFILE_LOGIN}"#>
  20.         <#define $logintext = "$L{PROFILE_LOGIN_BUTTON}"#>
  21.     <#else#>
  22.         <#if $general->{messagecode} >= 1 && $general->{messagecode} <= 3#>
  23.             <#if $editor->{action} eq "editpost"#>
  24.                 <#define $pagetitle = "$L{PED_TITLE}"#>
  25.                 <#define $logintext = "$L{PED_TITLE}"#>
  26.             <#else#>
  27.                 <#define $pagetitle = "$L{DELETEPOST_TITLE}"#>
  28.                 <#define $logintext = "$L{DELETEPOST_TITLE}"#>
  29.             <#endif#>
  30.         <#else#>
  31.             <#define $pagetitle = "$L{QUICK_ADMIN_TITLE}"#>
  32.             <#define $logintext = "$L{QUICK_ADMIN_BUTTON}"#>
  33.             <#if $editor->{auth} == 1#>
  34.                 <#define $extratext = "$L{QUICK_ADMIN_AUTH_MESSAGE}"#>
  35.             <#else#>
  36.                 <#define $extratext = "$L{QUICK_ADMIN_DESCR}"#>
  37.             <#endif#>
  38.         <#endif#>
  39.     <#endif#>
  40. <#endif#>
  41.  
  42. <html>
  43. <head>
  44. <title>$pagetitle</title>
  45. <style>
  46. <!--
  47. body { font-family: $color->{face}; line-spacing: 0 }
  48. td.nb { font: 10pt $color->{face} }
  49. -->
  50. </style>
  51. <#define $pagetitle = "$pagetitle"#>
  52. <#insert part () "cookie_icons_offset"#>
  53. <#define $onLoadJS = "document.lif.username.focus()"#>
  54. <#insert part () "dynamic_top"#>
  55. <#if $browser->{dhtml} == 0#><font face="$color->{face}" size="$color->{size}">
  56. <#if $general->{error}#>
  57.     <p>
  58.     <b>$L{PROFILE_LOG_IN_DESCRIPTION}</b>
  59.     </p>
  60. <#endif#>
  61.  
  62. <#if $general->{messagecode} > 0#>
  63.     <p>
  64.     <#if $general->{messagecode} == 1#>
  65.         <#if $editor->{action} eq "editpost"#>
  66.             $L{ENTER_USERNAME_TO_EDIT}
  67.         <#else#>
  68.             $L{ENTER_USERNAME_TO_DELETE}
  69.         <#endif#>
  70.     <#endif#>
  71.     <#if $general->{messagecode} == 2#>
  72.         <#if $editor->{action} eq "editpost"#>
  73.             $L{PRED_EDIT_SORRY_NOAUTHOR}
  74.         <#else#>
  75.             $L{DELETE_SORRY_NOAUTHOR}
  76.         <#endif#>
  77.     <#endif#>
  78.     <#if $general->{messagecode} == 3#>
  79.         $L{EDITING_PROHIBITED_QUEUE}
  80.     <#endif#>
  81.     </p>
  82. <#endif#>
  83.  
  84. <#if $general->{screen} eq "uilogin"#>
  85.     <form action="$script_url/discus.$cgi_extension" method="post" name="lif">
  86. <#else#>
  87.     <form action="$script_url/board-profile.$cgi_extension" method="post" name="lif">
  88. <#endif#>
  89.  
  90. <input type="hidden" name="forcedest" value="$general->{forcedest}">
  91.  
  92. <#if $general->{authentication_error}#>
  93.     <p>
  94.     <table border=0 width="600" bgcolor="#a03333">
  95.     <tr>
  96.     <td width="25" align="center" valign="center"><img src="$icon_url/attention.gif" height="20" width="20" border="0" alt="!!"></td>
  97.     <td><font face="$color->{face}" size="2" color="#ffffff">
  98.         <b>$L{SHORT_SWEET_AUTHENTICATION_ERROR_BOLD_PART}</b>
  99.         $L{SHORT_SWEET_AUTHENTICATION_ERROR_NORMAL_PART}
  100.         </font><br>
  101.         <font face="$color->{face}" size="1" color="#ffffff">
  102.         $L{SHORT_SWEET_AUTHENTICATION_ERROR_SECOND_LINE}</font>
  103.         </td>
  104.     </tr>
  105.     </table>
  106.     </p>
  107. <#endif#>
  108.  
  109. <#if $editor->{arg} == 1#>
  110.     <p>
  111.     <table border=0 width="600" bgcolor="#a03333">
  112.     <tr>
  113.     <td width="25" align="center" valign="center"><img src="$icon_url/attention.gif" height="20" width="20" border="0" alt="!!"></td>
  114.     <td><font face="$color->{face}" size="2" color="#ffffff">
  115.         <b>Error:</b>
  116.         Privilege Denied
  117.         </font><br>
  118.         <font face="$color->{face}" size="1" color="#ffffff">
  119.         You are not authorized to perform this administrative action within this topic.</font>
  120.         </td>
  121.     </tr>
  122.     </table>
  123.     </p>
  124. <#endif#>
  125.     
  126. <#if $general->{messagecode} == 0#>
  127.     <input type="hidden" name="action" value="login">
  128.     <input type="hidden" name="script" value="<#form escape "$calling_script"#>">
  129.     <input type="hidden" name="query_string" value="<#escape "$ENV{QUERY_STRING}"#>">
  130. <#else#>
  131.     <#if $general->{messagecode} >= 1 && $general->{messagecode} <= 3#>
  132.         <input type="hidden" name="action" value="$editor->{action}">
  133.         <input type="hidden" name="page" value="$editor->{page}">
  134.         <input type="hidden" name="postid" value="$editor->{postid}">
  135.     <#else#>
  136.         <input type="hidden" name="action" value="$editor->{action}">
  137.         <input type="hidden" name="HTTP_REFERER" value="$editor->{HTTP_REFERER}">
  138.         <input type="hidden" name="postindex" value="$editor->{postindex}">
  139.         <input type="hidden" name="do" value="$editor->{do}">
  140.     <#endif#>
  141. <#endif#>
  142. <#if $pageaction ne ""#>
  143.     <input type="hidden" name="pg" value="$pageaction">
  144. <#endif#>
  145.  
  146. <#if $extra->{reqd} > 0#>
  147.     <p>
  148.     <#if $extra->{reqd} == 1#>$L{FUNCTION_RESTRICTION_USER}
  149.     <#if $extra->{reqd} == 2#>$L{FUNCTION_RESTRICTION_MODERATOR}
  150.     </p>
  151. <#else#>
  152.     <p>$extratext</p>
  153.     <#if $GLOBAL_OPTIONS{login_message_hide_default} == 0 && $general->{messagecode} == 0#>
  154.         <p>$instr</p>
  155.     <#endif#>
  156. <#endif#>
  157.  
  158.  
  159. <table border=1 width=600 cellpadding=5 cellspacing=0 bordercolor="$color->{alt_10}" bordercolordark="$color->{alt_9}" bordercolorlight="$color->{alt_10}">
  160. <tr>
  161. <td height=20 width=600 bgcolor="$color->{alt_1}" colspan=2><font color="$color->{alt_2}" face="$color->{face}" size="$color->{size}"><b>$L{UILOGIN_TITLE}</b></font></td>
  162. </tr>
  163. <tr>
  164. <td width=100 valign=center align=right bgcolor="$color->{alt_10}"><font color="$color->{text}" face="$color->{face}" size="$color->{size}"><b>$L{PROFILE_USERNAME}</b></font></td>
  165. <td width=475 valign=center bgcolor="$color->{alt_10}"><input type=text name="username" size=15 value="$fill->{user}"></td>
  166. </tr>
  167. <tr>
  168. <td width=100 valign=center align=right bgcolor="$color->{alt_10}"><font color="$color->{text}" face="$color->{face}" size="$color->{size}"><b>$L{PROFILE_PASSWORD}</b></font></td>
  169. <td width=475 valign=center bgcolor="$color->{alt_10}"><input type=password name="password" size=15 value="$fill->{pass}"></td>
  170. </tr>
  171. <tr>
  172. <td width=100 valign=center align=right bgcolor="$color->{alt_10}"> </td>
  173. <td width=475 valign=center bgcolor="$color->{alt_10}">
  174.     <input type="submit" value="$logintext">
  175.     <#if $arg->{escape_url} ne ""#>
  176.         <input type="button" value="{#if $editor->{action} eq "editpost"#}$L{EDITING_POST_CANCEL}{#else#}$L{DELETING_POST_CANCEL}{#endif#}" onClick="self.location = '$arg->{escape_url}';">
  177.     <#endif#>
  178.     <#if $editor->{escape_url_2} ne ""#>
  179.         <input type="button" value="$L{QUICK_ADMIN_CANCEL}" onClick="self.location = '$editor->{escape_url_2}';">
  180.     <#endif#>
  181.     </td>
  182. </tr>
  183.  
  184. <#if pro && $general->{messagecode} != 4 && $GLOBAL_OPTIONS{forgotten_pw_util}#>
  185.     <tr>
  186.     <td width=100 valign=center align=right bgcolor="$color->{alt_10}"> </td>
  187.     <td width=475 valign=center bgcolor="$color->{alt_10}">
  188.         <font color="$color->{text}" face="$color->{face}" size="$color->{size}">
  189.         <#define $l = "$L{PROFILE_FORGOT_PASSWORD_AS_TEXT}"#>
  190.         <#replace "%aopen" with "<a href="$script_url/board-profile.$cgi_extension?action=forgot">" in $l#>
  191.         <#replace "%aclose" with "</a>" in $l#>
  192.         $l
  193.         </font>    
  194.         </td>
  195.     </tr>
  196. <#endif#>
  197.  
  198. <#if pro && $general->{messagecode} != 4 && $GLOBAL_OPTIONS{allow_selfreg}#>
  199.     <tr>
  200.     <td height=20 width=600 bgcolor="$color->{alt_1}" colspan=2><font color="$color->{alt_2}" face="$color->{face}" size="$color->{size}"><b>$L{PROFILE_REGISTER_WORD}</b></font></td>
  201.     </tr>
  202.     <tr>
  203.     <td width=100 valign=center align=right bgcolor="$color->{alt_10}"> </td>
  204.     <td width=475 valign=center bgcolor="$color->{alt_10}">
  205.         <font color="$color->{text}" face="$color->{face}" size="$color->{size}">
  206.         $L{PROFILE_REGISTER_SCREEN_FRONT}
  207.         </font>
  208.         </td>
  209.     </tr>
  210.     <tr>
  211.     <td width=100 valign=center align=right bgcolor="$color->{alt_10}"> </td>
  212.     <td width=475 valign=center bgcolor="$color->{alt_10}">
  213.         <#if $browser->{mozilla} >= 2#>
  214.             <input type=button onClick="self.location = '$script_url/board-profile.$cgi_extension?action=register';" value="$L{PROFILE_REGISTER_BUTTON}">
  215.         <#else#>
  216.             <a href="$script_url/board-profile.$cgi_extension?action=register">$L{PROFILE_REGISTER_BUTTON}</a>
  217.         <#endif#>
  218.     </td>
  219.     </tr>
  220. <#endif#>
  221.  
  222. <#if pro && $general->{messagecode} != 4 && $GLOBAL_OPTIONS{secure_topics_file} == 2#>
  223.     <tr>
  224.     <td height=20 width=600 bgcolor="$color->{alt_1}" colspan=2><font color="$color->{alt_2}" face="$color->{face}" size="$color->{size}"><b>$L{UILOGIN_GUEST_ACCESS}</b></font></td>
  225.     </tr>
  226.     <tr>
  227.     <td width=100 valign=center align=right bgcolor="$color->{alt_10}"> </td>
  228.     <td width=475 valign=center bgcolor="$color->{alt_10}">
  229.         <font color="$color->{text}" face="$color->{face}" size="$color->{size}">
  230.         $L{UILOGIN_GUEST_INSTR}
  231.         </font>
  232.         </td>
  233.     </tr>
  234.     <tr>
  235.     <td width=100 valign=center align=right bgcolor="$color->{alt_10}"> </td>
  236.     <td width=475 valign=center bgcolor="$color->{alt_10}">
  237.         <#if $browser->{mozilla} >= 2#>
  238.             <input type=button onClick="self.location = '$script_url/discus.$cgi_extension?pg=topics&access=guest';" value="$L{UILOGIN_GUEST}">
  239.         <#else#>
  240.             <a href="$script_url/discus.$cgi_extension?pg=topics&access=guest">$L{UILOGIN_GUEST}</a>
  241.         <#endif#>
  242.     </td>
  243.     </tr>
  244. <#endif#>
  245. </table>
  246.  
  247. </form>
  248.  
  249. <#insert part () "dynamic_bottom"#>
  250. <#if $arg->{back} ne ""#> <!-- $arg->{back} --> <#endif#>
  251. <!--END-->
  252.