ispCP - Board - Support
Subdomains for domain-aliases - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Enhancements (/forum-43.html)
+--- Thread: Subdomains for domain-aliases (/thread-1475.html)

Pages: 1 2 3 4 5 6 7 8


Subdomains for domain-aliases - zpin - 10-08-2007 05:51 PM

I've read somewhere that this feature is already on the roadmap, but I was unable to find it.
I have done a quick implementation of it on my ispcp installation. It consists mostly of code duplicated from the subdomain source, but it works pretty well on my machine.
I have attached the needed files to this post. Just apply the patch and copy the "ispcp-alssub-mngr" into the engine directory and "delete_alssub.php" in gui/client.

I think for a final implementation of this we should consider redesigning the manager code of all the managers a bit. There is lots of duplicated code that could be put in another common file.

[attachment=203]


RE: Subdomains for domain-aliases - push - 01-19-2008 09:34 PM

Thank you very much for this patch zpin!

I made some modifications to the patch and alssub-mngr, so it works with RC3.
Also the sql for the extra table (subdomain_alias) was missing in your .zip.
By 'reverse engineering' Wink, i found out the structure, it's included as well.

Cheers


RE: Subdomains for domain-aliases - zpin - 01-20-2008 10:26 AM

Ah, right... I forgot that Smile
I'll be updating the patch for RC3 once it's released.


RE: Subdomains for domain-aliases - BeNe - 02-16-2008 10:24 PM

Quote:I'll be updating the patch for RC3 once it's released.
RC3 is released Wink
Any news about it ?

Greez BeNe


RE: Subdomains for domain-aliases - joximu - 02-16-2008 10:53 PM

@zpin
please take care - I upload a corrected version of ispcp-als-mngr last night.


RE: Subdomains for domain-aliases - zpin - 02-16-2008 11:15 PM

right, I didn't update to RC3 yet Smile

I'll upload the patches as soon as I've done the update. Could take another week or so...


RE: Subdomains for domain-aliases - zpin - 02-19-2008 01:07 AM

Ok, here's the new package... Same instructions as in the first post:

- apply the patch
- copy "ispcp-alssub-mngr" into the engine directory (default: /var/www/ispcp/engine)
- copy "delete_alssub.php" to gui/client (default /var/www/ispcp/gui/client)
- import subdomain_alias.sql into the ispcp database

"worksforme", no warranties whatsoever Wink


RE: Subdomains for domain-aliases - BeNe - 02-19-2008 04:28 AM

Perfect!
If it works - can we build it in the current trunk ?
Because of the Feature Freeze...

I will try it.

Greez BeNe


RE: Subdomains for domain-aliases - zpin - 02-19-2008 05:04 AM

Sure, do whatever you want with it Smile

It's far from perfect, though. Imho all the "mgr" code (not only my "alssub" addition) should be rewritten to use a central library. Right now the code duplication is crazy Smile If I should ever find the time I'll try to do this, but it doesn't look good at the moment.


RE: Subdomains for domain-aliases - joximu - 02-19-2008 06:17 AM

zpin Wrote:Sure, do whatever you want with it Smile

It's far from perfect, though. Imho all the "mgr" code (not only my "alssub" addition) should be rewritten to use a central library. Right now the code duplication is crazy Smile If I should ever find the time I'll try to do this, but it doesn't look good at the moment.

At least it has an advantage: Since the documentation of the code is worse than the code itself (there is no docu) it's easier to read all the duplications than to jump from function to function in all files... :-)

But of course - good code is looks different... but also has another history Smile