mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-21 03:49:21 -04:00
56 lines
2.4 KiB
PHP
56 lines
2.4 KiB
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<p>
|
|
<?= t("Gallery can check to see if there is a new version available for you to use. It is a good idea to upgrade your Gallery to get the latest features and security fixes. Your privacy is important so no information about your Gallery is shared during this process. You can disable this feature below.") ?>
|
|
</p>
|
|
|
|
<p>
|
|
<?php if (gallery::RELEASE_CHANNEL == "release"): ?>
|
|
<?= t("You are using the official Gallery %version release, code named <i>%code_name</i>.", array("version" => gallery::VERSION, "code_name" => gallery::CODE_NAME)) ?>
|
|
<?php elseif (isset($build_number)): ?>
|
|
<?= t("You are using an experimental snapshot of Gallery %version (build %build_number on branch %branch).", array("version" => gallery::VERSION, "branch" => gallery::RELEASE_BRANCH, "build_number" => $build_number)) ?>
|
|
<?php else: ?>
|
|
<?= t("You are using an experimental snapshot of Gallery %version (branch %branch) but your gallery3/.build_number file is missing so we don't know what build you have. You should probably upgrade so that you have that file.", array("version" => gallery::VERSION, "branch" => gallery::RELEASE_BRANCH, "build_number" => $build_number)) ?>
|
|
<?php endif ?>
|
|
</p>
|
|
|
|
<?php if ($new_version): ?>
|
|
<ul class="g-message-block">
|
|
<li class="g-message g-info">
|
|
<?= $new_version ?>
|
|
</li>
|
|
</ul>
|
|
<?php endif ?>
|
|
|
|
<p>
|
|
<a class="g-button ui-state-default ui-corner-all"
|
|
href="<?= url::site("admin/upgrade_checker/check_now?csrf=$csrf") ?>">
|
|
<?= t("Check now") ?>
|
|
</a>
|
|
<?php if ($auto_check_enabled): ?>
|
|
<a class="g-button ui-state-default ui-corner-all"
|
|
href="<?= url::site("admin/upgrade_checker/set_auto/0?csrf=$csrf") ?>">
|
|
<?= t("Disable automatic checking") ?>
|
|
</a>
|
|
<?php else: ?>
|
|
<a class="g-button ui-state-default ui-corner-all"
|
|
href="<?= url::site("admin/upgrade_checker/set_auto/1?csrf=$csrf") ?>">
|
|
<?= t("Enable automatic checking") ?>
|
|
</a>
|
|
<?php endif ?>
|
|
</p>
|
|
|
|
<p class="g-text-small">
|
|
<?php if ($auto_check_enabled): ?>
|
|
<?= t("Automatic upgrade checking is enabled.") ?>
|
|
<?php else: ?>
|
|
<?= t("Automatic upgrade checking is disabled.") ?>
|
|
<?php endif ?>
|
|
<?php if (!$version_info): ?>
|
|
<?= t("No upgrade checks have been made yet.") ?>
|
|
<?php else: ?>
|
|
<?= t("The last upgrade check was made on %date.",
|
|
array("date" => gallery::date_time($version_info->timestamp))) ?>
|
|
<?php endif ?>
|
|
</p>
|
|
|