jimboobrien
11/3/2010 - 10:37 AM

cPanel hook output

cPanel hook output

ADD DNS
	Cpanel::Config::LoadCpUserFile::load('system') called at /usr/local/cpanel/Cpanel/Config/LoadCpUserFile.pm line 158
	Cpanel::Config::LoadCpUserFile::loadcpuserfile('system') called at /usr/local/cpanel/Cpanel/Config/ModCpUserFile.pm line 26
	Cpanel::Config::ModCpUserFile::adddomaintouser('user', 'system', 'domain', 'test.damian.internal', 'type', '') called at /usr/local/cpanel/Cpanel/DnsUtils.pm line 446
	Cpanel::DnsUtils::doadddns('domain', 'test.damian.internal', 'ip', '127.0.0.1', 'reseller', 'root', 'trueowner', 'system') called at whostmgr/bin/whostmgr line 3197
	main::adddns() called at whostmgr/bin/whostmgr line 669


EDIT OPEN
	main::getzonelocal() called at whostmgr/bin/dnsadmin-ssl line 339
	Cpanel::Config::LoadCpUserFile::load('system') called at /usr/local/cpanel/Cpanel/Config/LoadCpUserFile.pm line 158
	Cpanel::Config::LoadCpUserFile::loadcpuserfile('system') called at /usr/local/cpanel/Cpanel/Email/MX.pm line 18
	Cpanel::Email::MX::get_mxcheck_configuration('test.damian.internal', 'system') called at /usr/local/cpanel/Whostmgr/DNS/MX.pm line 343
	Whostmgr::DNS::MX::fetchmx('test.damian.internal', HASH(0x14712860)) called at whostmgr/docroot/cgi/zoneeditor.cgi line 363
	main::editzone() called at whostmgr/docroot/cgi/zoneeditor.cgi line 45


SAVE ZONE
	main::getzonelocal() called at whostmgr/bin/dnsadmin-ssl line 339
	Cpanel::Config::LoadCpUserFile::load('system') called at /usr/local/cpanel/Cpanel/Config/LoadCpUserFile.pm line 158
	Cpanel::Config::LoadCpUserFile::loadcpuserfile('system') called at /usr/local/cpanel/Cpanel/Email/MX.pm line 18
	Cpanel::Email::MX::get_mxcheck_configuration('test.damian.internal', 'system') called at /usr/local/cpanel/Whostmgr/DNS/MX.pm line 343
	Whostmgr::DNS::MX::fetchmx('test.damian.internal.db', ARRAY(0xec5ad0)) called at whostmgr/docroot/cgi/zoneeditor.cgi line 170
	main::savezone() called at whostmgr/docroot/cgi/zoneeditor.cgi line 45
	Cpanel::Config::LoadCpUserFile::load('system') called at /usr/local/cpanel/Cpanel/Config/LoadCpUserFile.pm line 158
	Cpanel::Config::LoadCpUserFile::loadcpuserfile('system') called at /usr/local/cpanel/Whostmgr/DNS/MX.pm line 662
	Whostmgr::DNS::MX::set_mxcheck_method('test.damian.internal', 'auto') called at whostmgr/docroot/cgi/zoneeditor.cgi line 173
	main::savezone() called at whostmgr/docroot/cgi/zoneeditor.cgi line 45
	Cpanel::Config::LoadCpUserFile::load('system') called at /usr/local/cpanel/Cpanel/Config/LoadCpUserFile.pm line 158
	Cpanel::Config::LoadCpUserFile::loadcpuserfile('system') called at /usr/local/cpanel/Cpanel/Email/MX.pm line 18
	Cpanel::Email::MX::get_mxcheck_configuration('test.damian.internal', 'system') called at /usr/local/cpanel/Whostmgr/DNS/MX.pm line 33
	Whostmgr::DNS::MX::checkmx('test.damian.internal', ARRAY(0xec60a0), 'auto') called at whostmgr/docroot/cgi/zoneeditor.cgi line 175
	main::savezone() called at whostmgr/docroot/cgi/zoneeditor.cgi line 45

