1 | {html_head} |
---|
2 | {literal} |
---|
3 | <style type="text/css"> |
---|
4 | form { width: 750px; } |
---|
5 | fieldset { padding-bottom: 30px; } |
---|
6 | p, form p { text-align: left; margin-left:20px; } |
---|
7 | li { 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}&step=2&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}&step=3&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 | {counter assign=i} |
---|
60 | <fieldset> |
---|
61 | <legend>{'autoupdate_step_'|cat:$i|@translate}</legend> |
---|
62 | <p><input type="checkbox" name="includeHistory"> {'Include history data (Warning: server memory limit may be exceeded)'|@translate}</p> |
---|
63 | <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate}"></p> |
---|
64 | </fieldset> |
---|
65 | |
---|
66 | {counter assign=i} |
---|
67 | <fieldset> |
---|
68 | <legend>{'autoupdate_step_'|cat:$i|@translate}</legend> |
---|
69 | <p><input type="submit" name="submit" value="{'Upgrade to Piwigo %s'|@translate|@sprintf:$UPGRADE_TO}" onClick="return confirm('{'autoupdate_alert'|@translate}');"></p> |
---|
70 | </fieldset> |
---|
71 | |
---|
72 | <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> |
---|
73 | </form> |
---|
74 | {/if} |
---|