Marius Cramer
2015-08-06 37b29231e47a0c4458dc1c15d98588f16f07e1e2
interface/web/tools/dns_import_tupa.php
@@ -45,6 +45,9 @@
// Resyncing dns zones
if(isset($_POST['start']) && $_POST['start'] == 1) {
   //* CSRF Check
   $app->auth->csrf_token_check();
   //* Set variable sin template
   $app->tpl->setVar('dbhost', $_POST['dbhost']);
@@ -96,7 +99,7 @@
               $refresh = 7200;
               $retry =  540;
               $expire = 604800;
               $minimum = 86400;
               $minimum = 3600;
               $ttl = $soa['ttl'];
               $insert_data = array(
@@ -181,6 +184,10 @@
$app->tpl->setVar('msg', $msg);
$app->tpl->setVar('error', $error);
//* SET csrf token
$csrf_token = $app->auth->csrf_token_get('dns_import');
$app->tpl->setVar('_csrf_id',$csrf_token['csrf_id']);
$app->tpl->setVar('_csrf_key',$csrf_token['csrf_key']);
$app->tpl_defaults();
$app->tpl->pparse();