<% @ Language=VBScript %> <% Option Explicit %> <% '**************************************************************************************** '** Copyright Notice '** '** Web Wiz Forums(TM) '** http://www.webwizforums.com '** '** Copyright (C)2001-2008 Web Wiz(TM). All Rights Reserved. '** '** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS UNDER LICENSE FROM 'WEB WIZ'. '** '** IF YOU DO NOT AGREE TO THE LICENSE AGREEMENT THEN 'WEB WIZ' IS UNWILLING TO LICENSE '** THE SOFTWARE TO YOU, AND YOU SHOULD DESTROY ALL COPIES YOU HOLD OF 'WEB WIZ' SOFTWARE '** AND DERIVATIVE WORKS IMMEDIATELY. '** '** If you have not received a copy of the license with this work then a copy of the latest '** license contract can be found at:- '** '** http://www.webwizguide.com/license '** '** For more information about this software and for licensing information please contact '** 'Web Wiz' at the address and website below:- '** '** Web Wiz, Unit 10E, Dawkins Road Industrial Estate, Poole, Dorset, BH15 4JD, England '** http://www.webwizguide.com '** '** Removal or modification of this copyright notice will violate the license contract. '** '**************************************************************************************** '*************************** SOFTWARE AND CODE MODIFICATIONS **************************** '** '** MODIFICATION OF THE FREE EDITIONS OF THIS SOFTWARE IS A VIOLATION OF THE LICENSE '** AGREEMENT AND IS STRICTLY PROHIBITED '** '** If you wish to modify any part of this software a license must be purchased '** '**************************************************************************************** 'Set the response buffer to true as we maybe redirecting Response.Buffer = True Response.Expires = -1 Response.ExpiresAbsolute = Now() - 2 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "No-Store" 'Dimension veriables Dim strMode 'Holds the page mode (eg admin) Dim lngUserProfileID 'Holds the profile ID of the user Dim dblFileSpaceUsed 'Holds the amount of file space used Dim blnUploadFolderExsist 'Set to true if the user has an upload folder Dim strFileName Dim objFSO Dim objFSOfile Dim strFileType Dim intFileSize Dim strFileExtension Dim blnFileUploadDetails blnUploadFolderExsist = False blnFileUploadDetails = False 'If the user is not allowed kick 'em If bannedIP() OR blnActiveMember = False OR blnBanned OR intGroupID = 2 OR (blnAttachments = false AND blnImageUpload = false) OR blnACode OR strInstallID = "" Then 'Clean up Call closeDatabase() 'Redirect Response.Redirect("insufficient_permission.asp" & strQsSID1) End If 'Read in the mode of the page strMode = Trim(Mid(Request.QueryString("M"), 1, 1)) 'If this is not an admin but in admin mode then see if the user is a moderator If blnAdmin = False AND strMode = "A" AND blnModeratorProfileEdit Then 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Permissions.Moderate " & _ "FROM " & strDbTable & "Permissions " & _ "WHERE (" & strDbTable & "Permissions.Group_ID = " & intGroupID & " OR " & strDbTable & "Permissions.Author_ID = " & lngLoggedInUserID & ") AND " & strDbTable & "Permissions.Moderate=" & strDBTrue & ";" 'Query the database rsCommon.Open strSQL, adoCon 'If a record is returned then the user is a moderator in one of the forums If NOT rsCommon.EOF Then blnModerator = True 'Clean up rsCommon.Close End If 'Get the user ID of the memebr being edited by the admin and set to the users upload directory If (blnAdmin OR (blnModerator AND LngC(Request.QueryString("PF")) > 2)) AND strMode = "A" Then lngUserProfileID = LngC(Request.QueryString("PF")) strUploadFilePath = strUploadOriginalFilePath & "/" & lngUserProfileID 'Get the logged in ID number Else lngUserProfileID = lngLoggedInUserID End If 'Check the user has an upload folder, if they have uploaded annything blnUploadFolderExsist = userUploadFolder(strUploadFilePath) 'If the uopload folder exsists get the size If blnUploadFolderExsist Then 'Get the amount if file space used by this person dblFileSpaceUsed = folderSize(strUploadFilePath) Else dblFileSpaceUsed = 0 End If 'If an upload has occured display trhe file details If Request.QueryString("UL") = "true" AND Request.QueryString("FN") <> "" Then 'Read in the file name strFileName = Trim(Request.QueryString("FN")) 'Filer for malicous code strFileName = removeAllTags(strFileName) 'If the user has an upload folder display the contents If blnUploadFolderExsist Then 'Create the file system object Set objFSO = Server.CreateObject("Scripting.FileSystemObject") 'Check to make sure file exsists If objFSO.FileExists(Server.MapPath(strUploadFilePath) & "\" & strFileName) Then 'Create a file object with the file details Set objFSOfile = objFSO.GetFile(Server.MapPath(strUploadFilePath) & "\" & strFileName) 'Read in the file details strFileName = objFSOfile.Name strFileType = objFSOfile.Type intFileSize = CInt(objFSOfile.Size / 1024) strFileExtension = LCase(objFSO.GetExtensionName(objFSOfile.Name)) 'Set to true blnFileUploadDetails = True End If End If End If 'If active users is enabled update the active users application array If blnActiveUsers Then 'Call active users function saryActiveUsers = activeUsers("", strTxtFileManager, "file_manager.asp", 0) End If 'Clean up Call closeDatabase() 'Set bread crumb trail strBreadCrumbTrail = strBreadCrumbTrail & strNavSpacer & strTxtFileManager %> <% = strTxtFileManager %> <% '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** Response.Write("" & vbCrLf & vbCrLf) '***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** %>

