Check(); // TODO a specific level of security for the "bilan" ??? // Change must be done here if ( $User->admin == 0 ) { if (CheckAction($_SESSION['g_dossier'],$_SESSION['g_user'],IMP) == 0 ){ /* Cannot Access */ NoAccess(); } } header('Content-type: application/bin'); header('Content-Disposition: attachment;filename="declaration.bin"',FALSE); //////////////////////////////////////////////////////////////////////////////// // Submit for a magnetic declaration // Belgium only //////////////////////////////////////////////////////////////////////////////// if ( isset($_POST['bt_disk'])) { require_once("class_customer.php"); $customer=new Customer($cn); $a_Res=$customer->VatListing($_POST['year']); require_once("decla.BE.inc.php"); $a=MakeListingVat($cn,$a_Res,$_POST['year']); echo "$a"; return; } ?>