home *** CD-ROM | disk | FTP | other *** search
- <% @ LANGUAGE="VBScript" lcid="1036" %>
- <!--#include file="include.asp"-->
- <%
- Nom2=Replace(request.QueryString("Nom"), "'", "''")
- Passe2=Replace(request.QueryString("Passe"), "'", "''")
-
- Statut2=Replace(request.form("Statut"), "'", "''")
- Ban2=Replace(request.form("Ban"), "'", "''")
- User2=Replace(request.form("User"), "'", "''")
-
- If Ban2 = "ON" Then
- SQLStmt = "UPDATE Utilisateur "
- SQLStmt = SQLStmt & "SET usrstatu = (" & Statut2 & "), usrfin = (true) "
- SQLStmt = SQLStmt & "WHERE usrid=" & User2 & " "
- Set RS = ConnectionBD.Execute(SQLStmt)
- Else
- SQLStmt2 = "UPDATE Utilisateur "
- SQLStmt2 = SQLStmt2 & "SET usrstatu = (" & Statut2 & "), usrfin = (false) "
- SQLStmt2 = SQLStmt2 & "WHERE usrid=" & User2 & " "
- Set RS2 = ConnectionBD.Execute(SQLStmt2)
- End If
- %>
- <html>
-
- <head>
- <meta http-equiv="Content-Language" content="fr">
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
- <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
- <meta name="ProgId" content="FrontPage.Editor.Document">
- <title>ABB</title>
- <style type="text/css">
- <!--
- A:link{text-decoration: none; color: <% =EnvironnementRes("envlnk") %>;}
- A:visited{text-decoration: none; color: <% =EnvironnementRes("envlnk") %>;}
- A:active{text-decoration: underline; color: <% =EnvironnementRes("envvlnk") %>;}
- A:hover{text-decoration: underline; color: <% =EnvironnementRes("envvlnk") %>;}
- -->
- </style>
- </head>
-
- <body bgcolor="<% =EnvironnementRes("envback") %>" text="<% =EnvironnementRes("envtxt") %>" link="<% =EnvironnementRes("envlnk") %>" vlink="<% =EnvironnementRes("envvlnk") %>">
-
- <p align="center"><b><font face="Arial">Modification effectuΘe</font></b>
- </p>
-
- <p align="center">
- </p>
- <%
- longeur1=Len(Nom2)
- longeur2=Len(Passe2)
-
- J=1
- For I=1 To longeur2
- char1=Mid(Nom2,J,1)
- char2=Mid(Passe2,I,1)
- char3=Mid(Passe2,I,1)
- code1=Asc(char1)
- code2=Asc(char2)
- code2=code2-code1
- If code2<0 Then
- code2=code2+255
- End If
- char2=Chr(code2)
- Passe2=Replace(Passe2,char3,char2,1,1)
-
- J=J+1
- If J>longeur1 Then
- J=1
- End If
- Next
- 'DΘ-Cryptage du mot de passe
- %>
- <p align="center"><font face="Arial" size="2"><b><a href="doadmincheck.asp?Nom=<% =Nom2 %>&Passe=<% =Passe2 %>">Retour au menu d'administration</a>
- </b></font></p>
-
- <p align="center">
- <!--#include file="basdepage.asp"-->
- </p>
- </body>
-
- </html>
-