rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Colossus on July 31, 2015, 04:30:34 PM

Title: Integration Of Other Software
Post by: Colossus on July 31, 2015, 04:30:34 PM
Hi Guys,

Thanks for having me here @ the HFS Forum its a pleasure to be apart of the project, i indicated that i have some big plans for HFS and i do, albeit, my own side projects, or ones im willing to share with you and this is where the post comes into play!

Two things i wanted to ask, the first one was around an integrated mailserver.
Is there someway that later down the track, its worth integrating a Mailserver, or a webmail server, and i understand that this may require PHP, but does it?!!! Im not a programmer, im a Network Administrator - I bring to the table much knowledge on server administration, security, network solutions and more, i also bring onto the table FULL HTML - which is the project im working on at the moment, im still working on having a fully integrated HTML site on HFS that brings as much as possible without the other jargen which i will give out to the HFS world. BUt for the moment - Is there a possibility in the future to maybe have this as an option? using HTML only maybe?!

Not so much a Chat feature, or Chat System - But a full blown MailServer in JS? ;)

One for you to think about if you havent already guys!

I hope you are all well,

Im from Adelaide, Australia but my heart and soul lies in Rhodes, Greece!

Its a pleasure to meet you all and look forward to future dealing with everyone!
Title: Re: Integration Of Other Software
Post by: rejetto on August 01, 2015, 01:36:11 PM
Welcome!
HFS  is not the ideal server to embed other software 
Some integration is possible but don't expect the possibility of PHP.
If you want to send few emails it's possible, and should find how it was done by searching the forum : essentially a command-line mail client controlled through the {.exec.} command of the scripting language of HFS.
Generally you shouldn't try to reinvent the wheel but integrate existing solutions.

Someone worked on simple chat rooms as well 
Title: Re: Integration Of Other Software
Post by: Colossus on August 01, 2015, 03:01:30 PM
Yes, i did notice these features and while they were great, maybe my thinking was a little too outside the box! Keep up the good work you put in and like i said if you need anyone for any networking/solutions - Ill be more than happy to input!
Title: Re: Integration Of Other Software
Post by: bmartino1 on August 03, 2015, 03:58:19 AM
PHP is 50/50..its a bit tricky to bring to HFS, i dabbled in it, ran into some errors with the hfs macro template for the executing of php when needed to run php lines... Possible yes, but requires quite a bit of programming... (i would recommend a combo web server with Apache  or other to bring php...0

as for your email server:

i believe FHFS has/had something for that...
http://www.rejetto.com/forum/fhfs/version-2-0-0-release-download/

Possible html email to...
Example (http://www.w3schools.com/tags/att_a_href.asp)
Link to an email address with a specified subject (will only work if you have mail installed):
<a href="mailto:someone@example.com?Subject=Hello%20again">Send mail!</a>1

other wise there is a javascript email server you can add to your site:
http://emailjs.org/
Title: Re: Integration Of Other Software
Post by: Colossus on September 01, 2015, 05:20:20 AM
managed to get a forum up without php. ill go 4 this mailserver thats been suggested!

how would responsive html5 work with hfs, shouldn't be a problem should it?!?!
Title: Re: Integration Of Other Software
Post by: LeoNeeson on September 01, 2015, 09:05:10 AM
I'm with Rejetto on this. Integrating by default a MailServer inside HFS, is also opening a door to new vulnerabilities. So, I agree with Rejetto.

> Talking about software/systems, my principles are two: "KISS (https://en.wikipedia.org/wiki/KISS_principle)" (keep it simple), "Small Is Beautiful (https://en.wikipedia.org/wiki/Small_Is_Beautiful)" (using always non bloated software).

(http://www.rejetto.com/forum/Themes/default/images/post/lamp.gif)Maybe if HFS add support to plugins or modules in the future, this can be done externally/independently by any interested programmer. But, as far I know, HFS doesn't have plans to support plugins (.dll files). By the way, this can be a great feature to allow extending the capabilities of HFS, without having to integrating them in the HFS core.
Title: Re: Integration Of Other Software
Post by: Colossus on September 01, 2015, 10:17:15 AM
Vulnerabilities are sorted on my neck of the woods ;) In saying all that, i dont think Plugins and Modules would be necessary at all. HFS already has a fabulous depth to it. My thinking was far too over the top i did realise before asking, but you never know where asking could lead! Thanks lads!
Title: Re: Integration Of Other Software
Post by: LeoNeeson on September 02, 2015, 07:55:43 AM
I don't think plugins or modules are necessary, actually (I'm happy with the current features). But it may be of help to anyone wanting to extend the features, without having to fork or modifying the core of HFS. I'm glad you sorted out your question. Cheers.
Title: Re: Integration Of Other Software
Post by: rejetto on September 03, 2015, 12:30:28 PM
HTML5 is not truly related to HFS but the browser only, so the answer is: no problem.