tbrehm
2012-04-05 e15295406e45c3f7944ed571dba8f099a9b5ac59
interface/web/dns/dns_import.php
@@ -120,6 +120,10 @@
   $app->tpl->setVar("client_group_id",$client_select);
}
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dns_import.lng';
include($lng_file);
$app->tpl->setVar($wb);
// Import the zone-file
//if(1=="1")
if(isset($_FILES['file']['name']) && is_uploaded_file($_FILES['file']['tmp_name'])){
@@ -545,18 +549,15 @@
      $error .= $app->lng('error_no_valid_zone_file_txt');
   }
   //header('Location: /dns/dns_soa_edit.php?id='.$dns_soa_id);
} else {
   if(isset($_FILES['file']['name'])) {
      $error = $wb['no_file_uploaded_error'];
   }
}
$app->tpl->setVar('msg',$msg);
$app->tpl->setVar('error',$error);
$app->tpl->setVar("title",'Import Zone Files');
$app->tpl->setVar("zonefile_to_import_txt",$app->lng('zonefile_to_import_txt'));
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dns_wizard.lng';
include($lng_file);
$app->tpl->setVar($wb);
$app->tpl_defaults();
$app->tpl->pparse();