mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
EXIF extension required and detected on install
This commit is contained in:
16
install.php
16
install.php
@@ -816,6 +816,16 @@ class e_install
|
||||
$xml_installed = true;
|
||||
}
|
||||
|
||||
if(!function_exists('exif_imagetype'))
|
||||
{
|
||||
$exif_installed = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$exif_installed = true;
|
||||
}
|
||||
$exifExtensionLink = "<a href='http://php.net/manual/en/book.exif.php'>php.net</a>";
|
||||
|
||||
$php_version = phpversion();
|
||||
if(version_compare($php_version, MIN_PHP_VERSION, ">="))
|
||||
{
|
||||
@@ -839,6 +849,7 @@ class e_install
|
||||
$permColor = ($perms_pass == true) ? "text-success" : "text-error";
|
||||
$PHPColor = ($version_fail == false) ? "text-success" : "text-error";
|
||||
$xmlColor = ($xml_installed == true) ? "text-success" : "text-error";
|
||||
$exifColor = ($exif_installed == true) ? "text-success" : "text-error";
|
||||
$mysqlColor = ($mysql_pass == true) ? "text-success" : "text-error";
|
||||
|
||||
$xmlExtensionLink = "<a href='http://php.net/manual/en/ref.xml.php'>php.net</a>";
|
||||
@@ -868,6 +879,11 @@ class e_install
|
||||
<td>".($xml_installed ? LANINS_051 : LANINS_052)."</td>
|
||||
<td class='{$xmlColor}'>".($xml_installed ? "<i class='glyphicon glyphicon-ok'></i> ".LANINS_017 : str_replace("[x]",$xmlExtensionLink, LANINS_053) )."</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>".LANINS_048."</td>
|
||||
<td>".($exif_installed ? LANINS_051 : LANINS_052)."</td>
|
||||
<td class='{$exifColor}'>".($exif_installed ? "<i class='glyphicon glyphicon-ok'></i> ".LANINS_017 : str_replace("[x]", $exifExtensionLink, LANINS_054) )."</td>
|
||||
</tr>
|
||||
</table>\n";
|
||||
$this->finish_form();
|
||||
$this->template->SetTag("stage_content", $output.$e_forms->return_form());
|
||||
|
Reference in New Issue
Block a user