1 | {footer_script} |
---|
2 | jQuery(document).ready(function() {ldelim} |
---|
3 | jQuery('input[name="submit"]').click(function() {ldelim} |
---|
4 | if(!confirm('{'Are you sure?'|@translate}')) |
---|
5 | return false; |
---|
6 | jQuery(this).hide(); |
---|
7 | jQuery('.autoupdate_bar').show(); |
---|
8 | }); |
---|
9 | jQuery('[name="understand"]').click(function() {ldelim} |
---|
10 | jQuery('[name="submit"]').attr('disabled', !this.checked); |
---|
11 | }); |
---|
12 | }); |
---|
13 | {/footer_script} |
---|
14 | |
---|
15 | {html_head} |
---|
16 | {literal} |
---|
17 | <style type="text/css"> |
---|
18 | form { width: 750px; } |
---|
19 | fieldset { padding-bottom: 30px; } |
---|
20 | p, form p { text-align: left; margin-left:20px; } |
---|
21 | li { margin: 5px; } |
---|
22 | </style> |
---|
23 | {/literal} |
---|
24 | {/html_head} |
---|
25 | |
---|
26 | <div class="titrePage"> |
---|
27 | <h2>{'Updates'|@translate}</h2> |
---|
28 | </div> |
---|
29 | |
---|
30 | {if $STEP == 0} |
---|
31 | {if $CHECK_VERSION} |
---|
32 | <p>{'You are running the latest version of Piwigo.'|@translate}</p> |
---|
33 | {elseif $DEV_VERSION} |
---|
34 | <p>{'You are running on development sources, no check possible.'|@translate}</p> |
---|
35 | {else} |
---|
36 | <p>{'Check for update failed for unknown reasons.'|@translate}</p> |
---|
37 | {/if} |
---|
38 | {/if} |
---|
39 | |
---|
40 | {if $STEP == 1} |
---|
41 | <h4>{'Two updates are available'|@translate}:</h4> |
---|
42 | <p> |
---|
43 | <ul> |
---|
44 | <li><a href="admin.php?page=updates&step=2&to={$MINOR_VERSION}"><strong>{'Update to Piwigo %s'|@translate:$MINOR_VERSION}</strong></a>: {'This is a minor update, with only bug corrections.'|@translate}</li> |
---|
45 | <li><a href="admin.php?page=updates&step=3&to={$MAJOR_VERSION}"><strong>{'Update to Piwigo %s'|@translate:$MAJOR_VERSION}</strong></a>: {'This is a major update, with <a href="%s">new exciting features</a>.'|@translate:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate}</li> |
---|
46 | </ul> |
---|
47 | </p> |
---|
48 | <p>{'You can update to Piwigo %s directly, without upgrading to Piwigo %s (recommended).'|@translate:$MAJOR_VERSION:$MINOR_VERSION}</p> |
---|
49 | {/if} |
---|
50 | |
---|
51 | {if $STEP == 2} |
---|
52 | <p> |
---|
53 | {'A new version of Piwigo is available.'|@translate}<br> |
---|
54 | {'This is a minor update, with only bug corrections.'|@translate} |
---|
55 | </p> |
---|
56 | <form action="" method="post"> |
---|
57 | <p><input type="submit" name="submit" value="{'Update to Piwigo %s'|@translate:$UPGRADE_TO}"></p> |
---|
58 | <p class="autoupdate_bar" style="display:none;"> {'Update in progress...'|@translate}<br><img src="admin/themes/default/images/ajax-loader-bar.gif"></p> |
---|
59 | <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> |
---|
60 | </form> |
---|
61 | {/if} |
---|
62 | |
---|
63 | {if $STEP == 3} |
---|
64 | <p> |
---|
65 | {'A new version of Piwigo is available.'|@translate}<br> |
---|
66 | {'This is a major update, with <a href="%s">new exciting features</a>.'|@translate:$RELEASE_URL} {'Some themes and plugins may be not available yet.'|@translate} |
---|
67 | </p> |
---|
68 | <form action="" method="post"> |
---|
69 | |
---|
70 | {counter assign=i} |
---|
71 | <fieldset> |
---|
72 | <legend>{'Dump Database'|@translate}</legend> |
---|
73 | <p><input type="checkbox" name="includeHistory"> {'Include history data (Warning: server memory limit may be exceeded)'|@translate}</p> |
---|
74 | <p><input type="submit" name="dumpDatabase" value="{'Dump Database'|@translate}"></p> |
---|
75 | </fieldset> |
---|
76 | |
---|
77 | {counter assign=i} |
---|
78 | <fieldset> |
---|
79 | <legend>{'Update to Piwigo %s'|@translate:$UPGRADE_TO}</legend> |
---|
80 | {if !empty($missing.plugins)} |
---|
81 | <p><i>{'Following plugins may not be compatible with the new version of Piwigo:'|@translate}</i></p> |
---|
82 | <p><ul>{foreach from=$missing.plugins item=plugin}<li><a href="{$plugin.uri}" class="externalLink">{$plugin.name}</a></li>{/foreach}</ul><br></p> |
---|
83 | {/if} |
---|
84 | {if !empty($missing.themes)} |
---|
85 | <p><i>{'Following themes may not be compatible with the new version of Piwigo:'|@translate}</i></p> |
---|
86 | <p><ul>{foreach from=$missing.themes item=theme}<li><a href="{$theme.uri}" class="externalLink">{$theme.name}</a></li>{/foreach}</ul><br></p> |
---|
87 | {/if} |
---|
88 | <p> |
---|
89 | {if !empty($missing.plugins) or !empty($missing.themes)} |
---|
90 | <p><label><input type="checkbox" name="understand"> {'I decide to update anyway'|@translate}</label></p> |
---|
91 | {/if} |
---|
92 | <p><input type="submit" name="submit" value="{'Update to Piwigo %s'|@translate:$UPGRADE_TO}" {if !empty($missing.plugins) or !empty($missing.themes)}disabled="disabled"{/if}> |
---|
93 | </p> |
---|
94 | <p class="autoupdate_bar" style="display:none;"> {'Update in progress...'|@translate}<br><img src="admin/themes/default/images/ajax-loader-bar.gif"></p> |
---|
95 | </fieldset> |
---|
96 | |
---|
97 | <p><input type="hidden" name="upgrade_to" value="{$UPGRADE_TO}"></p> |
---|
98 | </form> |
---|
99 | {/if} |
---|