@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | */ |
| 6 | 6 | require_once './src/lib.inc.php'; |
| 7 | 7 | |
| 8 | -$app->post('/redirect[/{subject}]', function ($request, $response, $args) { |
|
| 8 | +$app->post('/redirect[/{subject}]', function($request, $response, $args) { |
|
| 9 | 9 | $body = $response->getBody(); |
| 10 | 10 | $query_string = $request->getUri()->getQuery(); |
| 11 | 11 | $misc = $this->misc; |
@@ -50,33 +50,33 @@ discard block |
||
| 50 | 50 | } |
| 51 | 51 | }); |
| 52 | 52 | |
| 53 | -$app->get('/redirect[/{subject}]', function ($request, $response, $args) { |
|
| 53 | +$app->get('/redirect[/{subject}]', function($request, $response, $args) { |
|
| 54 | 54 | $subject = (isset($args['subject'])) ? $args['subject'] : 'root'; |
| 55 | 55 | $destinationurl = $this->utils->getDestinationWithLastTab($subject); |
| 56 | 56 | return $response->withStatus(302)->withHeader('Location', $destinationurl); |
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | -$app->get('/src/views/browser', function ($request, $response, $args) { |
|
| 59 | +$app->get('/src/views/browser', function($request, $response, $args) { |
|
| 60 | 60 | $controller = new \PHPPgAdmin\Controller\BrowserController($this, true); |
| 61 | 61 | return $controller->render(); |
| 62 | 62 | }); |
| 63 | 63 | |
| 64 | -$app->get('/src/views/login', function ($request, $response, $args) { |
|
| 64 | +$app->get('/src/views/login', function($request, $response, $args) { |
|
| 65 | 65 | $controller = new \PHPPgAdmin\Controller\LoginController($this, true); |
| 66 | 66 | return $controller->render(); |
| 67 | 67 | }); |
| 68 | 68 | |
| 69 | -$app->get('/src/views/servers', function ($request, $response, $args) { |
|
| 69 | +$app->get('/src/views/servers', function($request, $response, $args) { |
|
| 70 | 70 | $controller = new \PHPPgAdmin\Controller\ServersController($this, true); |
| 71 | 71 | return $controller->render(); |
| 72 | 72 | }); |
| 73 | 73 | |
| 74 | -$app->get('/src/views/intro', function ($request, $response, $args) { |
|
| 74 | +$app->get('/src/views/intro', function($request, $response, $args) { |
|
| 75 | 75 | $controller = new \PHPPgAdmin\Controller\IntroController($this, true); |
| 76 | 76 | return $controller->render(); |
| 77 | 77 | }); |
| 78 | 78 | |
| 79 | -$app->map(['GET', 'POST'], '/src/views/{subject}', function ($request, $response, $args) { |
|
| 79 | +$app->map(['GET', 'POST'], '/src/views/{subject}', function($request, $response, $args) { |
|
| 80 | 80 | if ($this->misc->getServerId() === null) { |
| 81 | 81 | return $response->withStatus(302)->withHeader('Location', SUBFOLDER . '/src/views/servers'); |
| 82 | 82 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | return $controller->render(); |
| 95 | 95 | }); |
| 96 | 96 | |
| 97 | -$app->get('/[{subject}]', function ($request, $response, $args) { |
|
| 97 | +$app->get('/[{subject}]', function($request, $response, $args) { |
|
| 98 | 98 | $subject = (isset($args['subject'])) ? $args['subject'] : 'intro'; |
| 99 | 99 | $_server_info = $this->misc->getServerInfo(); |
| 100 | 100 | $query_string = $request->getUri()->getQuery(); |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | namespace PHPPgAdmin; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * A class that implements the plugin's system |
|
| 7 | - */ |
|
| 6 | + * A class that implements the plugin's system |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | class PluginManager |
| 10 | 10 | { |
@@ -28,11 +28,11 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Register the plugins |
| 31 | - * |
|
| 32 | - * @param \Slim\Container $container |
|
| 33 | - * @internal param $this ->language - Language that have been used. |
|
| 34 | - * @throws \Interop\Container\Exception\ContainerException |
|
| 35 | - * @throws \Slim\Exception\ContainerValueNotFoundException |
|
| 31 | + * |
|
| 32 | + * @param \Slim\Container $container |
|
| 33 | + * @internal param $this ->language - Language that have been used. |
|
| 34 | + * @throws \Interop\Container\Exception\ContainerException |
|
| 35 | + * @throws \Slim\Exception\ContainerValueNotFoundException |
|
| 36 | 36 | */ |
| 37 | 37 | public function __construct(\Slim\Container $container) |
| 38 | 38 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * Add a plugin in the list of plugins to manage |
| 71 | - * |
|
| 71 | + * |
|
| 72 | 72 | * @param $plugin - Instance from plugin |
| 73 | 73 | */ |
| 74 | 74 | public function add_plugin($plugin) |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * Execute the plugins hook functions when needed. |
| 109 | - * |
|
| 109 | + * |
|
| 110 | 110 | * @param $hook - The place where the function will be called |
| 111 | 111 | * @param $function_args - An array reference with arguments to give to called function |
| 112 | 112 | */ |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * Execute a plugin's action |
| 129 | - * |
|
| 129 | + * |
|
| 130 | 130 | * @param $plugin_name - The plugin name. |
| 131 | 131 | * @param $action - action that will be executed. |
| 132 | 132 | */ |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 9.6 documentation |
|
| 7 | - * |
|
| 8 | - */ |
|
| 6 | + * Help links for PostgreSQL 9.6 documentation |
|
| 7 | + * |
|
| 8 | + */ |
|
| 9 | 9 | class PostgresDoc96 extends PostgresDoc95 |
| 10 | 10 | { |
| 11 | 11 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 8.4 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 8.4 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc84 extends PostgresDoc83 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 8.0 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc80.php,v 1.5 2005/02/16 10:27:44 jollytoad Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 8.0 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc80.php,v 1.5 2005/02/16 10:27:44 jollytoad Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc80 extends PostgresDoc74 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 9.0 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 9.0 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc90 extends PostgresDoc84 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 9.1 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 9.1 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc84.php,v 1.3 2008/11/18 21:35:48 ioguix Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc91 extends PostgresDoc90 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 8.1 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc81.php,v 1.3 2006/12/28 04:26:55 xzilla Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 8.1 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc81.php,v 1.3 2006/12/28 04:26:55 xzilla Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc81 extends PostgresDoc80 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PHPPgAdmin\Help; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * Help links for PostgreSQL 8.3 documentation |
|
| 7 | - * |
|
| 8 | - * $Id: PostgresDoc83.php,v 1.3 2008/03/17 21:35:48 ioguix Exp $ |
|
| 9 | - */ |
|
| 6 | + * Help links for PostgreSQL 8.3 documentation |
|
| 7 | + * |
|
| 8 | + * $Id: PostgresDoc83.php,v 1.3 2008/03/17 21:35:48 ioguix Exp $ |
|
| 9 | + */ |
|
| 10 | 10 | class PostgresDoc83 extends PostgresDoc82 |
| 11 | 11 | { |
| 12 | 12 | public function __construct($conf, $major_version) |