REMOVE ZONE
	Cpanel::Config::LoadCpUserFile::load('system') called at /usr/local/cpanel/Cpanel/Config/LoadCpUserFile.pm line 158
	Cpanel::Config::LoadCpUserFile::loadcpuserfile('system') called at /usr/local/cpanel/Cpanel/DnsUtils.pm line 207
	Cpanel::DnsUtils::dokilldns('domains', ARRAY(0x73a11a0)) called at whostmgr/bin/whostmgr line 3271
	main::killdns() called at whostmgr/bin/whostmgr line 706


SIMPLE DNS ZONE ADD:
zoneedit:add_zone_record
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'cache_fix' => '1288620326017',
          'name' => 'yrdy',
          'address' => '192.168.100.1',
          'ttl' => 14400,
          'class' => 'IN',
          'domain' => 'damian.local',
          'type' => 'A'
        };


--------------------
zoneedit:add_zone_record
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'cache_fix' => '1288620326017',
          'name' => 'yrdy',
          'address' => '192.168.100.1',
          'ttl' => 14400,
          'class' => 'IN',
          'domain' => 'damian.local',
          'type' => 'A'
        };

-----
$dataref

$VAR1 = [
          {
            'result' => {
                          'status' => 1,
                          'newserial' => '2010110103',
                          'statusmsg' => 'Bind reloading on cpanel using rndc zone: [damian.local]
'
                        }
          }
        ];

--------------------
zoneedit:fetchzone_records
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'customonly' => 1,
          'domain' => 'damian.local',
          'type' => 'A|CNAME'
        };


--------------------
zoneedit:fetchzone_records
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'customonly' => 1,
          'domain' => 'damian.local',
          'type' => 'A|CNAME'
        };

-----
$dataref

$VAR1 = [
          {
            'Line' => 29,
            'line' => 29,
            'record' => '192.168.100.1',
            'ttl' => 14400,
            'address' => '192.168.100.1',
            'class' => 'IN',
            'type' => 'A',
            'name' => 'yrdy.damian.local.'
          }
        ];

--------------------


SIMPLE DNS ZONE REMOVE
zoneedit:remove_zone_record
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'line' => 29,
          'cache_fix' => '1288620350390',
          'domain' => 'damian.local'
        };


--------------------
zoneedit:remove_zone_record
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'line' => 29,
          'cache_fix' => '1288620350390',
          'domain' => 'damian.local'
        };

-----
$dataref

$VAR1 = [
          {
            'result' => {
                          'status' => 1,
                          'newserial' => '2010110104',
                          'statusmsg' => 'Bind reloading on cpanel using rndc zone: [damian.local]
'
                        }
          }
        ];

--------------------
zoneedit:fetchzone_records
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'customonly' => 1,
          'domain' => 'damian.local',
          'type' => 'A|CNAME'
        };


--------------------
zoneedit:fetchzone_records
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'customonly' => 1,
          'domain' => 'damian.local',
          'type' => 'A|CNAME'
        };

-----
$dataref

$VAR1 = [];

--------------------


ADVANCED DNS EDIT ZONE
zoneedit:edit_zone_record
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'cache_fix' => '1288620475253',
          'name' => 'whm.damian.local.',
          'line' => 26,
          'address' => '10.44.200.5',
          'ttl' => 14400,
          'serialnum' => '2010110104',
          'class' => 'IN',
          'domain' => 'damian.local',
          'type' => 'A'
        };


--------------------
zoneedit:edit_zone_record
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'cache_fix' => '1288620475253',
          'name' => 'whm.damian.local.',
          'line' => 26,
          'address' => '10.44.200.5',
          'ttl' => 14400,
          'serialnum' => '2010110104',
          'class' => 'IN',
          'domain' => 'damian.local',
          'type' => 'A'
        };

-----
$dataref

$VAR1 = [
          {
            'result' => {
                          'status' => 1,
                          'newserial' => '2010110105',
                          'statusmsg' => 'Bind reloading on cpanel using rndc zone: [damian.local]
'
                        }
          }
        ];

--------------------

RESET ZONE:
zoneedit:resetzone
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'cache_fix' => '1288620529543',
          'domain' => 'damian.local'
        };


--------------------
zoneedit:resetzone
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'cache_fix' => '1288620529543',
          'domain' => 'damian.local'
        };

