I require a set permissions wrapper for Cpanel. This will be an add in page to an exisitng system therefor it needs to be small and relativly self contained.
A create db wrapper can be provided for reference. All information such as cpanel host, user, pass, and cpanel theme will be session variables that have already been provided:
$_SESSION["cp_host"]
$_SESSION["cp_user"]
$_SESSION["cp_pass"]
$_SESSION["cp_theme"]
location folder: "public_html/" . $_SESSION["ud"]
I must have the abilty to set what files and folders need permissions set and their values (777), (666).
In most cases it will be a log or configuration file and a one folder.