PDA

View Full Version : API documentation



Marckus_e
03-09-2004, 06:13 AM
I would like to have the list of commands for the

CMD_DOMAIN

and

CMD_SUBDOMAIN

Can't find it on your API list
http://www.directadmin.com/api.html

Best regards
Marcus

CyberAlien
03-09-2004, 06:55 AM
Those are not exactly API commands - those are commands for skins. And those commands return html page instead of parsable data. API commands that do return parsable data start with CMD_API_

Marckus_e
03-09-2004, 07:03 AM
Okey

CMD_API_DOMAIN
and
CMD_API_SUBDOMAIN
and
CMD_API_REDIRECT

I need documentation over them, the examples of l0rdphi1 doesn't say much (like if there are more values that i can send, like i want to set another dir for the domain to point against)

/Marcus

l0rdphi1
03-09-2004, 08:04 AM
subdomain: http://www.directadmin.com/features.php?id=330
domain: http://www.directadmin.com/api.html ('bout 3/4 the way down that page; only list domains)
There is no CMD_API_ for redirects yet.

Marckus_e
03-09-2004, 11:29 PM
Any info about the redirect in directadmin?

Want to know how to use that through the php class from l0rdphi1

What i am after is the possiblity to point domains to excisting domains/adresses, redirect that is.

Regards
Marcus

DirectAdmin Support
03-10-2004, 09:41 AM
Hello,

/CMD_DOMAIN_POINTER
method: POST

domain=domain.com
action=add
from=domain.com

Marckus_e
03-11-2004, 02:20 AM
Is this domain pointer the right thing?.. i noticed in the admin program there is site redirection below the advanced menu.

/Best regards
Marcus

DirectAdmin Support
03-11-2004, 09:35 AM
What are you looking to do, forward a domain, or redirect a site?

John

Marckus_e
03-11-2004, 09:52 AM
I solved it.

CMD_REDIRECT ;) sorry for the disturbance!

/Best regards
Marcus