source: trunk/admin/controller.php @ 5509

Revision 5509, 1.2 KB checked in by gustavo, 12 years ago (diff)

Ticket #2488 - Adicionar cabecalho de licenca em arquivos que nao o possuem

  • Property svn:executable set to *
Line 
1<?php
2                /***************************************************************************
3                * Expresso Livre                                                           *
4                * http://www.expressolivre.org                                             *
5                * --------------------------------------------                             *
6                *  This program is free software; you can redistribute it and/or modify it *
7                *  under the terms of the GNU General Public License as published by the   *
8                *  Free Software Foundation; either version 2 of the License, or (at your  *
9                *  option) any later version.                                              *
10                \**************************************************************************/
11               
12require_once '../header.session.inc.php';
13
14$request_method = '_' . $_SERVER['REQUEST_METHOD'];
15switch ( $request_method )
16{
17        case '_GET' :
18                $params = $_GET;
19        break;
20        case '_POST' :
21                $params = $_POST;
22        break;
23        case '_HEAD' :
24        case '_PUT' :
25        default :
26                echo "controller - request method not avaible";
27                return false;
28}
29
30require_once dirname(__FILE__) . '/inc/Controller.class.php';
31
32$controller = new Controller;
33printf("%s", $controller->exec($$request_method));
34
35exit(0);
36?>
Note: See TracBrowser for help on using the repository browser.