Plugins  LAST
 All Data Structures Files Functions Variables Pages
ajax.php
Go to the documentation of this file.
1 <?php
2 //This file is part of NOALYSS and is under GPL
3 //see licence.txt
4  /*
5 EXAMPLE
6 require_once 'skel_constant.php';
7 require_once NOALYSS_INCLUDE.'/lib/class_database.php';
8 require_once 'class_ext_tva.php';
9 require_once NOALYSS_INCLUDE.'/lib/class_ibutton.php';
10 require_once 'class_ext_list_intra.php';
11 require_once 'class_ext_list_assujetti.php';
12 
13 extract($_GET);
14 global $cn;
15 $html='';$extra='';$ctl='';
16 ob_start();
17 switch($act) {
18 case 'dsp_decl':
19  // the hide button
20  require_once('include/ajax_dsp.php');
21  break;
22 }
23 
24 $html=ob_get_contents();
25 
26 ob_end_clean();
27 
28 $html=escape_xml($html);
29 
30 header('Content-type: text/xml; charset=UTF-8');
31 echo '<?xml version="1.0" encoding="UTF-8"?>';
32 echo '<data>';
33 echo "<ctl>$ctl</ctl>";
34 echo "<html>$html</html>";
35 echo "<extra>$extra</extra>";
36 echo "</data>";
37 */
38 ?>