May 30, 2020, 06:18:13 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Mods to addon domain script  (Read 4045 times)
Posts: 2

« on: June 19, 2009, 07:49:17 PM »

I downloaded your addon domain script and it works very well but I need to make a mod to it and I hope someone can help me with this.

When you hit the submit button it goes to the Cpanel server templates what I want it to do is go to a page that I built but only if the addon domain was added ok. If it isnt added correctly it can go to where its going now to the Cpanel templates telling the problem.

IF the above cant be done is it possible to make it so when the submit button is pushed it will go to a page that I built.

I am sure the answer is in this part of the script:

$url = "http://$user:$pass@$domain:2082/frontend/$skin/addon/doadddomain.html?";
$url = $url . "domain=$adomain&user=$auser&pass=$apass";
$result = @file_get_contents($url);
if ($result === FALSE) die("ERROR: Addon Domain not created. Please make sure you passed correct parameters.");
echo $result;

Is there a way to do this?

Jim Mackinlay

Pages: [1]
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC