tbrehm
2012-05-25 3285d2778a9749e9ab6acd6226871c9e89c15af0
- Added resync of mail domains to resync tool.
1 files modified
15 ■■■■■ changed files
interface/web/tools/resync.php 15 ●●●●● patch | view | raw | blame | history
interface/web/tools/resync.php
@@ -118,6 +118,20 @@
    }
}
//* Resyncing Mailbox Domains
if(isset($_POST['resync_mailbox']) && $_POST['resync_mailbox'] == 1) {
    $db_table = 'mail_domain';
    $index_field = 'domain_id';
    $sql = "SELECT * FROM ".$db_table." WHERE active = 'y'";
    $records = $app->db->queryAllRecords($sql);
    if(is_array($records)) {
        foreach($records as $rec) {
            $app->db->datalogUpdate($db_table, $rec, $index_field, $rec[$index_field], true);
            $msg .= "Resynced Mail Domain: ".$rec['domain'].'<br />';
        }
    }
}
//* Resyncing Mailboxes
if(isset($_POST['resync_mailbox']) && $_POST['resync_mailbox'] == 1) {
    $db_table = 'mail_user';
@@ -131,7 +145,6 @@
        }
    }
}
//* Resyncing dns zones
if(isset($_POST['resync_dns']) && $_POST['resync_dns'] == 1) {