<%@ language="VBSCRIPT"%>
<%
Response.ContentType = "text/vnd.wap.wml"
Response.Expires = 0
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "Cache-Control", "no-cache,must-revalidate"
%>
<%
sub dir(Path,Prefix)

set Folder = fs.GetFolder(Path)
Set SubFolders = Folder.SubFolders

for each SubFolder in SubFolders 
    response.write "<b>" & Prefix & SubFolder.Name & " ( " & round((SubFolder.Size/1000000),2) &  " Mo ) " & "</b><BR>" & vbCrLf
    call dir(SubFolder.Path, Prefix & " - ")
next

Set Files = Folder.Files

for each File in Files 
    'response.write Prefix & File.Name & "<BR>" & vbCrLf
    response.write "<anchor>" & Prefix & File.Name & " ( " & round((File.Size/1000),2) &  " Ko ) " &  "<go href=" & chr(34) & "http://wap.z51.biz/7650/" & request("f") & "/" & File.Name  & chr(34) & " method=" & chr(34) & "get" & chr(34) & "/></anchor>" & _

"<anchor> MailMe" &  "<go href=" & chr(34) & "m.wml?f=/7650/" & request("f") & "/" & File.Name  & chr(34) & " method=" & chr(34) & "get" & chr(34) & "/></anchor>" & "<br/>" & vbCrLf
next

end sub

%>

<%
if (hour(time) < 8 or hour(time) > 19) or Request.servervariables("http_x_up_subno") = "1030454469-2153942_toth.sfr.net" or Request.servervariables("http_x_up_subno") = "A030803214-4197432-nok.sfr.net" then 
%>

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><card title="WapDrive"><p>
<anchor>Retour<go href="http://wap.z51.biz/directory.wml" method="get"/></anchor><br/><br/>
<% 

Set fs = CreateObject("Scripting.FileSystemObject")


call dir("D:\Autres Sites\wap.z51.biz\7650\" & request("f"), "") 
%>
</p></card></wml>

<%
else
%>

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><card title="WapDrive"><p>
Cette partie du site est ouvert de 20h a 8h gmt+1 <br/>
This part of the site is open between 20h and 8h am gmt+1 <br/>
jocool@z51.biz<br/>
</p></card></wml>

<%
end if
%>