-----
$dataref

$VAR1 = [
          {
            'result' => {
                          'status' => 1,
                          'statusmsg' => 'Bind reloading on cpanel using rndc zone: [damian.local]
',
                          'checkmx' => {
                                         'mxcheck' => 'local',
                                         'detected' => 'local',
                                         'isprimary' => 1,
                                         'secondary' => 0,
                                         'remote' => 0,
                                         'changed' => 1,
                                         'warnings' => [],
                                         'issecondary' => 0,
                                         'local' => 1
                                       }
                        }
          }
        ];

--------------------
zoneedit:fetchzone
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'serialnum' => '2010110105',
          'cache_fix' => '1288620529899',
          'domain' => 'damian.local'
        };


--------------------
zoneedit:fetchzone
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'serialnum' => '2010110105',
          'cache_fix' => '1288620529899',
          'domain' => 'damian.local'
        };

-----
$dataref

$VAR1 = [
          {
            'status' => 1,
            'record' => [
                          {
                            'Line' => 1,
                            'line' => 1,
                            'record' => undef,
                            'raw' => '; cPanel first:11.26.20-CURRENT_49708 latest:11.26.20-CURRENT_49708 Cpanel::ZoneFile::VERSION:1.3 mtime:1288620636 hostname:cpanel.damian.internal',
                            'ttl' => 86400,
                            'type' => ':RAW',
                            'name' => ''
                          },
                          {
                            'Line' => 2,
                            'line' => 2,
                            'record' => undef,
                            'raw' => '; Zone file for damian.local',
                            'ttl' => 86400,
                            'type' => ':RAW',
                            'name' => ''
                          },
                          {
                            'Line' => 3,
                            'line' => 3,
                            'record' => undef,
                            'ttl' => 14400,
                            'type' => '$TTL',
                            'name' => ''
                          },
                          {
                            'serial' => '2010110109',
                            'minimum' => 86400,
                            'rname' => 'root.localhost',
                            'refresh' => 86400,
                            'Lines' => 7,
                            'name' => 'damian.local.',
                            'Line' => 4,
                            'retry' => 7200,
                            'line' => 4,
                            'record' => undef,
                            'ttl' => 86400,
                            'class' => 'IN',
                            'mname' => 'dns1.damian.internal',
                            'type' => 'SOA',
                            'expire' => 3600000
                          },
                          {
                            'Line' => 11,
                            'line' => 11,
                            'record' => undef,
                            'raw' => '',
                            'ttl' => 86400,
                            'type' => ':RAW',
                            'name' => ''
                          },
                          {
                            'Line' => 12,
                            'line' => 12,
                            'record' => undef,
                            'nsdname' => 'dns1.damian.internal',
                            'ttl' => 86400,
                            'class' => 'IN',
                            'type' => 'NS',
                            'name' => 'damian.local.'
                          },
                          {
                            'Line' => 13,
                            'line' => 13,
                            'record' => undef,
                            'nsdname' => 'dns2.damian.internal',
                            'ttl' => 86400,
                            'class' => 'IN',
                            'type' => 'NS',
                            'name' => 'damian.local.'
                          },
                          {
                            'Line' => 14,
                            'line' => 14,
                            'record' => undef,
                            'raw' => '',
                            'ttl' => 86400,
                            'type' => ':RAW',
                            'name' => ''
                          },
                          {
                            'Line' => 15,
                            'line' => 15,
                            'record' => undef,
                            'raw' => '',
                            'ttl' => 86400,
                            'type' => ':RAW',
                            'name' => ''
                          },
                          {
                            'Line' => 16,
                            'line' => 16,
                            'record' => '255.255.255.255',
                            'ttl' => 14400,
                            'address' => '255.255.255.255',
                            'class' => 'IN',
                            'type' => 'A',
                            'name' => 'damian.local.'
                          },
                          {
                            'Line' => 17,
                            'line' => 17,
                            'record' => undef,
                            'raw' => '',
                            'ttl' => 86400,
                            'type' => ':RAW',
                            'name' => ''
                          },
                          {
                            'Line' => 18,
                            'line' => 18,
                            'record' => '127.0.0.1',
                            'ttl' => 14400,
                            'address' => '127.0.0.1',
                            'class' => 'IN',
                            'type' => 'A',
                            'name' => 'localhost.damian.local.'
                          },
                          {
                            'Line' => 19,
                            'line' => 19,
                            'record' => undef,
                            'raw' => '',
                            'ttl' => 86400,
                            'type' => ':RAW',
                            'name' => ''
                          },
                          {
                            'preference' => 0,
                            'exchange' => 'damian.local',
                            'name' => 'damian.local.',
                            'Line' => 20,
                            'line' => 20,
                            'record' => undef,
                            'ttl' => 14400,
                            'class' => 'IN',
                            'type' => 'MX'
                          },
                          {
                            'Line' => 21,
                            'line' => 21,
                            'record' => undef,
                            'raw' => '',
                            'ttl' => 86400,
                            'type' => ':RAW',
                            'name' => ''
                          },
                          {
                            'Line' => 22,
                            'line' => 22,
                            'record' => 'damian.local',
                            'cname' => 'damian.local',
                            'ttl' => 14400,
                            'class' => 'IN',
                            'type' => 'CNAME',
                            'name' => 'mail.damian.local.'
                          },
                          {
                            'Line' => 23,
                            'line' => 23,
                            'record' => 'damian.local',
                            'cname' => 'damian.local',
                            'ttl' => 14400,
                            'class' => 'IN',
                            'type' => 'CNAME',
                            'name' => 'www.damian.local.'
                          },
                          {
                            'Line' => 24,
                            'line' => 24,
                            'record' => '255.255.255.255',
                            'ttl' => 14400,
                            'address' => '255.255.255.255',
                            'class' => 'IN',
                            'type' => 'A',
                            'name' => 'ftp.damian.local.'
                          },
                          {
                            'Line' => 25,
                            'line' => 25,
                            'record' => '255.255.255.255',
                            'ttl' => 14400,
                            'address' => '255.255.255.255',
                            'class' => 'IN',
                            'type' => 'A',
                            'name' => 'cpanel.damian.local.'
                          },
                          {
                            'Line' => 26,
                            'line' => 26,
                            'record' => '255.255.255.255',
                            'ttl' => 14400,
                            'address' => '255.255.255.255',
                            'class' => 'IN',
                            'type' => 'A',
                            'name' => 'whm.damian.local.'
                          },
                          {
                            'Line' => 27,
                            'line' => 27,
                            'record' => '255.255.255.255',
                            'ttl' => 14400,
                            'address' => '255.255.255.255',
                            'class' => 'IN',
                            'type' => 'A',
                            'name' => 'webmail.damian.local.'
                          },
                          {
                            'Line' => 28,
                            'line' => 28,
                            'record' => '255.255.255.255',
                            'ttl' => 14400,
                            'address' => '255.255.255.255',
                            'class' => 'IN',
                            'type' => 'A',
                            'name' => 'webdisk.damian.local.'
                          }
                        ],
            'statusmsg' => 'Zone Serialized',
            'serialnum' => '2010110109'
          }
        ];

