warn about missing mysql
This commit is contained in:
parent
aa3657c158
commit
717209e8f0
33
install.php
33
install.php
@ -92,20 +92,45 @@ function do_install() { // {{{
|
||||
}
|
||||
} // }}}
|
||||
function begin() { // {{{
|
||||
$err = "";
|
||||
$thumberr = "";
|
||||
$dberr = "";
|
||||
|
||||
if(check_gd_version() == 0 && check_im_version() == 0) {
|
||||
$gd = "<h3>Error</h3>\nPHP's GD extension seems to be missing, ".
|
||||
$thumberr = "<p>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 = "<p>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 .= "<br>PgSQL is missing";
|
||||
}
|
||||
else {
|
||||
$dberr .= "<br>PgSQL is available";
|
||||
}
|
||||
if(!function_exists("sqlite_open")) {
|
||||
$dberr .= "<br>SQLite is missing";
|
||||
}
|
||||
else {
|
||||
$dberr .= "<br>SQLite is available";
|
||||
}
|
||||
}
|
||||
|
||||
if($thumberr || $dberr) {
|
||||
$err = "<h3>Error</h3>";
|
||||
}
|
||||
|
||||
print <<<EOD
|
||||
<div id="iblock">
|
||||
<h1>Shimmie Installer</h1>
|
||||
|
||||
$gd
|
||||
$err
|
||||
$thumberr
|
||||
$dberr
|
||||
|
||||
<h3>Install</h3>
|
||||
<form action="install.php" method="POST">
|
||||
|
Loading…
x
Reference in New Issue
Block a user