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-06-06 03:54:28 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2018-06-06 03:54:28 +0300
commit0cf07bdcd5b14102785e147134c768c47edb18c0 (patch)
tree3d4ba76a5526c41503a829acb71f7e6b53d98ab4 /src/controllers/PrivilegesController.php
parent2cf03d93713d7fada20716885f032b615e449c27 (diff)
extract method from mimicdump
Diffstat (limited to 'src/controllers/PrivilegesController.php')
-rw-r--r--src/controllers/PrivilegesController.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/controllers/PrivilegesController.php b/src/controllers/PrivilegesController.php
index a2b82e98..56387329 100644
--- a/src/controllers/PrivilegesController.php
+++ b/src/controllers/PrivilegesController.php
@@ -75,14 +75,14 @@ class PrivilegesController extends BaseController
$this->printMsg($msg);
if (!isset($data->privlist[$subject])) {
- $this->container->utils->halt('No privileges defined for subject ' . $subject);
+ $this->container->utils->halt('No privileges defined for subject '.$subject);
return;
}
// Determine whether object should be ref'd by name or oid.
- if (isset($_REQUEST[$subject . '_oid'])) {
- $object = $_REQUEST[$subject . '_oid'];
+ if (isset($_REQUEST[$subject.'_oid'])) {
+ $object = $_REQUEST[$subject.'_oid'];
} else {
$object = $_REQUEST[$subject];
}
@@ -194,7 +194,7 @@ class PrivilegesController extends BaseController
$object = $_REQUEST[$subject];
if ('function' == $subject) {
- $objectoid = $_REQUEST[$subject . '_oid'];
+ $objectoid = $_REQUEST[$subject.'_oid'];
$urlvars = [
'action' => 'alter',
'server' => $_REQUEST['server'],
@@ -299,11 +299,11 @@ class PrivilegesController extends BaseController
$this->printTrail($_REQUEST['subject']);
- $this->printTitle($this->lang['str' . $mode], 'pg.privilege.' . $mode);
+ $this->printTitle($this->lang['str'.$mode], 'pg.privilege.'.$mode);
$this->printMsg($msg);
- echo '<form action="' . \SUBFOLDER . "/src/views/privileges\" method=\"post\">\n";
+ echo '<form action="'.\SUBFOLDER."/src/views/privileges\" method=\"post\">\n";
echo "<table>\n";
echo "<tr><th class=\"data left\">{$this->lang['strusers']}</th>\n";
echo '<td class="data1"><select name="username[]" multiple="multiple" size="', min(6, $users->recordCount()), "\">\n";
@@ -357,9 +357,9 @@ class PrivilegesController extends BaseController
echo "<p><input type=\"hidden\" name=\"action\" value=\"save\" />\n";
echo '<input type="hidden" name="mode" value="', htmlspecialchars($mode), "\" />\n";
echo '<input type="hidden" name="subject" value="', htmlspecialchars($_REQUEST['subject']), "\" />\n";
- if (isset($_REQUEST[$_REQUEST['subject'] . '_oid'])) {
- echo '<input type="hidden" name="', htmlspecialchars($_REQUEST['subject'] . '_oid'),
- '" value="', htmlspecialchars($_REQUEST[$_REQUEST['subject'] . '_oid']), "\" />\n";
+ if (isset($_REQUEST[$_REQUEST['subject'].'_oid'])) {
+ echo '<input type="hidden" name="', htmlspecialchars($_REQUEST['subject'].'_oid'),
+ '" value="', htmlspecialchars($_REQUEST[$_REQUEST['subject'].'_oid']), "\" />\n";
}
echo '<input type="hidden" name="', htmlspecialchars($_REQUEST['subject']),
@@ -370,7 +370,7 @@ class PrivilegesController extends BaseController
}
echo $this->misc->form;
- echo sprintf('<input type="submit" name="%s" value="%s" />%s', $mode, $this->lang['str' . $mode], "\n");
+ echo sprintf('<input type="submit" name="%s" value="%s" />%s', $mode, $this->lang['str'.$mode], "\n");
echo "<input type=\"submit\" name=\"cancel\" value=\"{$this->lang['strcancel']}\" /></p>";
echo "</form>\n";
@@ -392,8 +392,8 @@ class PrivilegesController extends BaseController
$this->coalesceArr($_REQUEST, 'privilege', []);
// Determine whether object should be ref'd by name or oid.
- if (isset($_REQUEST[$_REQUEST['subject'] . '_oid'])) {
- $object = $_REQUEST[$_REQUEST['subject'] . '_oid'];
+ if (isset($_REQUEST[$_REQUEST['subject'].'_oid'])) {
+ $object = $_REQUEST[$_REQUEST['subject'].'_oid'];
} else {
$object = $_REQUEST[$_REQUEST['subject']];
}