Commit 412fc7ff authored by Charl's avatar Charl
Browse files

checking DomainSyncEnabled config option before running sync closes issue #6

parent 4eccb3ef
......@@ -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");
echo("COZA-EPP Domain Sync Report\n");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment