PDF rausgenommen

This commit is contained in:
aschwarz
2023-01-23 11:03:31 +01:00
parent 82d562a322
commit a6523903eb
28078 changed files with 4247552 additions and 2 deletions

View File

@ -0,0 +1,37 @@
<div id="integrity-results" title="{{ 'Installation_SystemCheckFileIntegrity'|translate }}" style="display:none; font-size: 62.5%;">
<table>
{% for msg in warningMessages %}
<tr>
<td>{{ msg|raw }}</td>
</tr>
{% endfor %}
</table>
</div>
<script type="text/javascript">
<!--
$(function () {
$("#integrity-results").dialog({
modal: true,
autoOpen: false,
width: 600,
buttons: {
Ok: function () {
$(this).dialog('close');
}
}
});
});
$('#more-results').click(function () {
$('#integrity-results').dialog('open');
}).hover(function () {
$(this).addClass("ui-state-hover");
},
function () {
$(this).removeClass("ui-state-hover");
}).mousedown(function () {
$(this).addClass("ui-state-active");
}).mouseup(function () {
$(this).removeClass("ui-state-active");
});
//-->
</script>

View File

@ -0,0 +1,20 @@
<div class="system-check-legend">
<h2>{{ 'Installation_Legend'|translate }}</h2>
<p>
<span class="icon-ok"></span>
{{ 'General_Ok'|translate }}
</p>
<p>
<span class="icon-warning"></span>
{{ 'General_Warning'|translate }}: {{ 'Installation_SystemCheckWarning'|translate }}
</p>
<p>
<span class="icon-error"></span>
{{ 'General_Error'|translate }}: {{ 'Installation_SystemCheckError'|translate }}
</p>
</div>
<p class="next-step">
<a href="{{ url }}">{{ 'General_RefreshPage'|translate }} &raquo;</a>
</p>

View File

@ -0,0 +1,50 @@
{% import _self as local %}
<table class="entityTable system-check" id="systemCheckRequired" piwik-content-table>
{{ local.diagnosticTable(diagnosticReport.getMandatoryDiagnosticResults()) }}
</table>
<h3>{{ 'Installation_Optional'|translate }}</h3>
<table class="entityTable system-check" id="systemCheckOptional" piwik-content-table>
{{ local.diagnosticTable(diagnosticReport.getOptionalDiagnosticResults()) }}
</table>
{% macro diagnosticTable(results) %}
{% set error = constant('Piwik\\Plugins\\Diagnostics\\Diagnostic\\DiagnosticResult::STATUS_ERROR') %}
{% set warning = constant('Piwik\\Plugins\\Diagnostics\\Diagnostic\\DiagnosticResult::STATUS_WARNING') %}
{% set errorIcon %} <span class="icon-error"></span> {% endset %}
{% set warningIcon %} <span class="icon-warning"></span> {% endset %}
{% set okIcon %} <span class="icon-ok"></span> {% endset %}
{% for result in results %}
<tr>
<td>{{ result.label }}</td>
<td>
{% for item in result.items %}
{% if item.status == error %}
{{ errorIcon }} <span class="err">{{ item.comment|raw }}</span>
{% elseif item.status == warning %}
{{ warningIcon }} {{ item.comment|raw }}
{% else %}
{{ okIcon }} {{ item.comment|raw }}
{% endif %}
<br/>
{% endfor %}
</td>
</tr>
{% if result.longErrorMessage %}
<tr>
<td colspan="2" class="error" style="font-size: small;">
{{ result.longErrorMessage|raw }}
</td>
</tr>
{% endif %}
{% endfor %}
{% endmacro %}

View File

@ -0,0 +1,5 @@
<p>{{ 'Installation_CannotConnectToDb'|translate }}:</p>
<p><strong>{{ exceptionMessage }}</strong></p>
<p>{{ 'Installation_CannotConnectToDbResolvingExplanation'|translate('<a href="javascript:window.location.reload()">', '</a>')|raw }}</p>

View File

