Zubrag.com
October 20, 2019, 11:27:23 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]
  Print  
Author Topic: PHP Addon Domain Script  (Read 7487 times)
jimmack
Newbie
*
Posts: 2


« on: July 08, 2009, 08:49:29 AM »

I am using the addon domain script and it works perfect but is it possible to make it work a little different.

What I need it to do if possible is whenn someone adds a domain and lets say they made it up and its not pointing to our servers to make it go to a page telling them it was no good to try again.

What it is Im trying to do is only when a domain was successfully added it then will take them to a page where they can create their own hosting account.

What we offer is free lifetime hosting with the purchase of 2 domain names one domain name we use for our advertising system which is what this script is for. Then one the domain we get to use is added then they can create their own hosting account and use it for whatever they want to.

Im am sure the answer is here 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;

Anyone out there help me out on this.

Jim

Logged
Pages: [1]
  Print  
 
Jump to:  

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