Skip to content
Snippets Groups Projects
Commit 412fc7ff authored by Charl Mert's avatar Charl Mert
Browse files

checking DomainSyncEnabled config option before running sync closes issue #6

parent 4eccb3ef
No related branches found
Tags v0.1.0
No related merge requests found
...@@ -52,6 +52,16 @@ require_once ROOTDIR . '/includes/registrarfunctions.php'; ...@@ -52,6 +52,16 @@ require_once ROOTDIR . '/includes/registrarfunctions.php';
# Grab module parameters # Grab module parameters
$params = getregistrarconfigoptions('cozaepp'); $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("COZA-EPP Domain Sync Report\n");
echo("---------------------------------------------------\n"); echo("---------------------------------------------------\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment