![]() |
[Updated!] Cpanel library (Supports email & Cron) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: [Updated!] Cpanel library (Supports email & Cron) (/showthread.php?tid=23162) Pages:
1
2
|
[Updated!] Cpanel library (Supports email & Cron) - El Forum - 10-02-2009 [eluser]PromaneX[/eluser] I needed to be able to create e-mail accounts on my cpanel server from within my application so I created a class to do that. I am sharing it here in case anyone else needs this functionality too. I may extend this to include other cpanel functions such as forwarders, auto-replies, sub-domains and such, if anyone needs something, let me know and i will add it for you. cpanel.php - place in system/application/libraries/ UPDATE Quote:I was asked to add support for getting and setting Cron - That feature has now been added.Updated code is in a later post, i reached the max length in this one!!, just replace existing cpanel.php with the new one. [Updated!] Cpanel library (Supports email & Cron) - El Forum - 10-21-2009 [eluser]marinaccio[/eluser] Awesome, I definitely could see this being very useful. Thank you for sharing. [Updated!] Cpanel library (Supports email & Cron) - El Forum - 10-22-2009 [eluser]PromaneX[/eluser] No worries, let me know if you need anything else adding to it and i will do it for you. [Updated!] Cpanel library (Supports email & Cron) - El Forum - 10-22-2009 [eluser]marinaccio[/eluser] Thank you, that sounds great. If I extend it, I'll be sure to post back as well. [Updated!] Cpanel library (Supports email & Cron) - El Forum - 11-29-2009 [eluser]PromaneX[/eluser] New code for the lib - wouldnt fit in first post! Code: <?php [Updated!] Cpanel library (Supports email & Cron) - El Forum - 11-29-2009 [eluser]PromaneX[/eluser] new code pt 2 cpanel.php - config file - place in system/application/config/ Code: <? Next on my list is to add support for getting email account information for existing accounts. I will then slowly work through all of the usable features of cpanel and add support for them. If anyone wants me to give priority to something please let me know! [Updated!] Cpanel library (Supports email & Cron) - El Forum - 11-29-2009 [eluser]renownedmedia[/eluser] Creating sub domains would be kick ass! [Updated!] Cpanel library (Supports email & Cron) - El Forum - 11-30-2009 [eluser]PromaneX[/eluser] [quote author="Thomas Hunter" date="1259575672"]Creating sub domains would be kick ass![/quote] I have written the code for that now, would you like it to be able to list the existing sub domains also? [Updated!] Cpanel library (Supports email & Cron) - El Forum - 11-30-2009 [eluser]Phil Sturgeon[/eluser] As useful as this is, I am concerned about my server sending out the cPanel in plain text. You should make a note on there that the host should only ever be set to localhost, as if you use this to admin other servers you are prone to attack by packet sniffers. Btw, the function http_build_query() will help make your code a little cleaner. And $this->CI->cpanel->get_cron() can just be $this->get_cron(); :-) For people interested in what could be added to this library, take a look here. [Updated!] Cpanel library (Supports email & Cron) - El Forum - 11-30-2009 [eluser]PromaneX[/eluser] [quote author="Phil Sturgeon" date="1259605175"]As useful as this is, I am concerned about my server sending out the cPanel in plain text. You should make a note on there that the host should only ever be set to localhost, as if you use this to admin other servers you are prone to attack by packet sniffers. Btw, the function http_build_query() will help make your code a little cleaner. And $this->CI->cpanel->get_cron() can just be $this->get_cron(); :-) For people interested in what could be added to this library, take a look here.[/quote] Thank you for the pointers. I could update it to use curl and ssl - that should solve the security issues for those that have curl available to them. I will clean up the code too, i know its a bit of a mess right now ![]() EDIT: I'm going to totally re-write the whole thing to use the xml interface - thank you for pointing that out to me! |