rejetto forum

Software => HFS ~ HTTP File Server => FHFS => Topic started by: raybob on October 28, 2011, 09:13:03 PM

Title: An HFS Software Bundle made by Me
Post by: raybob on October 28, 2011, 09:13:03 PM
So today I decided to take an hour and hastily cram some code from my website into a cool little software package I call 'FHFS' or FTP/HTTP File Server.  Basically it takes HFS, combines it with FileZilla, and adds a ton more features.  I plan to improve on it a lot sometime and make it more different than my website and I kinda rushed putting it together (the logo was made in MS Paint in 2 minutes), but before I start a website for it or whatever, I'm going to put it here so you guys can download it and tell me what you think :)  It's based on portions of simplified code of what you would find at http://www.filesplat.com/  If you read the code you will see a lot of parts that don't connect or don't make sense and that's because I rushed through making things work as well as that I have several half-finished projects on my website.

I've implemented lots of cool things like account creation, FTP, Thumbnails, MP3 streaming, folder size, user preferences, LOG OUT BUTTON, email support, contact form, etc., so hopefully you guys will like it...

Let me know what you think!   ;D  I might make this into an open-source project.

http://www.filesplat.com/FHFS/FHFS-b4.exe (beta 4)
Title: Re: An HFS Software Bundle made by Me
Post by: crazyboris on October 31, 2011, 06:14:45 PM
very nice.!!!!!
but i cant activaite my new account.
i never get any mail.
it tryes to send mails but no mails in infolder or trash folder
Title: Re: An HFS Software Bundle made by Me
Post by: crazyboris on October 31, 2011, 06:33:56 PM
i have to goto the validationtemp folder and get the validate code myself.
the mails is never sent.
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on October 31, 2011, 09:03:08 PM
Your email must be improperly configured....  Check the 'sendemail.txt' log in the Logs folder and tell me what the error code is (if you can't figure it out yourself).

Please help me figure out anything to fix   ;)   I've already fixed a ton of broken features from beta 4....  You might notice that none of the AJAX file functions work   :o
Title: Re: An HFS Software Bundle made by Me
Post by: fraguk on November 01, 2011, 05:58:11 PM
When i try to login, useing my user name and password it just hangs nothing happends...

01/11/2011 17:49:35 -- 1929 -------- GOT MAIN PAGE --------
01/11/2011 17:49:36 -- 1929 Requested GET /
01/11/2011 17:49:36 ---1929 Served 2.90 K
01/11/2011 17:49:47 ---1929 Requested GET /images/favicon-gray.png
01/11/2011 17:49:47 ---1929 Not served: 404 - Not found
01/11/2011 17:50:19 ---1933 Requested POST /~ajax.signin
01/11/2011 17:50:19 ---1933 Served 29

Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 01, 2011, 06:50:06 PM
I've debugged a ton of things so far but that's not one of them....  Did you put the installation in the program files folder?

Upload your macros log (debug section)
Title: Re: An HFS Software Bundle made by Me
Post by: fraguk on November 01, 2011, 09:41:48 PM
I've debugged a ton of things so far but that's not one of them....  Did you put the installation in the program files folder?

Upload your macros log (debug section)

yes installed in program files , with no errors..
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 01, 2011, 11:40:26 PM
GO to Debug>Enable Macros Log... upload it here or email it to administrator@filesplat.com
Title: Re: An HFS Software Bundle made by Me
Post by: fraguk on November 02, 2011, 01:24:19 AM
email with logs,html sent.
Title: Re: An HFS Software Bundle made by Me
Post by: rejetto on November 02, 2011, 08:20:38 PM
wow! :)
i can advice, for a web page for your project, to use my wiki, or otherwise weebly.com
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 02, 2011, 10:28:13 PM
How can I use your wiki?  I just set up a wiki on my server but it would definitely be much easier to maintain here since I wouldn't have to run Apache on port 81...
Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 03, 2011, 09:15:08 PM
Raybob95,

First, I would like to say, awesome work! It's everything I wanted. However, I can't get registration to work. There are no logs in the FHFS\Logs folder either. Where does it place the validation code? Also, will it work if I use my gmail account to put in the emailsettings text file? For example, I have "smtp.gmail.com:587" for the email server and then use my gmail login and password. Will that work or do I need to use my own dedicated smtp server? Can you please help me understand this?

Thanks,
Dom
Title: Re: An HFS Software Bundle made by Me
Post by: Dragon_Hunter on November 03, 2011, 09:23:14 PM
Hello! It's just e-mail thing is a little problem with I have the same problem that it is not sendmail to the signing ..
Title: Re: An HFS Software Bundle made by Me
Post by: Dragon_Hunter on November 03, 2011, 09:24:59 PM
have to go in and retrieve the activation code itself. You can find it in "validationtemp" folder
Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 03, 2011, 09:48:19 PM
That's weird cuz "validationtemp" folder is empty.