@ -0,0 +1,18 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
<h2>{{ 'Installation_DatabaseSetup'|translate }}</h2>
{% if errorMessage is defined %}
<div class="alert alert-danger">
{{ 'Installation_DatabaseErrorConnect'|translate }}:
{{ errorMessage|raw }}
</div>
{% endif %}
{% if form_data is defined %}
{% include "genericForm.twig" %}
{% endif %}
{% endblock %}

View File

@ -0,0 +1,46 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
<h2>{{ 'Installation_Congratulations'|translate|raw }}</h2>
{{ 'Installation_CongratulationsHelp'|translate|raw }}
<h3>{{ 'Installation_WelcomeToCommunity'|translate }}</h3>
<p>
{{ 'Installation_CollaborativeProject'|translate }}
</p>
<p>
{{ 'Installation_GetInvolved'|translate('<a rel="noreferrer noopener" target="_blank" href="https://matomo.org/get-involved/">','</a>')|raw }}
{{ 'General_HelpTranslatePiwik'|translate("<a rel='noreferrer noopener' target='_blank' href=\'https://matomo.org/translations/\'>","<\/a>")|raw }}
</p>
<p>{{ 'Installation_WeHopeYouWillEnjoyPiwik'|translate }}</p>
<p><i>{{ 'Installation_HappyAnalysing'|translate }}</i></p>
{% if areAdsForProfessionalServicesEnabled %}
<h3>{{ 'Installation_ProfessionalServicesAdTitle'|translate }}</h3>
<p>
{{ 'Installation_ProfessionalServicesfessionalServicesAdText'|translate }}
</p>
<p>
{{ 'Installation_ProfessionalServicesfessionalDiscoverHow'|translate('<a rel="noreferrer noopener" target="_blank" href="' ~ linkToProfessionalServices ~ '">','</a>')|raw }}
</p>
{% endif %}
<h3>{{ 'Installation_DefaultSettings'|translate }}</h3>
<p>{{ 'Installation_DefaultSettingsHelp'|translate }}</p>
{% if errorMessage is defined %}
<div class="alert alert-danger">
{{ 'General_Error'|translate }}:
<br/>- {{ errorMessage|raw }}
</div>
{% endif %}
<div class="installation-finished">
{% if form_data is defined %}
{% include "genericForm.twig" %}
{% endif %}
</div>
{% endblock %}

View File

@ -0,0 +1,29 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
<h2>{{ 'Installation_SetupWebsite'|translate }}</h2>
{% if displayGeneralSetupSuccess is defined %}
<div id="feedback" class="alert alert-success">
{{ 'Installation_SuperUserSetupSuccess'|translate }}
</div>
{% endif %}
<p>{{ 'Installation_SiteSetup'|translate }}</p>
{% if errorMessage is defined %}
<div class="alert alert-danger">
{{ 'Installation_SetupWebsiteError'|translate }}:
<br/>- {{ errorMessage|raw }}
</div>
{% endif %}
{% if form_data is defined %}
{% include "genericForm.twig" %}
{% endif %}
<div class="clearfix"></div>
<p><em>{{ 'Installation_SiteSetupFootnote'|translate }}</em></p>
{% endblock %}

View File

@ -0,0 +1,39 @@
<div class="widgetBody system-check">
{% if not numErrors and not numWarnings %}
<p class="system-success"><span class="icon-ok"></span> {{ 'Installation_SystemCheckNoErrorsOrWarnings'|translate }}</p>
{% endif %}
{% if numErrors %}
<p class="system-errors"><span class="icon-error"></span> {{ 'General_Errors'|translate }}</p>
<ul>
{% for error in errors %}
<li title="{{ error.getLongErrorMessage|e('html_attr') }}">{{ error.getLabel }}</li>
{% endfor %}
</ul>
{% endif %}
{% if numWarnings %}
<p class="system-warnings">
{% if numErrors %}
<br />
{% endif %}
<span class="icon-warning"></span> {{ 'General_Warnings'|translate }}
</p>
<ul>
{% for warning in warnings %}
<li title="{{ warning.getLongErrorMessage|e('html_attr') }}">{{ warning.getLabel }}</li>
{% endfor %}
</ul>
{% endif %}
{% if numErrors or numWarnings %}
<p>
<br />
<a href="{{ linkTo({'module': 'Installation', 'action': 'systemCheckPage'}) }}"
>{{ 'Installation_SystemCheckViewFullSystemCheck'|translate }}</a>
</p>
{% endif %}
</div>

