<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Control WebPanel Wiki &#187; API</title>
	<atom:link href="http://wiki.centos-webpanel.com/category/api/feed" rel="self" type="application/rss+xml" />
	<link>http://wiki.centos-webpanel.com</link>
	<description>CentOS WebPanel Wiki</description>
	<lastBuildDate>Wed, 12 Feb 2025 20:38:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>Action Hooks</title>
		<link>http://wiki.centos-webpanel.com/action-hooks</link>
		<comments>http://wiki.centos-webpanel.com/action-hooks#comments</comments>
		<pubDate>Sat, 07 Sep 2019 00:56:55 +0000</pubDate>
		<dc:creator><![CDATA[publisher]]></dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[hooks]]></category>

		<guid isPermaLink="false">http://wiki.centos-webpanel.com/?p=1282</guid>
		<description><![CDATA[DNS Hooks dns_serial_update (run by Add New DNS Zone, New Subdomain, Remove Subdomain) /usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_serial_update.php dns_new_zone_add (run by Add New DNS Zone) /usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_new_zone_add.php dns_new_subdomain_add (run by Add New SubDomain) /usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_new_subdomain_add.php dns_zone_remove (run by DNS Domain Delete) /usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_zone_remove.php dns_subdomain_remove (run by SubDomain Delete) /usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_subdomain_remove.php Example available data from the array: Regular Acount Array ( [domain] => centos-webpanel.com [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><strong>DNS Hooks</strong><br />
dns_serial_update (run by Add New DNS Zone, New Subdomain, Remove Subdomain)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_serial_update.php</p>
<p>dns_new_zone_add (run by Add New DNS Zone)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_new_zone_add.php</p>
<p>dns_new_subdomain_add (run by Add New SubDomain)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_new_subdomain_add.php</p>
<p>dns_zone_remove (run by DNS Domain Delete)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_zone_remove.php</p>
<p>dns_subdomain_remove (run by SubDomain Delete)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_subdomain_remove.php</p>
<p><strong>Example available data from the array:</strong></p>
<p>Regular Acount<br />
Array ( [domain] => centos-webpanel.com [status] => OK [username] => someuser1 ) </p>
<p>Reseller SubAccount<br />
Array ( [domain] => centos-webpanel.com [status] => OK [username] => someuser1 [reseller] => somereseller1 ) </p>
<p>Reseller Account<br />
Array ( [domain] => centos-webpanel.com [status] => OK [username] => someuser1 [reseller] => 1 ) </p>
<p><strong>Usage:</strong><br />
Create file and add content to it with the same function of the filename without .php part.</p>
<p>Example for DNS Serial Update<br />
FILE: /usr/local/cwpsrv/htdocs/resources/admin/hooks/dns/dns_serial_update.php</p>
<pre>&lt;?php

function dns_serial_update($array){
    echo "Hello World ..{$array['domain']}..";
}

?&gt;</pre>
<p>** functions are automatically run by the CWP!</p>
<p><strong>Account Hooks</strong><br />
account_new (VALUES: username,domain)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_new.php</p>
<p>account_remove (VALUES:username)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_remove.php</p>
<p>account_suspend (VALUES:username)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_suspend.php</p>
<p>account_unsuspend (VALUES:username)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_unsuspend.php</p>
<p>account_new_domain (VALUES:username,domain)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_remove_domain.php</p>
<p>account_new_subdomain (VALUES:username,subdomain,domain,fullsubdomain)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_new_subdomain.php</p>
<p>account_remove_domain (VALUES:username,domain)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_remove_domain.php</p>
<p>account_remove_subdomain (VALUES:username,subdomain,domain,fullsubdomain)<br />
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_new_subdomain.php</p>
]]></content:encoded>
			<wfw:commentRss>http://wiki.centos-webpanel.com/action-hooks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
