hey great job on the script. It worked the first time i tryed...Since you can create email accounts with this script. With some minor changes you can do almost anything you can do when your logged in as the CPanel Admin.
hmm like create subdirectoies on the fly, forwarding accounts, display stats, add block IP addresses, add delete ftp accounts,add domains...
..its endless.....
I just wonder if there is a Security risk? Some testing i did could not find one.
Again Thanks
like i was saying, anything could be displayed
AWSTATS for 0www.net
not complete code added to cpemail class just to test and hardcoded to 0www.net outblaz was my main domain for my cpanel
\/ \/ \/
function get_awstats() {
$file = fopen ("http://$this->cpuser:$this->cppass@$this->cpip:2082/awstats.pl?config=0www.outblaz.com&lang=en&framename=mainright\" noresize=\"0\" scrolling=\"YES\" frameborder=\"0\"","r");
if (!$file) {
echo "error error error";
}
// Get results
while (!feof ($file)) {
$line = fgets ($file, 1024);
echo $line;
}
fclose($file);
}
}
// Process form
$do = new CPAWSTAT;
$do->get_awstats();