mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
identifies situations where its restricted by open_basedir. We now track more informatoin about the toolkit including the version and any errors we encountered while doing the detection so that we can provide more info downstream. This makes graphics::detect_toolkits() a little heavier, but that's ok because it should not be called very often. In the process, refactor the controller and view hierarchy so that it's a little more straightforward in the code. Fixes ticket #616.
33 lines
1.2 KiB
PHP
33 lines
1.2 KiB
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<div id="gd" class="gBlock<?= $is_active ? " gSelected" : "" ?><?= $tk->installed ? " gInstalledToolkit" : " gUnavailable" ?>">
|
|
<img class="logo" width="170" height="110" src="<?= url::file("modules/gallery/images/gd.png"); ?>" alt="<? t("Visit the GD lib project site") ?>" />
|
|
<h3> <?= t("GD") ?> </h3>
|
|
<p>
|
|
<?= t("The GD graphics library is an extension to PHP commonly installed most webservers. Please refer to the <a href=\"%url\">GD website</a> for more information.",
|
|
array("url" => "http://www.boutell.com/gd")) ?>
|
|
</p>
|
|
<? if ($tk->installed && $tk->rotate): ?>
|
|
<p class="gSuccess">
|
|
<?= t("You have GD version %version.", array("version" => $tk->version)) ?>
|
|
</p>
|
|
<p>
|
|
<a class="gButtonLink ui-state-default ui-corner-all"><?= t("Activate GD") ?></a>
|
|
</p>
|
|
<? elseif ($tk->installed): ?>
|
|
|
|
<? if ($tk->error): ?>
|
|
<p class="gWarning">
|
|
<?= $tk->error ?>
|
|
</p>
|
|
<? endif ?>
|
|
|
|
<p>
|
|
<a class="gButtonLink ui-state-default ui-corner-all"><?= t("Activate GD") ?></a>
|
|
</p>
|
|
<? else: ?>
|
|
<p class="gInfo">
|
|
<?= t("You do not have GD installed.") ?>
|
|
</p>
|
|
<? endif ?>
|
|
</div>
|