HCC Extensions A Custom API for Cpanel Version 0.1 beta 8/DEC/2003 © 2002,2003 Juan R. Pozo http://html.conclase.net/cp/scripts/ mailto:jrpozo@conclase.net Mailing list: http://www.conclase.net/mailman/listinfo/cpanel_conclase.net License This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Note: a copy of the GNU General Public License is available at: http://html.conclase.net/cp/scripts/license.html Installation 1) Check if the file HCCExtensions.pm exists in your server inside the /usr/local/cpanel/Cpanel/ directory 2) If it exists and isn't a previous version of this API please contact me. Otherwise, follow steps 3 to 8 3) switch to root user 4) # cd /usr/local/cpanel/Cpanel/ 5) # wget http://html.conclase.net/cp/scripts/HCCExtensions.perl.txt 6) # chown root.root HCCExtensions.perl.txt 7) # chmod 0644 HCCExtensions.perl.txt 8) # mv HCCExtensions.perl.txt HCCExtensions.pm API Reference This is equivalent to the standard API call , but escapes HTML characters &, <, > and " for files identified as text files by Linux program file. Until bug number 995 ( http://web.cpanel.net/bugzilla/show_bug.cgi?id=995 ) is fixed, you may use this call as a workaround. Returns the directory names where the addon script given by addonname has been previously installed. Each directory name is embedded in an OPTION HTML element, for example: The addon name must not be quoted. Prints the domain name of this account's owner (reseller). Changelog 0.1 Beta – December 8, 2003 Forked from HCCApi 0.3.7. First public release. _______________________________________________________________________________ Please consider making a donation today. Visit my amazon.com wishlist at: http://html.conclase.net/link/wishlist Thank you :)