experimental */ //----------------------------------------------------- // Check User include ('class_user.php'); /* Admin. Dossier */ $cn=DbConnect($_SESSION['g_dossier']); $User=new cl_user($cn); $User->Check(); // TODO a specific level of security for the "bilan" ??? // Change must be done here $User->AccessRequest($cn,IMP); 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; } ?>