Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
00031
00032 require_once ('constant.php');
00033 require_once ('class_database.php');
00034 require_once('class_dossier.php');
00035 require_once('class_acc_ledger.php');
00036 require_once ('class_user.php');
00037
00038
00039 extract ($_GET);
00040 foreach (array('l','gDossier') as $a)
00041 {
00042 if ( ! isset (${$a}) )
00043 {
00044 echo "error $a is not set ";
00045 exit();
00046 }
00047
00048 }
00049 if ( is_numeric($l) == false )
00050 {
00051 exit();
00052 }
00053
00054
00055 $Ledger=new Acc_Ledger($cn,$l);
00056 $prop=$Ledger->get_propertie();
00057 $pj_seq=$Ledger->guess_pj();
00058 $string='{"pj":"'.$pj_seq.'"}';
00059
00060 header("Content-type: text/json; charset: utf8",true);
00061 echo $string;
00062
00063
00064 ?>
00065