ispCP - Board - Support
Recoding the php frontend - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Recoding the php frontend (/thread-3317.html)



Recoding the php frontend - ispcomm - 05-17-2008 04:42 AM

I've been digging in the php frontend for the last 2 days (I wrote a controller class to let me import domains from some old ensim servers).

My major disappointment is that I could not use anything of the existing functions because most of the pages contain both functions and raw handling code.

It would have been so nice to include the "domain manipulation class" and then call methods like "add domain", "update domain" etc. Then I could include the "mail" class and add my mail users and the htaccess class etc etc... you get the idea.

Instead I see only hardcoded sql code and ad-hoc functions to handle the browser events and nothing reusable as-is (most of the php pages contain the interaction handling stuff on the bottom).

I ended up copy/pasting the interesing parts in a new file (thus duplicating code etc).

My understanding is that Malte is recoding the php frontend it so it's not a good moment to put hands in this code. It would be nice to think about separating the core logic from the code supporting the user interactions and make this logic available for external scripts (and why not: remote administration etc).

what do you think?

ispcomm


RE: Reconding the php frontend - Cube - 05-17-2008 08:09 PM

The recoding is done by vanancy not malte.
According to RatS Omega is not the right place to do such big changes...


RE: Reconding the php frontend - kilburn - 05-17-2008 09:12 PM

AND there is no point in writing a new gui that uses the same architecture and db system as the current one, because post-omega everthing will get re-engineered (to support multi-server setups, offer an API to interact with the system, etc.)


RE: Reconding the php frontend - ispcomm - 05-17-2008 10:26 PM

I understand. In the mean time I'm releasing my hack-code in the hope it will be usefull:

http://www.isp-control.net/documentation/scripts/controller

Mainly because I need this functionality now and cannot wait for post-omega. This is pre-alpha code but I'm using it to covert servers to omega. It's moving target as you can imagine.

I'm opening a new thread for discussion of this controller here: http://www.isp-control.net/forum/ispcp-controller-class-t-3321.html

ispcomm.