source: sandbox/jabberit_messenger/trophy_expresso/teste.php @ 2411

Revision 2411, 702 bytes checked in by alexandrecorreia, 14 years ago (diff)

Ticket #986 - Adicionado a funcionalidade de procurar contatos no ldap.

  • Property svn:executable set to *
Line 
1<?php
2
3//COM PARAMETRO
4// act=$this.contacts_im.list_contacts&name=alexandre
5
6//SEM PARAMETRO
7//act=$this.preferences.getPreferences
8//act=$this.teste.aqui_dentro
9
10$request_method = '_' . $_SERVER['REQUEST_METHOD'];
11
12switch ( $request_method )
13{
14        case '_GET' :
15                $params = $_GET;
16        break;
17        case '_POST' :
18                $params = $_POST;
19        break;
20        case '_HEAD' :
21        case '_PUT' :
22        default :
23                echo "controller - request method not avaible";
24                return false;
25}
26
27if( file_exists(dirname(__FILE__) . "/inc/Controller.class.php") )
28{
29        require_once dirname(__FILE__) . '/inc/Controller.class.php';
30       
31        $controller = new Controller();
32       
33        printf("%s", $controller->exec($$request_method, dirname(__FILE__)));
34       
35        exit(0);
36
37}
38
39?>
Note: See TracBrowser for help on using the repository browser.