You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

141 lines
8.3 KiB

<div class="admin-wrapper">
{if $prefs.theme_unified_admin_backend eq 'y'}
<aside class="admin-nav">
{include file='admin/include_anchors.tpl'}
</aside>
{/if}
<div class="admin-content">
{include file="admin/admin_navbar.tpl"}
{if $prefs.sender_email eq ''}
{remarksbox type=warning title="{tr}Warning{/tr}" close="y"}
{tr _0='<a href="tiki-admin.php?page=general&highlight=sender_email" class="alert-link">' _1="</a>"}Your sender email is not set. You can set it %0in the general admin panel%1.{/tr}
{/remarksbox}
{/if}
<div class="admin-page-header"> {* Class name changed to differentiate from page-header at top of all pages. *}
{title help="$helpUrl"}{$admintitle}{/title}
<span class="form-text">{$description}</span>
</div>
<div id="pageheader">
{* bother to display this only when breadcrumbs are on *}
{*
{if $prefs.feature_breadcrumbs eq 'y'}
{breadcrumbs type="trail" loc="page" crumbs=$crumbs}
{breadcrumbs type="pagetitle" loc="page" crumbs=$crumbs}
{/if}
*}
{if $db_requires_update}
{remarksbox type="error" title="{tr}Database Version Problem{/tr}"}
{tr _0='<a class="alert-link" href="tiki-install.php">' _1="</a>"}Your database requires an update to match the current Tiki version. Please proceed to %0the installer%1. Using Tiki with an incorrect database version usually provokes errors{/tr}
{tr}If you have shell (SSH) access, you can also use the following, on the command line, from the root of your Tiki installation:{/tr}
<kbd>php console.php{if not empty($tikidomain)} --site={$tikidomain|replace:'/':''}{/if} database:update</kbd>
{/remarksbox}
{/if}
{if $vendor_autoload_ignored or $vendor_autoload_disabled}
{remarksbox type="error" title="{tr}Vendor folder issues{/tr}"}
{tr}Your vendor folder contains multiple packages that were normally bundled with Tiki. Since version 17 those libraries were migrated from the folder <strong>vendor</strong> to the folder <strong>vendor_bundled</strong>.{/tr}<br />
{if $vendor_autoload_ignored}
{tr}To avoid issues your <strong>vendor/autoload.php</strong> was not loaded.{/tr}<br />
{tr}We recommend that you remove/clean the <strong>vendor/</strong> folder content unless you really want to load these libraries, that are not bundled with tiki, and in such case add a file called <strong>vendor/do_not_clean.txt</strong> to force the load of these libraries.{/tr}
{elseif $vendor_autoload_disabled}
{tr}To avoid issues your <strong>vendor/autoload.php</strong> was renamed to <strong>vendor/autoload-disabled.php</strong>.{/tr}<br />
{tr}For more information check <strong>vendor/autoload-disabled-README.txt</strong> file.{/tr}
{/if}
{/remarksbox}
{/if}
{if $installer_not_locked}
{remarksbox type="error" title="{tr}Installer not locked{/tr}"}
{tr} The installer allows a user to change or destroy the site's database through the browser so it is very important to keep it locked. {/tr}
{tr}<br />You can re-run the installer (tiki-install.php), skip to the last step and select <strong>LOCK THE INSTALLER</strong>. Alternatively, you can simply <strong>add a lock file</strong> (file without any extension) in your db/ folder.{/tr}
{tr}You can also use the following, on the command line, from the root of your Tiki installation:{/tr}
<kbd>php console.php installer:lock</kbd>
{/remarksbox}
{/if}
{if $search_index_outdated}
{remarksbox type="error" title="{tr}Search Index outdated{/tr}"}
{tr}The search index might be outdated. It is recommended to rebuild the search index.{/tr}
{/remarksbox}
{/if}
{if $fgal_web_accessible}
{remarksbox type="warning" title="{tr}File gallery directory web accessable{/tr}"}
{tr}This is a potential security risk.{/tr} {tr}You may deny access to this directory with server access rules, move your gallery directory into a space outside of your web root, or transfer file gallery storage into the database.{/tr}
{/remarksbox}
{/if}
{if $searchIndex['error']}
{remarksbox type="error" title="{tr}Search index failure{/tr}"}
{if !$searchIndex['connectionError']}
{tr}Please proceed to <a class="alert-link" href="{bootstrap_modal controller=search action=rebuild}">{tr}rebuild Index{/tr}</a>.{/tr}
{tr}If you have shell (SSH) access, you can also use the following, on the command line, from the root of your Tiki installation:{/tr}
<kbd>php console.php{if not empty($tikidomain)} --site={$tikidomain|replace:'/':''}{/if} index:rebuild</kbd>
{else if $prefs.unified_elastic_mysql_search_fallback eq 'n'}
{tr}The main search engine is not working properly and the fallback is also not set.</br>
Search engine results might not be properly displayed.{/tr}
{/if}
{if !empty($searchIndex['feedback'])}
{$searchIndex['feedback']}
<br />
{/if}
{if !empty($lastLogItems)}
<div class="h6 mt-3">
<a class="collapse-toggle" data-bs-toggle="collapse" href="#last-error-search-log">
{tr}Check last logs{/tr} <span class="icon icon-caret-down fas fa-caret-down"></span>
</a>
</div>
<div id="last-error-search-log" class="collapse">
{foreach from=$lastLogItems key=type item=um}
{if !empty($lastLogItems[$type])}
<h6>{$type}</h6>
<p>{tr}Log file:{/tr} {$lastLogItems[$type]['file']}</p>
<ul>
{foreach from=$lastLogItems[$type]['logs'] item=um}
<li>{$um}</li>
{/foreach}
</ul>
{/if}
{/foreach}
</div>
{/if}
{/remarksbox}
{if $prefs['unified_engine'] == 'elastic' && $prefs.unified_elastic_mysql_search_fallback eq 'y'}
{remarksbox type="warning" title="{tr}Search index fallback in use{/tr}" close="y"}
{tr}Unable to connect to the main search index, MySQL full-text search used,
the search results might not be accurate{/tr}
{/remarksbox}
{/if}
{/if}
</div>
{if $upgrade_messages|count}
{if $upgrade_messages|count eq 1}
{$title="{tr}Upgrade Available{/tr}"}
{else}
{$title="{tr}Upgrades Available{/tr}"}
{/if}
{remarksbox type="note" title=$title icon="announce"}
{foreach from=$upgrade_messages item=um}
<p>{$um|escape}</p>
{/foreach}
{/remarksbox}
{/if}
{if $prefs.feature_system_suggestions eq 'y'}
{include file="admin/admin_suggestion.tpl"}
{/if}
{if $template_not_found eq 'y'}
{remarksbox type="error" title="{tr}Error{/tr}"}
{tr _0="page" _1={$include|escape}}The <strong>%0</strong> parameter has an invalid value: <strong>%1</strong>.{/tr}
{/remarksbox}
{else}
{include file="admin/include_$include.tpl"}
{/if}
</div>
</div>