* - gDossier * Must return at least tva, htva and tvac */ if (!defined('ALLOWED')) { die('Appel direct ne sont pas permis'); } require_once NOALYSS_INCLUDE . '/constant.php'; require_once NOALYSS_INCLUDE . '/class_database.php'; require_once NOALYSS_INCLUDE . '/class_dossier.php'; require_once NOALYSS_INCLUDE . '/class_acc_ledger.php'; require_once NOALYSS_INCLUDE . '/class_user.php'; // Check if the needed field does exist extract($_GET); foreach (array('l', 'gDossier') as $a) { if (!isset(${$a})) { echo "error {$a} is not set "; exit; } } if (is_numeric($l) == false) { exit; } $Ledger = new Acc_Ledger($cn, $l); $prop = $Ledger->get_propertie(); $pj_seq = $Ledger->guess_pj(); $string = '{"pj":"' . $pj_seq . '"}'; header("Content-type: text/json; charset: utf8", true); echo $string; ?>