--------------------

ADD SUBDOMAIN
setvar:setvar
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param0' => 'headerimg=../images/topsubdomains.gif'
        };

setvar:setvar 
--------------------
setvar:setvar
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param0' => 'headerimg=../images/topsubdomains.gif'
        };

-----
output


--------------------
setvar:setvar
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param0' => 'dprefix=../'
        };

setvar:setvar 
--------------------
setvar:setvar
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param0' => 'dprefix=../'
        };

-----
output


--------------------
nvdata:get
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'html_encoded' => 1,
          'names' => 'icFAA'
        };


--------------------
nvdata:get
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'html_encoded' => 1,
          'names' => 'icFAA'
        };

-----
$dataref

$VAR1 = [
          {
            'value' => '{"addondomain":1,"parkeddomains":1,"simplezoneedit":1,"subdomains":1,"zoneedit":1}',
            'name' => 'icFAA'
          }
        ];

--------------------
subdomain:addsubdomain
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param4' => 'public_html/test',
          'param0' => 'test',
          'param1' => 'damian.local',
          'param2' => 0,
          'param3' => 0
        };

subdomain:addsubdomain 
--------------------
/Domains.pm line 38
	Cpanel::Domains::load_deleted_db(1) called at /usr/local/cpanel/Cpanel/Domains.pm line 76
	Cpanel::Domains::_deleteddomains_op('del', 'damianl', 'root', '', ARRAY(0x46524f0)) called at /usr/local/cpanel/Cpanel/Domains.pm line 29
	Cpanel::Domains::del_deleted_domains('damianl', 'root', '', ARRAY(0x46524f0)) called at /usr/local/cpanel/Cpanel/Sub.pm line 189
	Cpanel::Sub::addsubdomain('force', 0, 'rootdomain', 'damian.local', 'subdomain', 'test', 'usecannameoff', 0, 'documentroot', '/home/damianl/public_html/test', 'user', 'damianl') called at bin/domainadmin line 172