View File

@ -0,0 +1,86 @@
<!DOCTYPE html>
<html id="ng-app" ng-app="piwikApp">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex,nofollow">
<meta name="google" content="notranslate">
<title>Matomo {{ piwikVersion }} &rsaquo; {{ 'Installation_Installation'|translate }}</title>
<link rel="stylesheet" type="text/css" href="index.php?module=Installation&action=getInstallationCss"/>
<script type="text/javascript" src="index.php?module=Installation&action=getInstallationJs"></script>
<link rel="shortcut icon" href="plugins/CoreHome/images/favicon.png"/>
</head>
<body ng-app="app" id="installation">
<div class="container">
<div class="header">
<div class="logo">
<img title="Matomo {{ piwikVersion }} - {{ 'General_OpenSourceWebAnalytics'|translate|escape('html_attr') }}" src="plugins/Morpheus/images/logo.png"/>
<p>{{ 'General_OpenSourceWebAnalytics'|translate }}</p>
</div>
<div class="language-selector">
{{ postEvent('Template.topBar')|raw }}
</div>
<div class="installation-progress">
<h4>
{{ 'Installation_InstallationStatus'|translate }}
<small>{{ percentDone }}%</small>
</h4>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: {{ percentDone }}%;"></div>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="row">
<div class="col s3">
<ul class="list-group">
{% for stepId,stepName in allStepsTitle %}
{% if currentStepId > stepId %}
{% set stepClass = 'disabled' %}
{% elseif currentStepId == stepId %}
{% set stepClass = 'active' %}
{% else %}
{% set stepClass = '' %}
{% endif %}
<li class="list-group-item {{ stepClass }}">{{ stepId + 1 }}. {{ stepName|translate }}</li>
{% endfor %}
</ul>
</div>
<div class="col s9 content">
{% set nextButton %}
<p class="next-step">
<a class="btn" href="{{ linkTo({'action':nextModuleName, 'token_auth':null, 'method':null }) }}">
{{ 'General_Next'|translate }} &raquo;</a>
</p>
{% endset %}
{% if showNextStepAtTop is defined and showNextStepAtTop %}
{{ nextButton }}
{% endif %}
{% block content %}{% endblock %}
{% if showNextStep %}
{{ nextButton }}
{% endif %}
</div>
</div>
</div>
<div id="should-get-hidden"
style="color: red;margin-left: 16px;margin-bottom: 16px;font-weight:bold;font-size: 20px">
<p class="should-get-hidden-by-js">
{{ 'CoreHome_JsDidntLoad'|translate }}
</p>
<p class="should-get-hidden-by-css">
{{ 'CoreHome_CssDidntLoad'|translate }}
</p>
</div>
{% include "@CoreHome/_adblockDetect.twig" %}
</body>
</html>

View File

