diff options
author | Amenadiel <amenadiel@gmail.com> | 2020-01-15 01:00:49 +0300 |
---|---|---|
committer | Amenadiel <amenadiel@gmail.com> | 2020-01-15 01:00:49 +0300 |
commit | d7fe9495f5f5cd716ae3eed21d2d87dfe4d44bd1 (patch) | |
tree | 5ff1c6950462d9c2f88e7848cadf2baa3d182b58 /src/controllers/HistoryController.php | |
parent | 0b3571deb5969172e3ed375a7cbc4f560812cc9f (diff) |
adds config key to enable debugger handlers
Diffstat (limited to 'src/controllers/HistoryController.php')
-rw-r--r-- | src/controllers/HistoryController.php | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/src/controllers/HistoryController.php b/src/controllers/HistoryController.php index cdd2f74a..54c05253 100644 --- a/src/controllers/HistoryController.php +++ b/src/controllers/HistoryController.php @@ -1,7 +1,7 @@ <?php /** - * PHPPgAdmin v6.0.0-RC1. + * PHPPgAdmin v6.0.0-RC2 */ namespace PHPPgAdmin\Controller; @@ -10,6 +10,8 @@ use PHPPgAdmin\Decorators\Decorator; /** * Base controller class. + * + * @package PHPPgAdmin */ class HistoryController extends BaseController { @@ -58,7 +60,7 @@ class HistoryController extends BaseController // Set the name of the window $this->setWindowName('history'); - return $this->printFooter(true, 'footer_sqledit.twig', true); + return $this->printFooter(true, 'footer_sqledit.twig'); } public function doDefault() @@ -68,14 +70,14 @@ class HistoryController extends BaseController $this->printHeader($this->headerTitle(), $this->scripts, true, 'header.twig'); // Bring to the front always - echo '<body onload="window.focus();">' . PHP_EOL; + echo '<body onload="window.focus();">'.PHP_EOL; - echo '<form action="' . \SUBFOLDER . '/src/views/history" method="post">' . PHP_EOL; + echo '<form action="'.\SUBFOLDER.'/src/views/history" method="post">'.PHP_EOL; $this->printConnection('history'); echo '</form><br />'; if (!isset($_REQUEST['database'])) { - echo "<p>{$this->lang['strnodatabaseselected']}</p>" . PHP_EOL; + echo "<p>{$this->lang['strnodatabaseselected']}</p>".PHP_EOL; return; } @@ -131,7 +133,7 @@ class HistoryController extends BaseController echo $this->printTable($history, $columns, $actions, 'history-history', $this->lang['strnohistory']); } else { - echo "<p>{$this->lang['strnohistory']}</p>" . PHP_EOL; + echo "<p>{$this->lang['strnohistory']}</p>".PHP_EOL; } $navlinks = [ @@ -189,19 +191,19 @@ class HistoryController extends BaseController $this->printHeader($this->headerTitle(), $this->scripts); // Bring to the front always - echo '<body onload="window.focus();">' . PHP_EOL; + echo '<body onload="window.focus();">'.PHP_EOL; - echo "<h3>{$this->lang['strdelhistory']}</h3>" . PHP_EOL; - echo "<p>{$this->lang['strconfdelhistory']}</p>" . PHP_EOL; + echo "<h3>{$this->lang['strdelhistory']}</h3>".PHP_EOL; + echo "<p>{$this->lang['strconfdelhistory']}</p>".PHP_EOL; echo '<pre>', htmlentities($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']][$qid]['query'], ENT_QUOTES, 'UTF-8'), '</pre>'; - echo '<form action="' . \SUBFOLDER . '/src/views/history" method="post">' . PHP_EOL; - echo '<input type="hidden" name="action" value="delhistory" />' . PHP_EOL; - echo "<input type=\"hidden\" name=\"queryid\" value=\"${qid}\" />" . PHP_EOL; + echo '<form action="'.\SUBFOLDER.'/src/views/history" method="post">'.PHP_EOL; + echo '<input type="hidden" name="action" value="delhistory" />'.PHP_EOL; + echo "<input type=\"hidden\" name=\"queryid\" value=\"${qid}\" />".PHP_EOL; echo $this->misc->form; - echo "<input type=\"submit\" name=\"yes\" value=\"{$this->lang['stryes']}\" />" . PHP_EOL; - echo "<input type=\"submit\" name=\"no\" value=\"{$this->lang['strno']}\" />" . PHP_EOL; - echo '</form>' . PHP_EOL; + echo "<input type=\"submit\" name=\"yes\" value=\"{$this->lang['stryes']}\" />".PHP_EOL; + echo "<input type=\"submit\" name=\"no\" value=\"{$this->lang['strno']}\" />".PHP_EOL; + echo '</form>'.PHP_EOL; } else { unset($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']][$qid]); } @@ -213,17 +215,17 @@ class HistoryController extends BaseController $this->printHeader($this->headerTitle(), $this->scripts); // Bring to the front always - echo '<body onload="window.focus();">' . PHP_EOL; + echo '<body onload="window.focus();">'.PHP_EOL; - echo "<h3>{$this->lang['strclearhistory']}</h3>" . PHP_EOL; - echo "<p>{$this->lang['strconfclearhistory']}</p>" . PHP_EOL; + echo "<h3>{$this->lang['strclearhistory']}</h3>".PHP_EOL; + echo "<p>{$this->lang['strconfclearhistory']}</p>".PHP_EOL; - echo '<form action="' . \SUBFOLDER . '/src/views/history" method="post">' . PHP_EOL; - echo '<input type="hidden" name="action" value="clearhistory" />' . PHP_EOL; + echo '<form action="'.\SUBFOLDER.'/src/views/history" method="post">'.PHP_EOL; + echo '<input type="hidden" name="action" value="clearhistory" />'.PHP_EOL; echo $this->misc->form; - echo "<input type=\"submit\" name=\"yes\" value=\"{$this->lang['stryes']}\" />" . PHP_EOL; - echo "<input type=\"submit\" name=\"no\" value=\"{$this->lang['strno']}\" />" . PHP_EOL; - echo '</form>' . PHP_EOL; + echo "<input type=\"submit\" name=\"yes\" value=\"{$this->lang['stryes']}\" />".PHP_EOL; + echo "<input type=\"submit\" name=\"no\" value=\"{$this->lang['strno']}\" />".PHP_EOL; + echo '</form>'.PHP_EOL; } else { unset($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']]); } |