Does anybody know of a fix for this yet?
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 03, 2011, 10:31:44 PM
Anyone with problems try the new version at http://www.sourceforge.net/projects/fhfs/files/latest/download

Note that if your email provider requires SSL (most do) then you need to manually change the email executable....

For Version 1.1 I'm creating an installer you operate through your browser that will automatically set the config, email, etc.
Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 03, 2011, 11:56:32 PM
raybob95,

Thank you for the new version!

In your instructions, you said to download the sendemail with the link you provided. Do I rename the sendemail.exe to email.exe and put it in the same directory as the original email.exe? what about the sendemail.pl file?

I'm still not able to get it to work. Does it keep a log somewhere? I'm still not seeing anything in the validationtemp folder either. I'm currently testing it on windows 7 pro 64-bit version. Can you please advise?

Thanks!
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 04, 2011, 12:02:23 AM
The logs are all in the logs folder... upload them here or send them to administrator@filesplat.com.  All you need is the EXE, the PL is just perl source code.  Yes, rename it to email.exe.

Also try enabling the macros log (go to the Debug section in HFS) and send that also.

EDIT:  I've already found (yet another) bug where the email won't send if you didn't specify a BCC address... try filling that in.

------
And now yet another version.... I'm not very thorough with testing  ;)

I fixed two errors... there was a javascript error keeping the new account page from working right + if the BCC address was blank it wouldn't send the email.

http://www.sourceforge.net/projects/fhfs/files/latest/download
also.... http://www.fhfs.tk/
Title: Re: An HFS Software Bundle made by Me
Post by: rejetto on November 04, 2011, 10:57:02 AM
How can I use your wiki? 

just create an account and you are free to create/edit new pages.
www.rejetto.com/wiki
Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 04, 2011, 05:35:08 PM
raybob95,

That fixed it. I'm able to get the email now!

I'll continue testing it and will let you know if anything comes up.

Thanks again.
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 04, 2011, 07:59:05 PM
Later today I'm gonna put up v1.1 which has a graphical installer (saves email data, ssl certs automatically) AND completely fixes the SSL email problem with no extra setup required :)
Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 04, 2011, 09:57:35 PM
new account works up until the service or the computer is restarted then it doesn't recognize the account. It keep "invalid username, Email or Password. If you entered both your email and username, they must match the same account." I've looked in the VFS and the user virtual folder is no longer there. I can still see the user text file and email file in the fhfs\users directory.


Also, I've tried creating a second account but it keeps telling me only one account can be created. Is there a limit of one account per IP address or something? I've tried using different names and different emails but nothing works.

Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 04, 2011, 10:54:58 PM
accounts that are created manually cannot log in. For example, if I go into the users accounts unders Options and try to create an account, the new account won't be able to login. The browser would try to authenticate the new user but the timed out eventually.
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 05, 2011, 12:50:29 PM
Right, because there's more that's used to authenticate accounts than just HFS itself.. read the ajax.submission script :)   If your accounts are disappearing then your INI/VFS aren't getting saved for some odd reason.  That would be an HFS problem not an FHFS problem.

Also, after the first time you log on to an account, a cookie is stored saying you've already signed up, and this is what HFS checks for.  It only gets deleted after you delete an account over HTTP, but you can try clearing it yourself.  Only the cookie tells HFS you're signed up, not an IP address.

Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 06, 2011, 03:11:10 AM
OK, version 1.1.  Includes an installer that comes up the first time you visit HFS.  From 127.0.0.1 it will show the installer from everywhere else it will deny, until the setup file is detected. You can put in all your options and email info in a nice looking interface through your browser.  If you check the box that says use SMTP SSL, then SendEmail will be filtered through STunnel, so it's much more likely to work.  No more manually editing TXT files for setup and no more downloading separate EXEs for SSL Email. Completely automatic :)

https://sourceforge.net/projects/fhfs/files/latest/download
Title: Re: An HFS Software Bundle made by Me
Post by: crazyboris on November 06, 2011, 04:21:15 PM
cant even reg a account.
all i get is this.

You cannot create more than one account.

i dont have any account at all.
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 06, 2011, 06:23:56 PM
Clear your cookies.

Get version 1.1 and run the installer.
Title: Re: An HFS Software Bundle made by Me
Post by: crazyboris on November 07, 2011, 05:18:09 PM
i was using the 1.1 version.
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 07, 2011, 07:35:45 PM
Clear your cookies.
Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 08, 2011, 12:26:17 AM
Figured out the problem why created users weren't sticking after a reboot or restarting of the service. After installation, the FHFS folder doesn't inherit all the security permissions from the C:\ for some reason. To resolve the issue, I gave the user who installed the program read,write & edit permission to that entire folder. Alternatively, you can make the FHFS inherit all the permissions from the root of C. All the settings should be able to save correctly after that.

