Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Figueroa <amenadiel@gmail.com>2018-03-21 16:43:48 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2018-03-21 16:43:48 +0300
commitad1beaaa0800fe776bb92e80e582be63984d3192 (patch)
tree7e6a004713cfc20f0ad00276665de4bad97179fb /src/controllers/TablespacesController.php
parent0cc5a0bc23dc46ad9b61dc563dab480e024a36cd (diff)
replaces usage of php scripts in links and methods. Use slim routes instead
Diffstat (limited to 'src/controllers/TablespacesController.php')
-rw-r--r--src/controllers/TablespacesController.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/controllers/TablespacesController.php b/src/controllers/TablespacesController.php
index 0295890b..8d78bb5a 100644
--- a/src/controllers/TablespacesController.php
+++ b/src/controllers/TablespacesController.php
@@ -93,7 +93,7 @@ class TablespacesController extends BaseController
'title' => $lang['strname'],
'field' => \PHPPgAdmin\Decorators\Decorator::field('spcname'),
],
- 'owner' => [
+ 'owner' => [
'title' => $lang['strowner'],
'field' => \PHPPgAdmin\Decorators\Decorator::field('spcowner'),
],
@@ -101,7 +101,7 @@ class TablespacesController extends BaseController
'title' => $lang['strlocation'],
'field' => \PHPPgAdmin\Decorators\Decorator::field('spclocation'),
],
- 'actions' => [
+ 'actions' => [
'title' => $lang['stractions'],
],
];
@@ -114,11 +114,11 @@ class TablespacesController extends BaseController
}
$actions = [
- 'alter' => [
+ 'alter' => [
'content' => $lang['stralter'],
'attr' => [
'href' => [
- 'url' => 'tablespaces.php',
+ 'url' => 'tablespaces',
'urlvars' => [
'action' => 'edit',
'tablespace' => \PHPPgAdmin\Decorators\Decorator::field('spcname'),
@@ -126,11 +126,11 @@ class TablespacesController extends BaseController
],
],
],
- 'drop' => [
+ 'drop' => [
'content' => $lang['strdrop'],
'attr' => [
'href' => [
- 'url' => 'tablespaces.php',
+ 'url' => 'tablespaces',
'urlvars' => [
'action' => 'confirm_drop',
'tablespace' => \PHPPgAdmin\Decorators\Decorator::field('spcname'),
@@ -142,7 +142,7 @@ class TablespacesController extends BaseController
'content' => $lang['strprivileges'],
'attr' => [
'href' => [
- 'url' => 'privileges.php',
+ 'url' => 'privileges',
'urlvars' => [
'subject' => 'tablespace',
'tablespace' => \PHPPgAdmin\Decorators\Decorator::field('spcname'),
@@ -155,9 +155,9 @@ class TablespacesController extends BaseController
echo $this->printTable($tablespaces, $columns, $actions, 'tablespaces-tablespaces', $lang['strnotablespaces']);
$this->printNavLinks(['create' => [
- 'attr' => [
+ 'attr' => [
'href' => [
- 'url' => 'tablespaces.php',
+ 'url' => 'tablespaces',
'urlvars' => [
'action' => 'create',
'server' => $_REQUEST['server'],
@@ -200,7 +200,7 @@ class TablespacesController extends BaseController
$_POST['comment'] = ($data->hasSharedComments()) ? $tablespace->fields['spccomment'] : '';
}
- echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n";
+ echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces\" method=\"post\">\n";
echo $this->misc->form;
echo "<table>\n";
echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n";
@@ -275,7 +275,7 @@ class TablespacesController extends BaseController
echo '<p>', sprintf($lang['strconfdroptablespace'], $this->misc->printVal($_REQUEST['tablespace'])), "</p>\n";
- echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n";
+ echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces\" method=\"post\">\n";
echo $this->misc->form;
echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
echo '<input type="hidden" name="tablespace" value="', htmlspecialchars($_REQUEST['tablespace']), "\" />\n";
@@ -327,7 +327,7 @@ class TablespacesController extends BaseController
$this->printTitle($lang['strcreatetablespace'], 'pg.tablespace.create');
$this->printMsg($msg);
- echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n";
+ echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces\" method=\"post\">\n";
echo $this->misc->form;
echo "<table>\n";
echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n";