blob: e5899117ce53cc1fe8599ac991b6edf9b35a6a8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
{% extends '@CoreUpdater/layout.twig' %}
{% block content %}
<div class="header">
<h1>{{ 'CoreUpdater_DatabaseUpgradeRequired'|translate }}</h1>
<p>{{ 'CoreUpdater_YourDatabaseIsOutOfDate'|translate }}</p>
{{ postEvent('Template.topBar')|raw }}
</div>
<div class="content" style="text-align:left;">
{% set helpMessage %}
{{ 'CoreUpdater_HelpMessageContent'|translate('<a target="_blank" href="?module=Proxy&action=redirect&url=http://piwik.org/faq/">','</a>','</li><li>')|raw }}
{% endset %}
{% if coreError %}
<div class="alert alert-danger">
{{ 'CoreUpdater_CriticalErrorDuringTheUpgradeProcess'|translate }}
{% for message in errorMessages %}
<br/><strong>{{ message|raw }}</strong>
{% endfor %}
</div>
<p>{{ 'CoreUpdater_HelpMessageIntroductionWhenError'|translate }}</p>
<ul>
<li>{{ helpMessage|raw }}</li>
</ul>
{% else %}
{% if coreToUpdate or pluginNamesToUpdate|length > 0 or dimensionsToUpdate|length > 0 %}
{% if coreToUpdate %}
<p>{{ 'CoreUpdater_PiwikWillBeUpgradedFromVersionXToVersionY'|translate(current_piwik_version,new_piwik_version) }}</p>
{% endif %}
{% if pluginNamesToUpdate|length > 0 %}
{% set listOfPlugins=pluginNamesToUpdate|join(', ') %}
<p>{{ 'CoreUpdater_TheFollowingPluginsWillBeUpgradedX'|translate(listOfPlugins) }}</p>
{% endif %}
{% if dimensionsToUpdate|length > 0 %}
{% set listOfDimensions=dimensionsToUpdate|join(', ') %}
<p>{{ 'CoreUpdater_TheFollowingDimensionsWillBeUpgradedX'|translate(listOfDimensions) }}</p>
{% endif %}
<h2>{{ 'CoreUpdater_NoteForLargePiwikInstances'|translate }}</h2>
{% if isMajor %}
<div class="alert alert-danger">
{{ 'CoreUpdater_MajorUpdateWarning1'|translate }}
{{ 'CoreUpdater_MajorUpdateWarning2'|translate }}
</div>
{% endif %}
<p>{{ 'CoreUpdater_TheUpgradeProcessMayFailExecuteCommand'|translate('') }}</p>
<pre>{{ commandUpgradePiwik }}</pre>
<p>{{ 'CoreUpdater_HighTrafficPiwikServerEnableMaintenance'|translate('<a target="_blank" href="?module=Proxy&action=redirect&url=http%3A%2F%2Fpiwik.org%2Ffaq%2Fhow-to%2F%23faq_111">', '</a>')|raw }}</p>
{% if queries is not empty %}
<p><a href="#" id="showSql">› {{ 'CoreUpdater_ClickHereToViewSqlQueries'|translate }}</a></p>
<div id="sqlQueries" style="display:none;">
<pre># {{ 'CoreUpdater_ListOfSqlQueriesFYI'|translate(piwik_version) }}<br/>{% for query in queries %}{{ query }}<br/>{% endfor %}</pre>
</div>
{% endif %}
<h2>{{ 'CoreUpdater_ReadyToGo'|translate }}</h2>
<p>{{ 'CoreUpdater_TheUpgradeProcessMayTakeAWhilePleaseBePatient'|translate }}</p>
{% endif %}
{% if warningMessages|length > 0 %}
<div class="alert alert-info">
{{ warningMessages[0] }}
{% if warningMessages|length > 1 %}
<button id="more-results" class="ui-button ui-state-default ui-corner-all">{{ 'General_Details'|translate }}</button>
{% endif %}
</div>
{% endif %}
{% if coreToUpdate or pluginNamesToUpdate|length > 0 or dimensionsToUpdate|length > 0 %}
<form action="index.php" id="upgradeCorePluginsForm" class="clearfix" data-updating="{{ 'CoreUpdater_Updating'|translate }}...">
<input type="hidden" name="updateCorePlugins" value="1"/>
{% if queries|length == 1 %}
<input type="submit" class="btn right" value="{{ 'General_ContinueToPiwik'|translate }}"/>
{% else %}
<input type="submit" class="btn right" value="{{ 'CoreUpdater_UpgradePiwik'|translate }}"/>
{% endif %}
</form>
{% else %}
{% if warningMessages|length >= 0 %}
<div class="alert alert-success">
{{ 'CoreUpdater_PiwikHasBeenSuccessfullyUpgraded'|translate }}
</div>
{% endif %}
<form action="index.php" class="clearfix">
<input type="submit" class="btn right" value="{{ 'General_ContinueToPiwik'|translate }}"/>
</form>
{% endif %}
{% endif %}
{% include "@Installation/_integrityDetails.twig" %}
</div>
{% endblock %}
|