% function getThisPage() Dim sPath Dim lLastSlashPosition Dim sCurrPage Dim lPathLength sPath = Request.ServerVariables("PATH_INFO") lLastSlashPosition = instrrev(sPath, "/") lPathLength = len(Request.ServerVariables("PATH_INFO")) getThisPage = right(sPath, (lPathLength-lLastSlashPosition)) end function %> <% on error resume next Dim pathCounter Dim filecounter Dim myfile Dim visita pathCounter="/public/" filecounter = pathcounter & getthispage() & ".txt" myfile=server.mappath(filecounter) Set fs=CreateObject("Scripting.FileSystemObject") if fs.fileExists(myfile) then Set a=fs.OpenTextFile(myfile) visita=Cdbl(a.ReadLine) else Set a=fs.CreateTextFile(myfile, False) a.WriteLine("0") visita=0 end if a.close if Len(Session(filecounter))=0 then Session(filecounter)=visita visita=visita+1 Set a=fs.CreateTextFile(myfile, True) a.WriteLine(visita) a.Close end if set fs = nothing %>
Documenti |
tipo | MB |
Copertina | __ | |
Volume I | ||
Deliberazione N. 711 del 13
giugno 2005 | __ | |
Ordinanza
n. 49 del 1 aprile 2005 Il Commissario di Governo per l'Emergenza Bonifiche e Tutela delle Acque nella Regione Campania delegato ex OO.P.CM | __ | |
Piano Regionale | 1,5 | |
Piano Regionale - Appendice - Siti potenzialmente Inquinati | 1,09 | |
Volume II | ||
Schede anagrafe | 2,1 |