summaryrefslogtreecommitdiff
path: root/nodeServerStatus.php
diff options
context:
space:
mode:
Diffstat (limited to 'nodeServerStatus.php')
-rw-r--r--nodeServerStatus.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/nodeServerStatus.php b/nodeServerStatus.php
index b370245..0f41113 100644
--- a/nodeServerStatus.php
+++ b/nodeServerStatus.php
@@ -19,19 +19,26 @@
* is" without express or implied warranty.
*
* @author Ryuma Ando <ando@ecomas.co.jp>
- * @copyright 2003-2008 PgPool Global Development Group
+ * @copyright 2003-2013 PgPool Global Development Group
* @version CVS: $Id$
*/
+/* --------------------------------------------------------------------- */
+/* nodeServerStatus.php */
+/* --------------------------------------------------------------------- */
+
require_once('common.php');
-$tpl->assign('help', basename( __FILE__, '.php'));
+// Check login status
if (!isset($_SESSION[SESSION_LOGIN_USER])) {
header('Location: login.php');
exit();
}
-readConfigParams();
+// Set Vars
+$tpl->assign('help', basename( __FILE__, '.php'));
+// Display
+$is_pgpool_active = DoesPgpoolPidExist();
+$tpl->assign('pgpoolIsActive', $is_pgpool_active);
$tpl->display('nodeServerStatus.tpl');
-?>