@ -0,0 +1,77 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
{% set helpMessage %}{{- 'CoreUpdater_HelpMessageContent'|translate('[',']',"<br/>")|raw }}{% endset %}
<h2>{{ 'Installation_ReusingTables'|translate }}</h2>
<div class="reuseTables">
{% if coreError %}
<div class="alert alert-danger">
{{ 'CoreUpdater_CriticalErrorDuringTheUpgradeProcess'|translate }}
<ul>
{% for message in errorMessages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
</div>
<p>{{ 'CoreUpdater_HelpMessageIntroductionWhenError'|translate }}</p>
<ul>
<li>{{ helpMessage }}</li>
</ul>
<p>{{ 'CoreUpdater_ErrorDIYHelp'|translate }}</p>
<ul>
<li>{{ 'CoreUpdater_ErrorDIYHelp_1'|translate }}</li>
<li>{{ 'CoreUpdater_ErrorDIYHelp_2'|translate }}</li>
<li>{{ 'CoreUpdater_ErrorDIYHelp_3'|translate }} <a href='https://matomo.org/faq/how-to-update/#faq_179' rel='noreferrer noopener' target='_blank'>(see FAQ)</a></li>
<li>{{ 'CoreUpdater_ErrorDIYHelp_4'|translate }}</li>
<li>{{ 'CoreUpdater_ErrorDIYHelp_5'|translate }}</li>
</ul>
{% else %}
{% if warningMessages|length > 0 %}
<div class="alert alert-warning">
{{ 'CoreUpdater_WarningMessages'|translate }}
<ul>
{% for message in warningMessages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if errorMessages|length > 0 %}
<div class="alert alert-error">
{{ 'CoreUpdater_ErrorDuringPluginsUpdates'|translate }}
<ul>
{% for message in errorMessages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% if deactivatedPlugins is defined and deactivatedPlugins|length > 0 %}
{% set listOfDeactivatedPlugins=deactivatedPlugins|join(', ') %}
<p>
{{ 'CoreUpdater_WeAutomaticallyDeactivatedTheFollowingPlugins'|translate(listOfDeactivatedPlugins) }}
</p>
{% endif %}
</div>
{% endif %}
{% if errorMessages|length > 0 or warningMessages|length > 0 %}
<p>{{ 'CoreUpdater_HelpMessageIntroductionWhenWarning'|translate }}</p>
<ul>
<li>{{ helpMessage }}</li>
</ul>
{% else %}
<div class="alert alert-success">
{{ 'Installation_TablesUpdatedSuccess'|translate(oldVersion, currentVersion) }}
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}

View File

@ -0,0 +1,18 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
<h2>{{ 'Installation_SuperUser'|translate }}</h2>
{% if errorMessage is defined %}
<div class="alert alert-danger">
{{ 'Installation_SuperUserSetupError'|translate }}:
<br/>- {{ errorMessage|raw }}
</div>
{% endif %}
{% if form_data is defined %}
{% include "genericForm.twig" %}
{% endif %}
{% endblock %}

View File

@ -0,0 +1,31 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
<script type="text/javascript">
$(function () {
// client-side test for https to handle the case where the server is behind a reverse proxy
if (document.location.protocol === 'https:') {
$('p.next-step a').attr('href', $('p.next-step a').attr('href') + '&clientProtocol=https');
}
});
</script>
{% if not showNextStep %}
{% include "@Installation/_systemCheckLegend.twig" %}
<br style="clear:both;">
{% endif %}
<h2>{{ 'Installation_SystemCheck'|translate }}</h2>
{% include "@Installation/_systemCheckSection.twig" %}
{% if not showNextStep %}
<p>
<span class="icon-export"></span>
<a target="_blank" rel="noreferrer noopener" href="https://matomo.org/docs/requirements/">{{ 'Installation_Requirements'|translate }}</a>
</p>
{% include "@Installation/_systemCheckLegend.twig" %}
{% endif %}
{% endblock %}

View File

@ -0,0 +1,29 @@
{% extends 'admin.twig' %}
{% set title %}{{ 'Installation_SystemCheck'|translate }}{% endset %}
{% block content %}
<div piwik-content-block content-title="{{ title|e('html_attr') }}" feature="true">
{% if diagnosticReport.hasErrors() %}
<div class="alert alert-danger">
{{ 'Installation_SystemCheckSummaryThereWereErrors'|translate('<strong>','</strong>','<strong>','</strong>')|raw }}
{{ 'Installation_SeeBelowForMoreInfo'|translate }}
</div>
{% elseif diagnosticReport.hasWarnings() %}
<div class="alert alert-warning">
{{ 'Installation_SystemCheckSummaryThereWereWarnings'|translate }}
{{ 'Installation_SeeBelowForMoreInfo'|translate }}
</div>
{% else %}
<div class="alert alert-success">
{{ 'Installation_SystemCheckSummaryNoProblems'|translate }}
</div>
{% endif %}
{% include "@Installation/_systemCheckSection.twig" %}
</div>
{% endblock %}

