If CYA not accepted, don't allow dockerHub installs

This commit is contained in:
Squidly271 2023-01-17 20:33:07 -05:00
parent c34dc29d99
commit 181126339d
4 changed files with 4 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -22,4 +22,4 @@ c337da65783addaee1e6bf6c50e6f35b ./scripts/showStatistics.php
5c088a7cf82229cb64edfd4c415a84a0 ./scripts/updatePluginSupport.php
230290ceb59b21a3fae7fa7674d5d89d ./skins/Narrow/css.php
d642a25efb891e51471fc4c7636da885 ./skins/Narrow/skin.html
2c9f365863313088f562ca99ff342042 ./skins/Narrow/skin.php
149a797dc2ce26ff532135fbda2ed545 ./skins/Narrow/skin.php

View File

@ -1002,6 +1002,7 @@ function displaySearchResults($pageNumber) {
$file = $tempFile['results'];
$templates = &$GLOBALS['templates'];
$count = 0;
$caSettings['NoInstalls'] = is_file($caPaths['warningAccepted']) ? false : true;
$ct = "<div>".tr("NOTE You must visit the dockerHub page to gather the information required to install correctly")."<span class='templateSearch' style='float:right'>Show CA templates</span></div><br><br>";
$ct .= "<div class='ca_templatesDisplay'>";
@ -1013,7 +1014,8 @@ function displaySearchResults($pageNumber) {
$result['Category'] = "Docker&nbsp;Hub&nbsp;Search";
$result['Description'] = $result['Description'] ?: tr("No description present");
$result['Compatible'] = true;
$result['actionsContext'] = [["icon"=>"ca_fa-install","text"=>tr("Install"),"action"=>"dockerConvert({$result['ID']});"]];
if ( ! $caSettings['NoInstalls'] )
$result['actionsContext'] = [["icon"=>"ca_fa-install","text"=>tr("Install"),"action"=>"dockerConvert({$result['ID']});"]];
$templateSearch = searchArray($templates,"Repository",$result['Repository']);
if ( $templateSearch === false )