subdomain:addsubdomain
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param4' => 'public_html/test',
          'param0' => 'test',
          'param1' => 'damian.local',
          'param2' => 0,
          'param3' => 0
        };

-----
output

Bind reloading on cpanel using rndc zone: [damian.local]


The subdomain, test.damian.local has been added.


--------------------
contactus:isenabled
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {};


--------------------
contactus:isenabled
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {};

-----
$dataref

$VAR1 = [
          {
            'enabled' => 1
          }
        ];

--------------------
printhelp:printhelp
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param0' => ''
        };

printhelp:printhelp 
--------------------
printhelp:printhelp
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param0' => ''
        };

-----
output


--------------------

REMVOE SUBDOMAIN
setvar:setvar
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param0' => 'headerimg=../images/topsubdomains.gif'
        };

setvar:setvar 
--------------------
setvar:setvar
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param0' => 'headerimg=../images/topsubdomains.gif'
        };

-----
output


--------------------
setvar:setvar
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param0' => 'dprefix=../'
        };

setvar:setvar 
--------------------
setvar:setvar
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param0' => 'dprefix=../'
        };

-----
output


--------------------
nvdata:get
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'html_encoded' => 1,
          'names' => 'icFAA'
        };


--------------------
nvdata:get
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'html_encoded' => 1,
          'names' => 'icFAA'
        };

-----
$dataref

$VAR1 = [
          {
            'value' => '{"addondomain":1,"parkeddomains":1,"simplezoneedit":1,"subdomains":2,"zoneedit":1}',
            'name' => 'icFAA'
          }
        ];

--------------------
subdomain:delsubdomain
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {
          'domain' => 'test_damian.local'
        };


--------------------
subdomain:delsubdomain
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {
          'domain' => 'test_damian.local'
        };

-----
$dataref

$VAR1 = [
          {
            'result' => 1,
            'reason' => 'Removed test.damian.local Server at line: 429.
Removed Entry from httpd.conf
Bind reloading on cpanel using rndc zone: [damian.local]
The subdomain, test.damian.local has been removed.'
          }
        ];

--------------------
sprint:sprint
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param0' => 'test_damian.local',
          'param1' => '_',
          'param2' => 0
        };

sprint:sprint 
--------------------
sprint:sprint
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param0' => 'test_damian.local',
          'param1' => '_',
          'param2' => 0
        };

-----
output

test


--------------------
sprint:sprint
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param0' => 'test_damian.local',
          'param1' => '_',
          'param2' => 1
        };

sprint:sprint 
--------------------
sprint:sprint
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param0' => 'test_damian.local',
          'param1' => '_',
          'param2' => 1
        };

-----
output

damian.local


--------------------
contactus:isenabled
$apiv = 2
$type = pre
-----
$cfgref

$VAR1 = {};


--------------------
contactus:isenabled
$apiv = 2
$type = post
-----
$cfgref

$VAR1 = {};

-----
$dataref

$VAR1 = [
          {
            'enabled' => 1
          }
        ];

--------------------
printhelp:printhelp
$apiv = 1
$type = pre
-----
$cfgref

$VAR1 = {
          'param0' => ''
        };

printhelp:printhelp 
--------------------
printhelp:printhelp
$apiv = 1
$type = post
-----
$cfgref

$VAR1 = {
          'param0' => ''
        };

-----
output


--------------------