Posted By

Tagged

Who likes this?

DirectAdmin API sample script

Do not use this php file exactly as it is.
It's only to demonstrate the basics of the api.
You must do form checking to ensure safe values are passed.
Also, it's a really bad and very insecure practice to put a form like this publicly on your website for anyone to use.
If you do, you'll end up with a server full users you did not create (this script creates accounts without any involvment with an admin: bad)