[slbackup-commit] CVS update: slbackup-php/templates login.tpl

finnarne-guest at alioth.debian.org finnarne-guest at alioth.debian.org
Wed Apr 18 06:30:41 UTC 2007


  User: finnarne-guest
  Date: 07/04/18 06:30:41

  Modified:    templates login.tpl
  Log:
  make the use possibility of using the application without https an option
  
  Revision  Changes    Path
  1.6       +11 -4     slbackup-php/templates/login.tpl
  
  Index: login.tpl
  ===================================================================
  RCS file: /cvsroot/slbackup/slbackup-php/templates/login.tpl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- login.tpl	18 Apr 2007 05:58:55 -0000	1.5
  +++ login.tpl	18 Apr 2007 06:30:41 -0000	1.6
  @@ -20,14 +20,21 @@
       <FORM action="index.php" name=login method=POST>
   	{t 1=$backupuser 2=$backuphost}To read the configuration, you must log in as %1 on %2.{/t}<BR>
   	{t 1=$backupuser 2=$backuphost}Please enter the password for the %1 account on %2:{/t}<BR>
  -	{if $https == "" }
  +	{if $nonhttps == "warn" }
   	    <B>
   	    {t}WARNING: you are about to send you password over an unencrypted link, please ask your administrator to enable https{/t}
   	    <BR>
   	    </B>
           {/if}
  -	<INPUT type=password name=Passwd><BR>
  -	<INPUT type=submit name=login value="{t}Login{/t}">
  -	<INPUT type=reset name=Reset value="{t}Reset{/t}">
  +	{if $nonhttps == "deny" }
  +	    <B>
  +	    {t}Login to this application is denied without the use of https. Please ask your administrator to enable https{/t}
  +	    <BR>
  +	    </B>
  +        {else}
  +	    <INPUT type=password name=Passwd><BR>
  +	    <INPUT type=submit name=login value="{t}Login{/t}">
  +	    <INPUT type=reset name=Reset value="{t}Reset{/t}">
  +        {/if}
       </FORM>
   </html>
  
  
  



More information about the slbackup-commit mailing list