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:
authorRichard Phillips <richp10@gmail.com>2017-07-22 18:47:17 +0300
committerRichard Phillips <richp10@gmail.com>2017-07-22 18:47:17 +0300
commit9a32fd248a02956acadcfb386492ad32a73b4e81 (patch)
tree3cf495fd33e2639896836c10f3a58ed1d7be95f4 /src/controllers/IntroController.php
parent59972fe60346784c805ccbd3f53e084a9c8de6d0 (diff)
Reformat all php to PSR-2 Code standards
Diffstat (limited to 'src/controllers/IntroController.php')
-rw-r--r--src/controllers/IntroController.php230
1 files changed, 116 insertions, 114 deletions
diff --git a/src/controllers/IntroController.php b/src/controllers/IntroController.php
index 3f26e395..d6b9f790 100644
--- a/src/controllers/IntroController.php
+++ b/src/controllers/IntroController.php
@@ -1,116 +1,118 @@
<?php
-namespace PHPPgAdmin\Controller;
-
-/**
- * Base controller class
- */
-class IntroController extends BaseController {
- public $_name = 'IntroController';
-
- /* Constructor */
- public function __construct(\Slim\Container $container) {
- $this->misc = $container->get('misc');
-
- $this->misc->setNoDBConnection(true);
- parent::__construct($container);
-
- }
-
- public function render() {
-
- $conf = $this->conf;
- $misc = $this->misc;
- $lang = $this->lang;
- $action = $this->action;
-
- $misc->setNoDBConnection(true);
- $this->printHeader($lang['strintro']);
- $this->printBody();
-
- switch ($action) {
-
- default:
- $this->doDefault();
- break;
- }
-
- $misc->printFooter();
-
- }
- /**
- * Intro screen
- *
- * $Id: intro.php,v 1.19 2007/07/12 19:26:22 xzilla Exp $
- */
- public function doDefault() {
-
- $conf = $this->conf;
- $misc = $this->misc;
- $lang = $this->lang;
-
- $appLangFiles = $this->appLangFiles;
- $misc = $this->misc;
- $appThemes = $this->appThemes;
- $appName = $this->appName;
- $appVersion = $this->appVersion;
-
- $misc->setNoDBConnection(true);
-
- $intro_html = $this->printTrail('root', false);
-
- $intro_html .= $this->printTabs('root', 'intro', false);
-
- $intro_html .= "<h1> $appName $appVersion (PHP " . PHP_VERSION . ')</h1>';
-
- $intro_html .= '<form method="get" action="intro.php">';
- $intro_html .= '<table>';
- $intro_html .= '<tr class="data1">';
- $intro_html .= '<th class="data">' . $lang['strlanguage'] . '</th>';
- $intro_html .= '<td>';
- $intro_html .= '<select name="language" onchange="this.form.submit()">';
-
- $language = isset($_SESSION['webdbLanguage']) ? $_SESSION['webdbLanguage'] : 'english';
- foreach ($appLangFiles as $k => $v) {
- $selected = ($k == $language) ? ' selected="selected"' : '';
- $intro_html .= "\t<option value=\"{$k}\"" . $selected . ">{$v}</option>\n";
- }
-
- $intro_html .= '</select>';
- $intro_html .= '</td>';
- $intro_html .= '</tr>';
- $intro_html .= '<tr class="data2">';
- $intro_html .= '<th class="data">' . $lang['strtheme'] . '</th>';
- $intro_html .= '<td>';
- $intro_html .= '<select name="theme" onchange="this.form.submit()">';
-
- foreach ($appThemes as $k => $v) {
- $selected = ($k == $conf['theme']) ? ' selected="selected"' : '';
- $intro_html .= "\t<option value=\"{$k}\"" . $selected . ">{$v}</option>\n";
- }
-
- $intro_html .= '</select>';
- $intro_html .= '</td>';
- $intro_html .= '</tr>';
- $intro_html .= '</table>';
- $intro_html .= '<noscript><p><input type="submit" value="' . $lang['stralter'] . '" /></p></noscript>';
- $intro_html .= '</form>';
-
- $intro_html .= '<p>' . $lang['strintro'] . '</p>';
-
- $intro_html .= '<ul class="intro">';
- $intro_html .= ' <li><a href="http://phppgadmin.sourceforge.net/">' . $lang['strppahome'] . '</a></li>';
- $intro_html .= '<li><a href="' . $lang['strpgsqlhome_url'] . '">' . $lang['strpgsqlhome'] . '</a></li>';
- $intro_html .= '<li><a href="http://sourceforge.net/tracker/?group_id=37132&amp;atid=418980">' . $lang['strreportbug'] . '</a></li>';
- $intro_html .= '<li><a href="' . $lang['strviewfaq_url'] . '">' . $lang['strviewfaq'] . '</a></li>';
- $intro_html .= '</ul>';
-
- if (isset($_GET['language'])) {
- $misc->setReloadBrowser(true);
- }
-
- echo $intro_html;
-
- }
-
-} \ No newline at end of file
+ namespace PHPPgAdmin\Controller;
+
+ /**
+ * Base controller class
+ */
+ class IntroController extends BaseController
+ {
+ public $_name = 'IntroController';
+
+ /* Constructor */
+ public function __construct(\Slim\Container $container)
+ {
+ $this->misc = $container->get('misc');
+
+ $this->misc->setNoDBConnection(true);
+ parent::__construct($container);
+ }
+
+ public function render()
+ {
+
+ $conf = $this->conf;
+ $misc = $this->misc;
+ $lang = $this->lang;
+ $action = $this->action;
+
+ $misc->setNoDBConnection(true);
+ $this->printHeader($lang['strintro']);
+ $this->printBody();
+
+ switch ($action) {
+
+ default:
+ $this->doDefault();
+ break;
+ }
+
+ $misc->printFooter();
+ }
+
+ /**
+ * Intro screen
+ *
+ * $Id: intro.php,v 1.19 2007/07/12 19:26:22 xzilla Exp $
+ */
+ public function doDefault()
+ {
+
+ $conf = $this->conf;
+ $misc = $this->misc;
+ $lang = $this->lang;
+
+ $appLangFiles = $this->appLangFiles;
+ $misc = $this->misc;
+ $appThemes = $this->appThemes;
+ $appName = $this->appName;
+ $appVersion = $this->appVersion;
+
+ $misc->setNoDBConnection(true);
+
+ $intro_html = $this->printTrail('root', false);
+
+ $intro_html .= $this->printTabs('root', 'intro', false);
+
+ $intro_html .= "<h1> $appName $appVersion (PHP " . PHP_VERSION . ')</h1>';
+
+ $intro_html .= '<form method="get" action="intro.php">';
+ $intro_html .= '<table>';
+ $intro_html .= '<tr class="data1">';
+ $intro_html .= '<th class="data">' . $lang['strlanguage'] . '</th>';
+ $intro_html .= '<td>';
+ $intro_html .= '<select name="language" onchange="this.form.submit()">';
+
+ $language = isset($_SESSION['webdbLanguage']) ? $_SESSION['webdbLanguage'] : 'english';
+ foreach ($appLangFiles as $k => $v) {
+ $selected = ($k == $language) ? ' selected="selected"' : '';
+ $intro_html .= "\t<option value=\"{$k}\"" . $selected . ">{$v}</option>\n";
+ }
+
+ $intro_html .= '</select>';
+ $intro_html .= '</td>';
+ $intro_html .= '</tr>';
+ $intro_html .= '<tr class="data2">';
+ $intro_html .= '<th class="data">' . $lang['strtheme'] . '</th>';
+ $intro_html .= '<td>';
+ $intro_html .= '<select name="theme" onchange="this.form.submit()">';
+
+ foreach ($appThemes as $k => $v) {
+ $selected = ($k == $conf['theme']) ? ' selected="selected"' : '';
+ $intro_html .= "\t<option value=\"{$k}\"" . $selected . ">{$v}</option>\n";
+ }
+
+ $intro_html .= '</select>';
+ $intro_html .= '</td>';
+ $intro_html .= '</tr>';
+ $intro_html .= '</table>';
+ $intro_html .= '<noscript><p><input type="submit" value="' . $lang['stralter'] . '" /></p></noscript>';
+ $intro_html .= '</form>';
+
+ $intro_html .= '<p>' . $lang['strintro'] . '</p>';
+
+ $intro_html .= '<ul class="intro">';
+ $intro_html .= ' <li><a href="http://phppgadmin.sourceforge.net/">' . $lang['strppahome'] . '</a></li>';
+ $intro_html .= '<li><a href="' . $lang['strpgsqlhome_url'] . '">' . $lang['strpgsqlhome'] . '</a></li>';
+ $intro_html .= '<li><a href="http://sourceforge.net/tracker/?group_id=37132&amp;atid=418980">' . $lang['strreportbug'] . '</a></li>';
+ $intro_html .= '<li><a href="' . $lang['strviewfaq_url'] . '">' . $lang['strviewfaq'] . '</a></li>';
+ $intro_html .= '</ul>';
+
+ if (isset($_GET['language'])) {
+ $misc->setReloadBrowser(true);
+ }
+
+ echo $intro_html;
+ }
+
+ } \ No newline at end of file