diff --git a/modules/registrars/cozaepp/cozaeppsync.php b/modules/registrars/cozaepp/cozaeppsync.php index c27643577eb17cc73886a42741960e605976e119..42f25f17e5a229e30c1489e51c10b2bf7dfb57c9 100644 --- a/modules/registrars/cozaepp/cozaeppsync.php +++ b/modules/registrars/cozaepp/cozaeppsync.php @@ -52,6 +52,16 @@ require_once ROOTDIR . '/includes/registrarfunctions.php'; # Grab module parameters $params = getregistrarconfigoptions('cozaepp'); +# Grab the configuration setting for DomainSyncEnabled +$query = "select value from tblconfiguration where setting = 'DomainSyncEnabled'"; +$res = mysql_query($query); +$row = mysql_fetch_array($res); + +if (!empty($row) && !$row['value'] == 'on') { + echo("COZAEPP domain sync disabled due to system setting"); + exit(0); +} + echo("COZA-EPP Domain Sync Report\n"); echo("---------------------------------------------------\n");