Beispiel #1
0
 /**
  * Schedule the updating of the DNS Zones
  */
 public function updatednszoneAction()
 {
     $domainId = $this->getRequest()->getParam('id');
     if (Domains::isOwner($domainId, $this->customer['customer_id'])) {
         $domain = Domains::getName($domainId);
         DomainsTasks::AddTask($domain, 'setDomainHosts');
         $this->_helper->redirector('edit', 'domains', 'default', array('id' => $domainId, 'mex' => 'The domain task requested has been scheduled successfully. Please see the tasks tab form.', 'status' => 'success'));
     } else {
         $this->_helper->redirector('edit', 'domains', 'default', array('id' => $domainId, 'mex' => $this->translator->translate('You are not the domain\'s owner.'), 'status' => 'danger'));
     }
 }