diff options
author | ramon <ramongomez@us.es> | 2016-05-19 08:22:35 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2016-05-19 08:22:35 +0000 |
commit | 49ebd87e72a58d08ed34329b199ca1a38f5e863f (patch) | |
tree | 2bea7c766e5b26b6b91f3ce2c6c1cf2125560fc7 /admin/WebConsole/rest/server.php | |
parent | f2eade3af9b3f5c5652acab3724a507f342db426 (diff) |
#708: Eliminar código duplicado al procesar API REST.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4936 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/server.php')
-rw-r--r-- | admin/WebConsole/rest/server.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/admin/WebConsole/rest/server.php b/admin/WebConsole/rest/server.php index fc29c517..1575758d 100644 --- a/admin/WebConsole/rest/server.php +++ b/admin/WebConsole/rest/server.php @@ -10,36 +10,6 @@ * @date 2015-04-16 */ -// Inclussion files. - -// Server access data. -include_once("../controlacceso.php"); -include_once("../clases/AdoPhp.php"); -include_once("../includes/CreaComando.php"); -// Connection class. -@include_once("../includes/constantes.php"); -include_once("../includes/comunes.php"); -include_once("../clases/SockHidra.php"); - -// Slim framework. -include_once("Slim/Slim.php"); -\Slim\Slim::registerAutoloader(); - -// Server access control. -$cmd = CreaComando($cnx); -if (!$cmd) - die("Access Error"); - -// Install Slim application (development mode). -//$app = new \Slim\Slim(array('mode' => 'production', 'debug' => false)); -$app = new \Slim\Slim(array( - 'mode' => 'development', - 'debug' => true)); -$app->setName('opengnsys'); - -// Global variables. -$userid = NULL; // User id. with access to REST API. - // Auxiliar functions. |