As for creating multiple users with the same browser, a simple clearing of the cookies in your browser should do that trick.

Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 08, 2011, 12:57:54 AM
Raybob,

I'm trying to change the background to something other than black for the page right after they have successfully logged in, which file is that? The page that says, "Good Afternoon, User." I can't seem to find that file anywhere.

Thanks,
Dom
Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 08, 2011, 01:12:56 AM
Nevermind, I found it.
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 08, 2011, 02:23:05 AM
the FHFS folder doesn't inherit all the security permissions from the C:\ for some reason.

As for creating multiple users with the same browser, a simple clearing of the cookies in your browser should do that trick.


1) That shouldn't affect every computer though and would react the same way with regular HFS

2) In V1.1 there's an option for that... run the installer.  :)


Also anyone asking for help please make sure you're running the newest version before you ask because I'm constantly finding and fixing things that got screwed up and new builds come every couple days as I have time (though not for a while after now)


Also note that the following has already been fixed for 1.1.1 (just put up) and then that will probably be the last or at least penultimate version for a while...

Fix: Submission script was still checking for signed up cookie even if the option was disabled
Improve: Decompressed the ajax.signin script, ADDED COMMENTS
Fix: The browser would redirect to a nonexistant page if clicking submit on the signin prompt w/o input
Improve: More small changes to the readme
Fix: Browsing with the URL http://localhost/ would loop a redirect
Improve: Re-wrote the wrongemail2 alert on the newaccount page
Improve: If signing in with the validation ID cookie, it redirects
Fix: Shared folder buttonheaders weren't as wide as they should have been
Title: Re: An HFS Software Bundle made by Me
Post by: rednyle on November 09, 2011, 12:15:04 AM
Raybob,

Which file is for creating folders when a new user is created? The default creates music, photos, my documents and videos but I just want my documents to be there and nothing else.

Also, which file controls the panel for current user, directory, file actions, other actions, etc..? I want to turn off some of those features certain users.

Thanks,
Dom
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 09, 2011, 02:50:19 AM
Direct any questions here (http://www.fhfs.tk:81/forum/) please/thanks.....
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 11, 2011, 07:35:22 PM
Hey guys for the next major version (1.2 maybe), would anyone have any interest in incorporating MySQL into FHFS rather than just using TXT files to store values?

I found a way to load/manipulate SQL databases in HFS even w/o the actual SQL protocol....  This for example will print a value loaded from SQL onto the page:

Code: [Select]
{.set|command|use FHFS; SELECT value FROM data WHERE name='greeting'; .}
{.exec|"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysql.exe" "--defaults-file=C:\Program Files\MySQL\MySQL Server 5.5\my.ini" -uroot -p{.get account|{.^username.}|password.} "--execute={.^command.}" |out=return .}
{.set|return|{.replace|value
||{.^return.}.}.}
{.^return.}

The only problem here is that this method is exceedingly slow.  Even with default HFS options, a (very) long query can take >10 seconds  :(
Title: Re: An HFS Software Bundle made by Me
Post by: crazyboris on November 12, 2011, 09:19:19 AM
i have a problem.
files that are uploaded without accound cant be downloaded.
you get to the download page and have to wait 5 sec , but then nothing happends.
in hfs you can see that the download page is requesting the file.

in iexplore file is never uploaded.
well in hfs it says file is uploaded but its not in the shared folder.

when you use firefox the file IS uploaded and is in the shared folder , but cant be downloaded.


using the 1.1.1 version.
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on November 12, 2011, 02:40:04 PM
1) Don't ask for help if you're not on the latest version

2) Direct any questions here (http://www.fhfs.tk:81/) please/thanks.
Title: Re: An HFS Software Bundle made by Me
Post by: Petro on January 12, 2012, 10:00:26 AM
Is the FHFS-Forum down? Can't connect...

When I start FHFS-Server it opens the Browser on 127.0.0.1
but only displays that Page is under construction.
Port-forwarding done as written in Readme.

Edit:
If i type 127.0.0.1:xxxx = the port I use   it displays me
a FHFS-Error Page with
"ERROR 403 - Unallowed
This server is not yet configured.
Read the readme, run the installer."

But where or how can I configure this???
Title: Re: An HFS Software Bundle made by Me
Post by: raybob on January 14, 2012, 10:38:33 PM
You're not supposed to change the port until after you've run the installer.

Note that changing ports often doesn't work in 1.3.2, but will work completely in 2.0 which is coming out soon.

Also the forum was down for a while while I migrated to a new server but it's up again.