Important alert: (current site time 7/15/2013 9:16:29 AM EDT)
 

winzip icon

Website Explorer V2.0

Email
Submitted on: 9/15/2005 4:12:02 PM
By: Mathew D'Amico 
Level: Intermediate
User Rating: By 8 Users
Compatibility: VB.NET, ASP.NET
Views: 24297
 
     This web based file manager is designed to allow developers to have access to their web server files over the internet. The application supports multiple users with user level permissions on directories, uploads, creation and editing of files and folders. Their are also permissions based off file extensions. The application is also has a text file editor and text file viewer. This is my second try at this type of applcation, the original is still available on this site at http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=147&lngWId=10 . See the readme.txt file for a bit of help getting started. A few items are missing still: allowing user to change password on login screen(admins can change passwords in admin tool now) and change the file permissions in the admin tool. I would also like to add a multiple file upload capability (through zip file uploads, which would then be unzipped on the server). ******************************** Updated 06/26/2004 corrected a few bugs, see comments for details.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

11/8/2003 12:28:03 AMBrian Clark

Very nice.
(If this comment was disrespectful, please report it.)

 
2/3/2004 4:14:35 PM

I get an error saying:
Could not load type 'Explorer.Global'
(If this comment was disrespectful, please report it.)

 
2/3/2004 6:58:34 PMMathew D''Amico

It sounds like asp.net can't find the explorer.dll

Does the folder you unzipped the files to have a bin directory with an explorer.dll file in it?
(If this comment was disrespectful, please report it.)

 
2/29/2004 11:56:21 AM

I can login
(If this comment was disrespectful, please report it.)

 
2/29/2004 11:57:29 AM

Great application ~ I just can't seem to set the permissions correctly as any password changes or any file mgmt aside for seeing the directory listing results with permission denied/server errors.
(If this comment was disrespectful, please report it.)

 
3/4/2004 6:13:24 PMMathew D''Amico

Try creating a D:\Website folder on your hard drive. The default account that is set up has full access to that folder. See if you can get that to work, otherwise you probably need to set permissions to allow the asp.net account to access those folders.
(If this comment was disrespectful, please report it.)

 
5/31/2004 5:08:32 AM

There are no .dll files in the BIN directory of the ZIP-file. Does anybody have a good ZIP-File??
(If this comment was disrespectful, please report it.)

 
6/3/2004 6:55:43 AM

Get the following errormessage in creating new user, please help :-)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentException: Username does not exist.]
Explorer.ExplorerUser.UsernameExists(String username)
Explorer.AdminNewUser.btnCreate_Click(Object sender, ImageClickEventArgs e)
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +109
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackE vent(String eventArgument) +69
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277



(If this comment was disrespectful, please report it.)

 
6/3/2004 10:11:00 PMMathew D''Amico

Uploaded a new zip. Should fix the username does not exist problem when creating a new user.
(If this comment was disrespectful, please report it.)

 
6/24/2004 6:53:27 AM

Hey, It just keeps saying error trying to add new user, but doesnt give me reason why.
(If this comment was disrespectful, please report it.)

 
6/24/2004 7:22:30 AM

dont worry, is fixed. just web admin saying permissions are set when theyre not.
(If this comment was disrespectful, please report it.)

 
6/24/2004 7:58:18 AM

I would just like to say that i uploaded the files to my webserver, and have found out that you dont check which folders the user is browsing against there user permissions. This means any user can use this web app to browse entire server directories viewing any and all source files the wanted. Yeah.. fun days :)
(If this comment was disrespectful, please report it.)

 
6/24/2004 10:04:29 AMMathew D''Amico

I will take a look and see if I can reproduce and fix the items you mentioned.
(If this comment was disrespectful, please report it.)

 
6/25/2004 12:25:36 AM

This was my fix:
In ViewDetails.ascx.vb (SetCurrentDirectory) replace the last part with the following:

Dim row As DataRow = UserPermission.GetPermission(Path.GetFullPath(CurrentDirectory))
If row("Permission") = False Then
If CurrentDirectory <> Session("HomeDirectory") Then
Response.Redirect("Explorer.aspx?dir=" & Session("HomeDirectory"))
row = UserPermission.GetPermission(Path.GetFullPath(Session("HomeDirectory")))
If row("Permission") = False Then
'bad things man, bad things

'Trace.Warn("bad things man", "bad things")
'Response.Redirect("Login.aspx")
End If
End If
End If

(If this comment was disrespectful, please report it.)

 
6/25/2004 12:26:41 AM

Sorry about the lack of formatting in that post
(If this comment was disrespectful, please report it.)

 
6/25/2004 10:27:29 AMMathew D''Amico

Yeah, I came up with a similar fix. Should have a new zip uploaded later today.
(If this comment was disrespectful, please report it.)

 
6/25/2004 5:57:48 PM

There+is+no+explorer%2Edll+in+the+bin+directory+%21
(If this comment was disrespectful, please report it.)

 
6/25/2004 5:58:28 PM

