Bonjour,
Ci-dessous le code source d'une page ASP de mon site.
La page réel du site est à cette adresse Elle permet en théorie a mes clients de s'identifier... hors maintenant ça me balance une "erreur 500 le site ne peut pas afficher la page".
Donc, si quelqu'un pouvait regarder le code source de cette page et me dire, si apriorio il est correcte (j'imagine que non vu le résultat) où bien m'indiqué les problèmes repérés ?? Merci d'avance !!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134 <!-- #include virtual = "/param/param.inc" --> <!-- #include file="fct_menu.txt" --> <!-- #include file="encode.txt" --> <% msg="" MotDePasse=request("MOTDEPASSE") MOTCLE=request("MOTCLE") if MOTCLE = "" then MotDePasse=session("PASSE") MOTCLE=session("ACCES") end if codescorrects=VerificationAbonne(MOTCLE,MOTDEPASSE) if codescorrects > 0 then session("PASSE")=MOTDEPASSE session("ACCES")=MOTCLE session("idabo")=codescorrects Response.Redirect("consultationCompte.asp?"&crypt("MC="&MOTCLE&"&MDP="&MOTDEPASSE)) else if MOTCLE<>"12345678" then msg="<br>Votre code d'accès ou votre mot de passe est incorrect." end if end if%> <html> <head> <%=FormatePage("Votre compte abonné")%> <table BORDER=0 CELLPADDING=0 CELLSPACING=0 Width="100%" height="100%"><TR height=25><TD colspan="2"><font size=0pt> </font></TD></TR><TR><TD width="100%" colspan="2"><A NAME="4"></A><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width="100%"><TR><td width="5%"></td><TD ALIGN="LEFT" VALIGN="MIDDLE" WIDTH="15%"><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr></table></TD><td width="5%"></td><TD ALIGN="CENTER" VALIGN="MIDDLE" WIDTH="65%"> <div align=center><FONT face=Arial color=#003399 size=4><STRONG><EM><FONT color=#eeeeee> Gestion du </FONT> <FONT color=#ffb820>COMPTE ABONNE</FONT> </EM></STRONG></FONT> </div> </TD><td width="10%"></td></TR></TABLE></TD></TR><TR height=50><TD colspan="2"><font size=0pt> </font></TD></TR> </td> <tr valign="middle" align="left"> <td colspan="2"> <p class="textg"><span class="bleu"> Entrez le code d'accès qui vous a été fourni, ainsi que le mot de passe que vous avez choisi, <font face="Verdana, Arial, Helvetica, sans-serif" size="2" color= rgb(255,0,0)> en respectant majuscule minuscule</font>.<br> <%=msg%> </span></p> </td> </tr> <form method="POST" action="CodeAccesVallon.asp"> <tr valign="middle"> <td align="right"> <p class="textng"><span class="noir"> Votre code d'accès: </span></p> </td> <td align="left"> <input name="MOTCLE" size="40" tabindex="10"> </td> </tr> <tr valign="middle"> <td align="right"> <p class="textng"><span class="noir"> Votre mot de passe: </span></p> </td> <td align="left"> <input name="MOTDEPASSE" size="40" tabindex="11" type="password"> </td> </tr> <tr valign="middle"> <td colspan="2" align="center"> <input name="BT-EFFACER" tabindex="23" type="reset" value="Effacer"> <input name="BTENVOYER" tabindex="22" type="submit" value="Envoyer"> </td> </tr> <tr valign="middle" align="center"> <td colspan="2"> </td> </tr> <tr valign="middle" align="center"> <td colspan="2"> <a href="jemabonne.asp">Je m'abonne</a> </td> </tr> </form> </TD></TR><tr height=100%><td width="100%" colspan=2> </TD></TR></table> </td> </tr> </table> </td> </tr> </table> </body> </html> <script LANGUAGE="VBSCRIPT" RUNAT="SERVER"> function VerificationAbonne (motcle,MotDePasse) set rstVerifAbonne = CreateObject("ADODB.Recordset") rstVerifAbonne.Open "SELECT IDENTIFIANTABONNE FROM c_i_ABONNE WHERE site<>'anafinance' and MOTCLE ='"&MOTCLE&"' AND MOTDEPASSE='"&MOTDEPASSE&"'" , _ strConnexion if rstVerifAbonne.EOF or rstVerifAbonne.BOF then VerificationAbonne=0 else VerificationAbonne=CInt(rstVerifAbonne.fields("IDENTIFIANTABONNE")) end if end Function </script>
Partager