Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. guidoc
    3. Post
    G

    guidoc

    @guidoc

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 2
    • Post 4
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    Età 59
    0
    Reputazione
    4
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da guidoc

    • Funzioni per verifica validità carte di credito

      Ciao a tutti, nel norum ho trovato i seguemti scripts. qualcuno mi sa dire come applicarli?

      io ho una pagina con un modulo ed ho i seguenti campi:

      • Tipo carta = cctype
      • Numero Carta = ccnumber
      • Cod. di Controllo = cvc_code

      l'ho messo on-line ma credo che non ha i controlli dovuti, ovvero non da il minimo avviso. cosa sbaglio?

      <%
      Function ValidCcNumber(ccnumber)
      ccnumber = cleanccnum(ccnumber)
      If ccnumber = "" then
      validccnumber = false
      Else
      iseven = false
      digits = ""
      For i = len(ccnumber) to 1 step -1
      If iseven then
      digits = digits & cint(mid(ccnumber, i, 1))*2
      Else
      digits = digits & cint(mid(ccnumber,i,1))
      End if
      iseven= (not iseven)
      Next
      checksum = 0
      For i = 1 to len(digits) Step 1
      checksum = checksum + cint(mid(digits, i, 1))
      Next
      validccnumber = ((checksum mod 10)=0)
      End if
      End function
      %>
      <%
      Function ValidCcType(ccnumber,cctype)
      ValidCcType = true
      If cctype = "Visa" then
      If CInt(cleanccnum(Left(ccnumber,1))) <> 4 then ValidCcType = false
      Elseif cctype = "MasterCard" then
      If not (CInt(cleanccnum(Left(ccnumber,2))) > 50 and CInt(cleanccnum(Left(ccnumber,2))) < 56) then ValidCcType = false

      Elseif cctype = "AmericanExpress" then
          If not CInt(cleanccnum(Left(ccnumber,2))) = 34 and not CInt(cleanccnum(Left(ccnumber,2))) = 37 then ValidCcType = false
      Elseif cctype = "DinersClubCarteBlanche" then
          If not (CInt(cleanccnum(Left(ccnumber,3))) > 299 and CInt(cleanccnum(Left(ccnumber,3))) < 306) and not CInt(cleanccnum(Left(ccnumber,2))) = 37 and not CInt(cleanccnum(Left(ccnumber,2))) = 36 and not CInt(cleanccnum(Left(ccnumber,2))) = 38 then ValidCcType = false
      Elseif cctype = "Discover" then
          If not CInt(cleanccnum(Left(ccnumber,2))) = 6011 then ValidCcType = false
      End if
      

      End function
      %>
      <%
      Function ValidCcLength(ccnumber,cctype)
      ValidCcLength = true
      If cctype = "Visa" then
      If Len(ccnumber) <> 16 and Len(ccnumber) <> 13 then ValidCcLength = false
      Elseif cctype = "MasterCard" then
      If Len(ccnumber) <> 16 then ValidCcLength = false
      Elseif cctype = "AmericanExpress" then
      If Len(ccnumber) <> 15 then ValidCcLength = false
      Elseif cctype = "DinersClubCarteBlanche" then
      If Len(ccnumber) <> 14 then ValidCcLength = false
      Elseif cctype = "Discover" then
      If Len(ccnumber) <> 16 then ValidCcLength = false
      End if
      End function
      %>
      <%
      Function ValidCvcLength(cvc_code,cctype)
      ValidCvcLength = true
      If cctype = "Visa" then
      If Len(cvc_code) <> 3 then ValidCvcLength = false
      Elseif cctype = "MasterCard" then
      If Len(cvc_code) <> 3 then ValidCvcLength = false
      Elseif cctype = "AmericanExpress" then
      If Len(cvc_code) <> 4 then ValidCvcLength = false
      Elseif cctype = "DinersClubCarteBlanche" then
      If Len(cvc_code) <> 3 then ValidCvcLength = false
      Elseif cctype = "Discover" then
      If Len(cvc_code) <> 3 then ValidCvcLength = false
      End if
      End function
      %>
      <%
      Function cleanccnum(ccnumber)
      For i = 1 to len(ccnumber)
      If isnumeric (mid(ccnumber, i, 1)) then
      cleanccnum = cleanccnum & mid(ccnumber, i,1)
      End if
      Next
      End function
      %>

      Grazie

      postato in Coding
      G
      guidoc
    • RE: Validazione carte di credito in asp - Luhn formula

      ciao madai,

      scusa la mia ignoranza.... come faccio ad applicare queste funzioni?

      postato in Coding
      G
      guidoc
    • RE: Lancio il Crawling e non accade alcunchè

      è un programma per generare sitemap.xml.
      non fa il crawl delle pagine
      mi sono però avveduto che c'è un errore sulla pagina. può essere dovuto all'errore sulla pagina?

      postato in News Ufficiali da Connect.gt
      G
      guidoc
    • Lancio il Crawling e non accade alcunchè

      Ciao a tutti,

      dopo aver reinstallato il Gsite crawler ho provato a fare il crawl di un sito ma non accoda le url nella sezione show. chi mi può aiutare?

      Grazie

      postato in News Ufficiali da Connect.gt
      G
      guidoc