<% = strTxtFileManager %>


" title="<% = strTxtControlPanel %>" class="tabButton"> <% = strTxtControlPanel %> <% = strTxtControlPanel %> " title="<% = strTxtProfile2 %>" class="tabButton"> <% = strTxtProfile2 %> <% = strTxtProfile2 %><% If blnEmail Then %> " title="<% = strTxtSubscriptions %>" class="tabButton"> <% = strTxtSubscriptions %> <% = strTxtSubscriptions %><% End If 'Only disply other links if not in admin mode If strMode <> "A" AND blnActiveMember AND blnPrivateMessages Then %>  <% = strTxtBuddyList %> <% = strTxtBuddyList %><% End If 'If the user is user is using a banned IP redirect to an error page If blnAttachments OR blnImageUpload Then %> " title="<% = strTxtFileManager %>" class="tabButtonActive"> <% = strTxtFileManager %> <% = strTxtFileManager %><% End If 'If in demo mode or alloted space is 0 set the file upload to full (prevents divsion errors later) If blnDemoMode OR intUploadAllocatedSpace = 0 Then dblFileSpaceUsed = 0.001 intUploadAllocatedSpace = 0.001 End If %>

<% = strTxtFileManager %>
<% = strTxtFileExplorer %>
<% = strTxtNewUpload %> " title="<% = strTxtNewUpload %>" class="fileManLink"><% = strTxtNewUpload %>   

<% = strTxtAllocatedFileSpace %>
<% = strTxtYouHaveUsed & " " & dblFileSpaceUsed & "MB " & strTxtFromYour & " " & intUploadAllocatedSpace & "MB " & strTxtOfAllocatedFileSpace %>
" />
0MB <% = FormatNumber(DblC(intUploadAllocatedSpace / 2), 1) %>MB <% = intUploadAllocatedSpace %>MB

<% = strTxtFileProperties %>
<% = strTxtFileName %>:
<% = strTxtFileSize %>:
<% = strTxtFileType %>:
<% = strTxtDownloadFile %>:

<% = strTxtNewUpload %> " title="<% = strTxtNewUpload %>" class="fileManLink"><% = strTxtNewUpload %>   <% = strTxtDeleteFile %> <% = strTxtDeleteFile %>

<% = strTxtFilePreview %>

<% '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** If blnLCode = True Then If blnTextLinks = True Then Response.Write("Bulletin Board Software by Web Wiz Forums® version " & strVersion & "") If blnACode Then Response.Write(" [Free Express Edition]") Else Response.Write("") If blnACode Then Response.Write("
Powered by Web Wiz Forums Free Express Edition") End If Response.Write("
Copyright ©2001-2008 Web Wiz") End If '***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** 'Display the process time If blnShowProcessTime Then Response.Write "

" & strTxtThisPageWasGeneratedIn & " " & FormatNumber(Timer() - dblStartTime, 3) & " " & strTxtSeconds & "
" %>
<% 'If an image has been uploaded show it in the preview window If blnFileUploadDetails Then Response.Write("") End If 'Display an alert message letting the user know the topic has been deleted If Request.QueryString("DL") = "True" Then Response.Write("") End If 'Display an alert message letting the user know the topic has been deleted If Request.QueryString("UL") = "true" Then Response.Write("") End If %>