Stato:
Disconnesso
Membro Valutato:
Top 5 Invii (#1)
Inviata - 24/03/2011 : 11:24:55
web portal on the left side there is' the gallery members, as well as set up and take the path of the file folders in the forum, I must be able to change his path and take the path Public / attach the uploaded file can you help me thanks
<% '################################################################################# '## Ver.3.4.07 multi-language Skin3D Portal V2 '################################################################################# '## Copyright (C) 2001-10 Gaëtan Dupont All Rights Reserved '## '## By using this program, you are agreeing to the terms of the '## GNU General Public License. '## '## This program is free software; you can redistribute it and/or '## modify it under the terms of the GNU General Public License '## as published by the Free Software Foundation; either version 2 '## of the License, or (at your option) any later version. '## '## All copyright notices regarding ImageForums2001 must remain intact '## in the scripts and in the outputted HTML. '## The "Image Forums 2001" text with a link back to '## http://www.forums2001.ca in the footer of the pages MUST '## remain visible when the pages are viewed on the internet or intranet. '## '## Support can be obtained from support forums at: '## http://www.forums2001.ca '## '## E-mail: imageforums2001@hotmail.com '## '################################################################################# %> <!--#INCLUDE FILE="config.asp"--> <!--#INCLUDE FILE="inc_func_common.asp" --><%
set my_Conn= Server.CreateObject("ADODB.Connection") my_Conn.Open strConnString
strDBNTUserName = Request.Cookies(strUniqueID & "User")("Name") if strAuthType = "nt" then strDBNTUserName = Session(strCookieURL & "userID") end if
Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.GetFile(strPhysicalPath) Set objFolder = objFile.ParentFolder Set objFolderContents = objFolder.Files for each Folder in objFolder.SubFolders
if Left(Folder.Name,1)<>"_" then Response.write "<option " if ShowSub=Folder.Name Then Response.Write("selected ") Response.Write "value='" & CurFile & "?ShowSub=" Response.Write(Replace(Folder.Name, " ", "%20")) Response.Write "'>" Response.Write(Folder.Name & "</option>") if ShowSub <= " " then ShowSub = Folder.Name end if end if next
strPhysicalPath = Server.MapPath(".\" & ShowSub) if ShowSub > " " then ShowSub = Replace(ShowSub, " ", "%20") Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder(strPhysicalPath) Set objFolderContents = objFolder.Files for Each objFileItem in objFolderContents
if Ucase(Right(objFileItem.Name,4))=".GIF" OR Ucase(Right(objFileItem.Name,4))=".JPG" then ShowPic = Replace(objFileItem.Name, " ", "%20") ' Response.Write " <td align='center' width='25%'><a href=" & ShowSub & "\" Response.Write " <td align=""center"" width=""33%""><a href=" & CurFile & "?ShowPic=" & ShowSub & "\" & ShowPic ' Response.Write(Replace(objFileItem.Name, " ", "%20")) Response.Write ">" Response.Write("<img src=""" & ShowSub & "\" & objFileItem.Name & """ width=""120"" border=""0"">") Response.Write("<center><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>" & Mid(objFileItem.Name,1,Len(objFileItem.Name)-4) & "</b></font></center>") Response.write "</a><br /></td>" PictureNo = PictureNo + 1 if PictureNo=3 then Response.write "</tr><tr>" PictureNo = 0 end if end if next
Set objFSO = nothing end if
Response.Write " </tr>" & vbNewline & _ " </table>" & vbNewline end if end if %><!-- #INCLUDE FILE="inc_footer_short.asp" --><% Response.End %>