diff --git a/install.php b/install.php index 445afa44..b0b8e0b2 100644 --- a/install.php +++ b/install.php @@ -92,20 +92,45 @@ function do_install() { // {{{ } } // }}} function begin() { // {{{ + $err = ""; + $thumberr = ""; + $dberr = ""; + if(check_gd_version() == 0 && check_im_version() == 0) { - $gd = "
PHP's GD extension seems to be missing, ". "and imagemagick's \"convert\" command cannot be found - ". "no thumbnailing engines are available."; } - else { - $gd = ""; + + if(!function_exists("mysql_connect")) { + $dberr = "
PHP's MySQL extension seems to be missing; you may ".
+ "be able to use an unofficial alternative, checking ".
+ "for libraries...";
+ if(!function_exists("pg_connect")) {
+ $dberr .= "
PgSQL is missing";
+ }
+ else {
+ $dberr .= "
PgSQL is available";
+ }
+ if(!function_exists("sqlite_open")) {
+ $dberr .= "
SQLite is missing";
+ }
+ else {
+ $dberr .= "
SQLite is available";
+ }
+ }
+
+ if($thumberr || $dberr) {
+ $err = "