source: pmb4.2/trunk/fuentes/pmb/admin/proc/ajax/req.inc.php @ 815

Last change on this file since 815 was 815, checked in by jrpelegrina, 4 years ago

Initial release of pmb 4.2

  • Property svn:executable set to *
File size: 959 bytes
Line 
1<?php
2// +-------------------------------------------------+
3// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
4// +-------------------------------------------------+
5// $Id: req.inc.php,v 1.2 2009-06-25 16:33:22 dbellamy Exp $
6
7if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) die("no access");
8
9require_once ($class_path.'/request.class.php'); 
10require_once ($class_path.'/requester.class.php');
11require_once ($include_path.'/templates/requests.tpl.php');
12
13
14//Traitement des données
15//TODO traitement pour conversion en UTF8
16$req_datas=$_POST;
17
18$rqt = new requester();
19
20switch ($fname) {
21        case 'buildRequest':
22                $request=$rqt->buildRequest($req_type,$req_univ,$req_nb_lines,$req_datas);
23                ajax_http_send_response($request);
24                break;
25        case 'getAttributes':
26                if($c_type!="FI") $c_type='';
27                $attr=$rqt->getAttributes($fct_id,$c_type);
28                ajax_http_send_response($attr,"text/xml");
29                break;
30        default:
31                break;
32}
33
34?>
Note: See TracBrowser for help on using the repository browser.