View File

@ -0,0 +1,56 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
<h2>{{ 'Installation_Tables'|translate }}</h2>
{% if someTablesInstalled is defined %}
<div class="alert alert-warning">
{{ 'Installation_TablesWithSameNamesFound'|translate("<span id='linkToggle'>","</span>")|raw }}
</div>
<p>
{{ 'Installation_TablesFound'|translate }}:
</p>
<p>
<em>{{ tablesInstalled }} </em>
</p>
{% if showReuseExistingTables is defined %}
<p>{{ 'Installation_TablesWarningHelp'|translate }}</p>
<p class="next-step">
<a href="{{ linkTo({'action':'reuseTables'}) }}">{{ 'Installation_TablesReuse'|translate }} &raquo;</a>
</p>
{% else %}
<p class="next-step">
<a href="{{ linkTo({'action':previousPreviousModuleName}) }}">&laquo; {{ 'Installation_GoBackAndDefinePrefix'|translate }}</a>
</p>
{% endif %}
<p class="next-step">
<a href="{{ linkTo({'deleteTables':1}) }}" id="eraseAllTables">{{ 'Installation_TablesDelete'|translate }} &raquo;</a>
</p>
{% endif %}
{% if existingTablesDeleted is defined %}
<div class="alert alert-success">
{{ 'Installation_TablesDeletedSuccess'|translate }}
</div>
{% endif %}
{% if tablesCreated is defined %}
<div class="alert alert-success">
{{ 'Installation_TablesCreatedSuccess'|translate }}
</div>
{% endif %}
<script>
$(document).ready(function () {
var strConfirmEraseTables = "{{ 'Installation_ConfirmDeleteExistingTables'|translate("["~tablesInstalled~"]") }} ";
$("#eraseAllTables").click(function () {
if (!confirm(strConfirmEraseTables)) {
return false;
}
});
});
</script>
{% endblock %}

View File

@ -0,0 +1,21 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
{% if displayfirstWebsiteSetupSuccess is defined %}
<div id="feedback" class="alert alert-success">
{{ 'Installation_SetupWebsiteSetupSuccess'|translate(displaySiteName) }}
</div>
{% endif %}
{{ trackingHelp|raw }}
<h3>{{ 'Installation_LargePiwikInstances'|translate }}</h3>
<p>
{{ 'Installation_JsTagArchivingHelp1'|translate('<a rel="noreferrer noopener" target="_blank" href="https://matomo.org/docs/setup-auto-archiving/">','</a>')|raw }}
</p>
<p>
{{ 'General_ReadThisToLearnMore'|translate('<a rel="noreferrer noopener" target="_blank" href="https://matomo.org/docs/optimize/">','</a>')|raw }}
</p>
{% endblock %}

View File

@ -0,0 +1,34 @@
{% extends '@Installation/layout.twig' %}
{% block content %}
<h2>{{ 'Installation_Welcome'|translate }}</h2>
{{ 'Installation_WelcomeHelp'|translate(totalNumberOfSteps)|raw }}
<script type="text/javascript">
<!--
$(function () {
// client-side test for broken tracker (e.g., mod_security rule)
$('.next-step').hide();
$.ajax({
url: 'matomo.php',
data: 'url=http://example.com',
complete: function () {
$('.next-step').show();
},
error: function (req) {
$('.next-step a').attr('href', $('.next-step a').attr('href') + '&trackerStatus=' + req.status);
}
});
});
//-->
</script>
{% if not showNextStep %}
<p class="next-step">
<a href="{{ url }}">{{ 'General_RefreshPage'|translate }} &raquo;</a>
</p>
{% endif %}
{% endblock %}