does anyone know

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
amt167
-


Joined: 02 Jun 2002
Posts: 75

PostPosted: Wed Feb 04, 2004 8:16 am    Post subject: does anyone know Reply with quote

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 View user's profile Send private message Send e-mail
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Wed Feb 04, 2004 10:19 am    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Feb 04, 2004 2:36 pm    Post subject: Re: does anyone know Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group