Sorry, but there is NO explorer.dll in the bin directory.
(If this comment was disrespectful, please report it.)

 
6/25/2004 6:15:46 PMMathew D''Amico

PlanetSourceCode removes all dll and exe files from zips(virus prevention). You will need Visual Studio.Net to build this project, or you can send me an email to get the zip with the dll included.
(If this comment was disrespectful, please report it.)

 
10/9/2004 2:51:56 AM

Dear Mathew,
Kindly send me the explorer.dll to my email id ezhilangandhi@yahoo.com
Thx...


(If this comment was disrespectful, please report it.)

 
10/27/2004 5:38:09 AM

Hi Mathew..
I am getting the following error..
-------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30451: Name 'Authorize' is not declared.

Source Error:



Line 5: SUB Page_Load(obj AS object, e AS eventargs)
Line 6: strPass = "qwerty" '<---Set Password Here
Line 7: IF Authorize = "True" THEN
Line 8: Response.Redirect("explorer.aspx")
Line 9: END IF

---------------------------
help me to solve it..

Thx,
Gandhi
(If this comment was disrespectful, please report it.)

 
10/28/2004 2:21:33 AMMathew D''Amico

Are you sure that error is from this project?
(If this comment was disrespectful, please report it.)

 
11/17/2004 7:40:11 AMAnuj Kumar Pandey

Dear,

Just open the application and compile it. it will create the explorer.dll
(If this comment was disrespectful, please report it.)

 
12/9/2004 2:35:14 PM

Matthew-

Great app. I am having an issue where I can not navigate to a folder that I create within my home directory. I can't access it by clicking on it or by selecting the choose directory dropdown. Any ideas?

Thanks for the help.

Jesse
(If this comment was disrespectful, please report it.)

 
1/20/2005 11:10:44 AM

I also need a copy of explorer.dll
Please email to: yan_m@region.durham.on.ca

Thanks
(If this comment was disrespectful, please report it.)

 
4/19/2005 2:46:50 AM

Need to make sure all references to Session(
(If this comment was disrespectful, please report it.)

 
6/23/2005 2:43:46 AM

I'm havinf problem with could not load type thingy..From the previous msgs, i'm aware that i needed the explorer.dll file..where can i get it?my email is mizzaiza@yahoo.com
(If this comment was disrespectful, please report it.)

 
6/27/2005 3:19:58 AM

How big of a file can you upload to the server with this? I will test it out..should get back to this and resend comment. Yeah hopefully my first problem wont be a .dll missing one.. :)
(If this comment was disrespectful, please report it.)

 
6/27/2005 4:10:30 AM

Cant seem to login. Dont wanna play around with With the Validate function, but password <> password tho I can see the username = admin from the db file where the passowrd field is encrypted. I gotta get a way to creating new user before the login screen takes over. What do you think author? Other than that.. the login screen looks neat. Get back to me! I want to see if large files that are over 20MB and up can be uploaded with this to my IIS box. I know there is a config in the web.config that gotta be set but dont remember which ones...
(If this comment was disrespectful, please report it.)

 
6/27/2005 5:04:35 AM

I think this is one of the best designed and coded project I have seen here so far! I like it so much that I am gonna implement it into any project I make. One thing I notice though that kinda disappointed me a bit. What happent to file DOWNLOAD???? or browsing folders? If a user is in his/her HomeDirectory, dont you think they should be access the child folders in it? I am gonna work on making that possible. But Uploading files!!? I just uploaded a 20MB file from my SERVER to my HomeDirectory. They both on the same BOX but atleast I didn't get a Timeout error or Page Contains No Data error. So I will let my Friend test it for me from his computer..I like the app tho, gotta give it up!!
(If this comment was disrespectful, please report it.)

 
9/15/2005 9:09:52 AMjune

cannot login with "admin" & "password". got "Invalid Password" message. anyone have valid password?
(If this comment was disrespectful, please report it.)

 
9/15/2005 11:33:14 PMMathew D''Amico

sorry about that, uploaded a new version with the password set correctly.
(If this comment was disrespectful, please report it.)

 
11/8/2006 3:47:07 AMpuneetjaini

why there is no option to download the file which the user uploaded?
(If this comment was disrespectful, please report it.)

 
12/28/2006 7:14:16 PMZack Owens

It might be best to convert it over to ASP.NET and use the builtin login contrils.
(If this comment was disrespectful, please report it.)

 
12/28/2006 7:14:49 PMZack Owens

OOPS sorry I meant convert it to ASP.NET 2.0
(If this comment was disrespectful, please report it.)

 
2/7/2007 9:41:50 PM

Hi Mathew....
very nice.
but i don't find database...
i want to download Database (Explorer.mdb)
you will share to link email bogia27382@yahoo.com for me. thanks you
(If this comment was disrespectful, please report it.)

 
2/9/2007 7:37:52 PMjayson

I really like this tool but I got a question about the directory thingy. can I use shared folder of the network under same domain as my default directory? Please help...It's good tool though.

Thanks
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.