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