OK, so I am creating a plugin for internal use that will be used by cpanel users to create their email whitelists and also set a minimum score for spam. I used the cpanel plugin generator to create the basic installer for the icon, etc, but I am not sure about how to then actually handle the creation of the actual contents of the plugin. The installer doesnt really mention anything about that. So if I am using the live API, how am I supposed to automate the creation of x3/mypluginname/branded.live.php, etc?
Secondly, I am storing these settings encoded in a JSON structure and stored in a text file in the users home directory. I then have a script that runs as root and pretty much creates a master json object that includes all the users settings. Now, I am not sure what the best method is for allowing that json data to be available externally to my anti-spam gateways. Id really rather pull it from the gateway instead of push it to it. Any suggestions on the simplest method? Id rather not go through the pain of having to setup ssh accounts and scp the data. I can create a simple api that I could access through curl and simply use a hash for auth and ssl, but where should i make it accessible? Should I just use the servers hostname and use its normal /usr/local/apache/htdocs?
I am open to suggestions and I really appreciate your help brainstorming this. I am sure I am overcomplicating the process, so figured another view on this would help.
Secondly, I am storing these settings encoded in a JSON structure and stored in a text file in the users home directory. I then have a script that runs as root and pretty much creates a master json object that includes all the users settings. Now, I am not sure what the best method is for allowing that json data to be available externally to my anti-spam gateways. Id really rather pull it from the gateway instead of push it to it. Any suggestions on the simplest method? Id rather not go through the pain of having to setup ssh accounts and scp the data. I can create a simple api that I could access through curl and simply use a hash for auth and ssl, but where should i make it accessible? Should I just use the servers hostname and use its normal /usr/local/apache/htdocs?
I am open to suggestions and I really appreciate your help brainstorming this. I am sure I am overcomplicating the process, so figured another view on this would help.