source: extensions/autoupdate/trunk/template/autoupdate.tpl @ 6196

Last change on this file since 6196 was 6196, checked in by patdenice, 10 years ago

Webmaster status is required to launch any upgrade process.
Display "save template directory" fielset only if Piwigo version < 2.1.
Add random parameter in all_version url (to avoid cache server).
Move empty directory to trash is rmdir fail.

File size: 3.0 KB
Line 
1{html_head}
2{literal}
3<style type="text/css">
4form { width: 750px; }
5fieldset { padding-bottom: 30px; }
6p, form p { text-align: left; margin-left:20px; }
7li { margin: 5px; }
8</style>
9{/literal}
10{/html_head}
11
12<div class="titrePage">
13{if $STEP < 2}
14<h2>Piwigo AutoUpgrade</h2>
15{else}
16<h2>{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}</h2>
17{/if}
18</div>
19
20{if $STEP == 0}
21  {if $CHECK_VERSION}
22    <p>{'You are running the latest version of Piwigo.'|@translate}</p>
23  {elseif $DEV_VERSION}
24    <p>{'You are running on development sources, no check possible.'|@translate}</p>
25  {else}
26    <p>{'Check for upgrade failed for unknown reasons.'|@translate}</p>
27  {/if}
28{/if}
29
30{if $STEP == 1}
31<h4>{'Two upgrades are available'|@translate}:</h4>
32<p>
33<ul>
34  <li><a href="{$AU_URL}&amp;step=2&amp;to={$MINOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MINOR_VERSION}</strong></a>: {'This is a minor upgrade, with only bug corrections.'|@translate}</li>
35  <li><a href="{$AU_URL}&amp;step=3&amp;to={$MAJOR_VERSION}"><strong>{'Upgrade to Piwigo %s'|@translate|@sprintf:$MAJOR_VERSION}</strong></a>: {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}</li>
36</ul>
37</p>
38<p>{'You can upgrade to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate|@sprintf:$MAJOR_VERSION:$MINOR_VERSION}</p>
39{/if}
40
41{if $STEP == 2}
42<p>
43  {'A new version of Piwigo is available.'|@translate}<br>
44  {'This is a minor upgrade, with only bug corrections.'|@translate}
45</p>
46<form action="" method="post">
47<p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
48<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
49</form>
50{/if}
51
52{if $STEP == 3}
53<p>
54  {'A new version of Piwigo is available.'|@translate}<br>
55  {'This is a major upgrade, with <a href="%s">new exciting features</a>.'|@translate|@sprintf:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}
56</p>
57<form action="" method="post">
58
59{if version_compare($PHPWG_VERSION, '2.1', '<')}
60{counter assign=i}
61<fieldset>
62  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
63  <p><input type="submit" name="saveTemplate" value="{'Save Template Directory'|@translate}"></p>
64</fieldset>
65{/if}
66
67{counter assign=i}
68<fieldset>
69  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
70  <p><input type="checkbox" name="includeHistory"> &nbsp; {'Include history data (Warning: server memory limit may be exceeded)'|@translate}</p>
71  <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate}"></p>
72</fieldset>
73
74{counter assign=i}
75<fieldset>
76  <legend>{'autoupdate_step_'|cat:$i|@translate}</legend>
77  <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p>
78</fieldset>
79
80<p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p>
81</form>
82{/if}
Note: See TracBrowser for help on using the repository browser.