%@LANGUAGE="VBSCRIPT" CODEPAGE="1252" EnableSessionState=True%> <% Option Explicit response.Redirect("http://streaming.paris.fr/aparis/index.html") response.End() Const Const_allow=" !""#$%&\'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyzç{|}~âäàéèëêïîùûô" Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" Response.Expires = -1 'Dim arrondissement 'Dim mail Dim l1 Dim l2 Dim l3 Dim l4 Dim l5 Dim l6 Dim l7 Dim complete Dim htmlerror Dim post, REFERER Dim SQL, rs Dim i Dim position, c %> <% Function MagicQuote(name) 'MagicQuote=replace(name,"""","""""") If name="" then MagicQuote="" Else MagicQuote=replace(name,"'","''") End If End function Sub IsAllow(s, Byref c, Byref p) Dim t p=0 For i = 1 to len(s) c=mid(s,i,1) t=Instr(1,Const_allow,c) If t=0 Then p = i exit For End If Next End Sub 'arrondissement=Cint(Request("arrondissement")) 'If arrondissement=0 Then Response.Redirect("http://www.v2asp.paris.fr/v2/culture/fetemusique/inscription.asp") Post= (Request.ServerVariables("REQUEST_METHOD") = "POST") REFERER=lcase(Request.ServerVariables("HTTP_REFERER")) 'If session("state")<>"" then response.Redirect("http://www.paris.fr") 'web="http://www." If post and REFERER="http://www.v2asp.paris.fr/v2/actualites/bleus2006/formulaire.asp" then 'mail=request("mail") l1=request("l1") l2=request("l2") l3=request("l3") l4=request("l4") l5=request("l5") l6=request("l6") l7=request("l7") 'Détermination de la complétude Complete=true htmlerror= "
"
'If (mail="")then
' htmlerror=htmlerror&"Veuillez saisir une adresse de courriel.
"
' Complete=false
'Else
' i=Instr(1,mail,"@")
' If i=0 then
' Complete=false
' htmlerror=htmlerror&"L'adresse de courriel n'est pas valide.
"
' Else
' i=Instr(i+1,mail,".")
' If (i=0) or (i>=len(mail)-1) then
' Complete=false
' htmlerror=htmlerror&"L'adresse de courriel n'est pas valide.
"
' End If
' End If
'End If
' Controle des caractères.
If L1="" and L2="" and L3="" and L4="" and L5="" and L6="" and L7="" Then
Complete=false
htmlerror=htmlerror&"Le message est vide.
"
End If
If L1<>"" Then
position=0
c=""
IsAllow l1,c,position
If position>0 Then
htmlerror=htmlerror&"Ligne 1 : le caractère " & c & " (position " & position & ") n'est pas autorisé.
"
Complete=false
End If
End IF
If L2<>"" Then
position=0
c=""
IsAllow l2,c,position
If position>0 Then
htmlerror=htmlerror&"Ligne 2 : le caractère " & c & " (position " & position & ") n'est pas autorisé.
"
Complete=false
End If
End IF
If L3<>"" Then
position=0
c=""
IsAllow l3,c,position
If position>0 Then
htmlerror=htmlerror&"Ligne 3 : le caractère " & c & " (position " & position & ") n'est pas autorisé.
"
Complete=false
End If
End if
If L4<>"" Then
position=0
c=""
IsAllow l4,c,position
If position>0 Then
htmlerror=htmlerror&"Ligne 4 : le caractère " & c & " (position " & position & ") n'est pas autorisé.
"
Complete=false
End If
End if
If L5<>"" Then
position=0
c=""
IsAllow l5,c,position
If position>0 Then
htmlerror=htmlerror&"Ligne 5 : le caractère " & c & " (position " & position & ") n'est pas autorisé.
"
Complete=false
End If
End if
If L6<>"" Then
position=0
c=""
IsAllow l6,c,position
If position>0 Then
htmlerror=htmlerror&"Ligne 6 : le caractère " & c & " (position " & position & ") n'est pas autorisé.
"
Complete=false
End If
End if
If L7<>"" Then
position=0
c=""
IsAllow l7,c,position
If position>0 Then
htmlerror=htmlerror&"Ligne 7 : le caractère " & c & " (position " & position & ") n'est pas autorisé.
"
Complete=false
End If
End if
htmlerror=htmlError& "
Vous avez vibré avec les bleus ?! Afin de soutenir et encourager l’équipe tricolore pour la finale de dimanche soir, nous vous proposons de diffuser vos messages de soutien sur l’ensemble des panneaux lumineux de la Capitale ! Vous pouvez déposer vos messages sur Paris.fr jusqu'à dimanche 16h00, et ils seront diffusés au fur et à mesure jusqu’à dimanche soir. Allez les Bleus !!
<% Response.Write(htmlError) %>
<%End If %>