From 36eef86b414e9ceacb3201852d78d2747ae0aa80 Mon Sep 17 00:00:00 2001 From: "alvarenga.milton" Date: Mon, 1 Apr 2019 21:48:56 -0300 Subject: [PATCH] Changed install page to add options for databases --- components/install/view.php | 42 ++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/components/install/view.php b/components/install/view.php index 635a82d..80b61cb 100755 --- a/components/install/view.php +++ b/components/install/view.php @@ -49,6 +49,14 @@ $autocomplete = array( 'dbtype' => 'mysql', ); +//Valid databases Codiad is able to use +$aValidDBType = [ + 'mysql' + ,'postgresql' + ,'sqlite' +]; + + if (!empty($query)) { $params = explode('&', $query); foreach ($params as $param) { @@ -111,12 +119,21 @@ if ($newrelic) {
- "required", + "OpenSSL"=>"required", + "MBString"=>"required", + "MySQL"=>"", + "PGSQL"=>"", + "SQLite3"=>"" + ] as $dep=>$status) { if (extension_loaded(strtolower($dep))) { ?>
-
+ } else { + $class_name = ($status == 'required') ? 'error' : 'warning'; + ?> +
@@ -166,7 +183,20 @@ if ($newrelic) { - +