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
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