ispCP - Board - Support
Domain Alias - 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: Domain Alias (/thread-16003.html)



Domain Alias - il_dandi - 04-24-2012 07:42 AM

Hi! I created new alias on specified domain assigned to a new domain.

I inserted new domain (in "Domain name")

"Domain mount point": folder where I'll place file (create this folder inside main domain)

No I confirm but I still show this alias in "Awaiting approval"

Why this?? What I've to do??

Thanks


RE: Domain Alias - ephigenie - 04-24-2012 03:40 PM

You need to login as reseller and approve the Domain Order for you as customer.


RE: Domain Alias - freshwind - 06-28-2012 12:47 PM

(04-24-2012 03:40 PM)ephigenie Wrote:  You need to login as reseller and approve the Domain Order for you as customer.

Hi ephigenie,

is it possible to modify the scripts to make alias/sub-domains get automatically activated once they've been created? i'm tired of getting notified that users are creating new sub-domains.

Thanks!


RE: Domain Alias - ephigenie - 07-04-2012 04:20 PM

yes it is possible of course.


RE: Domain Alias - freshwind - 07-04-2012 06:36 PM

(07-04-2012 04:20 PM)ephigenie Wrote:  yes it is possible of course.

the question is 'how'


RE: Domain Alias - freshwind - 07-17-2012 12:05 PM

:DThe problem's solved by following steps:

Step 1. open the file at /var/www/ispcp/gui/client/alias_add.php
Step 2. find '$status = $cfg->ITEM_ORDERED_STATUS;' (around line 320) change it to '$status = $cfg->ITEM_ADD_STATUS;'
Step 3. find '$admin_login = $_SESSION['user_logged'];' (around line 330) add this line 'send_request();' down below

And it should be working! (tested on ISPCP 1.0.7)

*if you still wanna get notified by email when users add a new alias (remember, you don't have to activate it any more), do step 4, otherwise forget it.

Step 4 find 'if ($status == $cfg->ITEM_ORDERED_STATUS) {' (it's around line 331) change it to 'if ($status == $cfg->ITEM_ADD_STATUS) {'

PLEASE DO REMEMBER to disable the alias approval process is QUITE RISKY! YOU HAVE TO CONFIRM that all users on your server KEPT A GOOD MANNER!