From 1f2ad1b02bf78fdc259c9e6bdff91ce32488e5c1 Mon Sep 17 00:00:00 2001 From: Nozomi Anzai Date: Wed, 8 Apr 2015 13:22:31 +0900 Subject: [PATCH] Modified installer to check if pgsql extension is loaded Patch contributed by Rodrigo Ramirez Norambuena --- install/checkParameter.php | 21 +++++++++++++++++++++ install/finish.php | 4 +++- install/lang/en.lang.php | 2 ++ install/lang/ja.lang.php | 2 ++ 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/install/checkParameter.php b/install/checkParameter.php index df2f0ce..e5a3b3a 100644 --- a/install/checkParameter.php +++ b/install/checkParameter.php @@ -195,6 +195,12 @@ if (isset($_POST['pcp_refreshTime']) && $_POST['pcp_refreshTime']) { $pcp_refreshTime = _PGPOOL2_STATUS_REFRESH_TIME; } +$msgPhpPgsql= ''; +if (!extension_loaded('pgsql')){ + $msgPhpPgsql = 'not installed'; + $error = TRUE; +} + /* --------------------------------------------------------------------- */ /* Write pgmt.conf.php */ /* --------------------------------------------------------------------- */ @@ -296,6 +302,21 @@ if (!$error && $action == 'next') { + +

+ + + + + +
+ +
+ Welcome to pgpool-II Administration Tool

-

+

+ +