Current time: 11-25-2024, 02:57 PM Hello There, Guest! (LoginRegister)


Post Reply 
Recoding the php frontend
Author Message
ispcomm Offline
Junior Member
*

Posts: 93
Joined: Apr 2008
Reputation: 3
Post: #1
Recoding the php frontend
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
(This post was last modified: 05-19-2008 09:21 AM by ispcomm.)
05-17-2008 04:42 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Recoding the php frontend - ispcomm - 05-17-2008 04:42 AM
RE: Reconding the php frontend - Cube - 05-17-2008, 08:09 PM
RE: Reconding the php frontend - kilburn - 05-17-2008, 09:12 PM
RE: Reconding the php frontend - ispcomm - 05-17-2008, 10:26 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)