diff --git a/components/install/process.php b/components/install/process.php index bbb3e5b..5eaa186 100755 --- a/components/install/process.php +++ b/components/install/process.php @@ -96,7 +96,7 @@ if ( ! ( defined( 'DBHOST' ) && defined( 'DBNAME' ) && defined( 'DBUSER' ) && de //Valid databases Codiad is able to use $db_types = [ 'mysql', - 'postgresql', + 'pgsql', //'sqlite', ]; diff --git a/components/install/sql/postgresql.sql b/components/install/sql/pgsql.sql similarity index 100% rename from components/install/sql/postgresql.sql rename to components/install/sql/pgsql.sql diff --git a/components/install/view.php b/components/install/view.php index 6df38fd..80904ae 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'=>'mysql' + ,'PostgreSQL'=>'pgsql' + ,'SQLite'=>'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'; + ?> +
@@ -167,8 +184,17 @@ if ($newrelic) {
diff --git a/themes/default/screen.css b/themes/default/screen.css index 97a8fb0..61af63f 100755 --- a/themes/default/screen.css +++ b/themes/default/screen.css @@ -169,6 +169,10 @@ label .icon { color: green; } +#dependencies .warning { + color: yellow; +} + select option { background: #242424; } textarea { @@ -817,4 +821,4 @@ table [class^="icon-"], [class*=" icon-"] { height: 25px; vertical-align: middle; width: 25px; -} \ No newline at end of file +}