experimental */ //----------------------------------------------------- // Check User include ('class_user.php'); /* Admin. Dossier */ require_once('class_dossier.php'); $gDossier=dossier::id(); $cn=new Database($gDossier); $User=new User($cn); $User->Check(); // TODO a specific level of security for the "bilan" ??? // Change must be done here $User->can_request($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; } ?>