View previous topic :: View next topic |
Author |
Message |
amt167 -
Joined: 02 Jun 2002 Posts: 75
|
Posted: Wed Feb 04, 2004 8:16 am Post subject: does anyone know |
|
|
does any one know what the following means and how to do it???
Calling Admin Functions from 3rd Party Products
To envoke an API call, you should POST data to port 443 via PHP or CURL type program. You will need to pass very specific variable data to the system.
The following data should be send:
api=active
aun=[admin_username]
apw=[admin_password]
dom=[domain_name]
act=add
newun=[add_new_un]
newpw=[add_new_pw]
This variable data tells the script that the API call is active and provides the data to act accordingly. In order to protect sensitive data, you will must use MD5 encryption when passing admin username and password data to the system script. DO NOT encrypt new username and passwords for adding domains. The system will then interpret the data properly and securely.
Here is an example of an API call written in PHP to add a new domain to the system:
// ADD A NEW DOMAIN USER TO SOHOLAUNCH WEB STUDIO WITH BILLING SYSTEM UN/PW
$host = "mywebsite.com";
$buf = "";
$data = "api=active";
$data .= "&aun=21232f297a57a5a743894a0e4a801fc3"; // MD5 UN
$data .= "&apw=21232f297a57a5a743894a0e4a801fc3"; // MD5 PW
$data .= "&dom=newdomain.org";
$data .= "&act=add";
$data .= "&newun=domainun";
$data .= "&newpw=xV23rtFF";
if ($fp = fsockopen($host,443)) {
fputs($fp, "POST /admin.php HTTP/1.1\n");
fputs($fp, "Host: $host\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\n");
fputs($fp, "Content-length: " . strlen($data) . "\n");
fputs($fp, "User-Agent: MSIE\n");
fputs($fp, "Connection: close\n\n");
fputs($fp, $data);
fclose($fp);
} // End if socket opens |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Wed Feb 04, 2004 10:19 am Post subject: |
|
|
It means you're looking at a script that won't work on Abyss :wink: Port 443 is HTTPS/SSL which Abyss doesn't currently support. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Feb 04, 2004 2:36 pm Post subject: Re: does anyone know |
|
|
Can you give us more information about the context? (what is this script, what should it do?) _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|