1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
---|
2 | "http://www.w3.org/TR/html4/strict.dtd"> |
---|
3 | <html lang="{$lang_info.code}" dir="{$lang_info.direction}"> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
6 | <meta http-equiv="Content-script-type" content="text/javascript"> |
---|
7 | <meta http-equiv="Content-Style-Type" content="text/css"> |
---|
8 | <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico"> |
---|
9 | |
---|
10 | {get_combined_css} |
---|
11 | {foreach from=$themes item=theme} |
---|
12 | {if $theme.load_css} |
---|
13 | {combine_css path="admin/themes/`$theme.id`/theme.css" order=-10} |
---|
14 | {/if} |
---|
15 | {/foreach} |
---|
16 | |
---|
17 | <!--[if IE 7]> |
---|
18 | <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/default/fix-ie7.css"> |
---|
19 | <![endif]--> |
---|
20 | |
---|
21 | <!-- BEGIN get_combined_scripts --> |
---|
22 | {get_combined_scripts load='header'} |
---|
23 | <!-- END get_combined_scripts --> |
---|
24 | |
---|
25 | {literal} |
---|
26 | <style type="text/css"> |
---|
27 | body { |
---|
28 | font-size:12px; |
---|
29 | } |
---|
30 | |
---|
31 | .content { |
---|
32 | width: 800px; |
---|
33 | margin: auto; |
---|
34 | text-align: center; |
---|
35 | padding:0; |
---|
36 | background-color:transparent !important; |
---|
37 | border:none; |
---|
38 | } |
---|
39 | |
---|
40 | #content { |
---|
41 | min-height:0; |
---|
42 | border:none; |
---|
43 | } |
---|
44 | |
---|
45 | #theHeader { |
---|
46 | display: block; |
---|
47 | background:url("admin/themes/clear/images/piwigo_logo_big.png") no-repeat scroll center 20px transparent; |
---|
48 | height:100px; |
---|
49 | } |
---|
50 | |
---|
51 | fieldset { |
---|
52 | margin-top:20px; |
---|
53 | background-color:#f1f1f1; |
---|
54 | } |
---|
55 | |
---|
56 | legend { |
---|
57 | font-weight:bold; |
---|
58 | letter-spacing:2px; |
---|
59 | } |
---|
60 | |
---|
61 | form fieldset p { |
---|
62 | text-align:left; |
---|
63 | margin:10px; |
---|
64 | } |
---|
65 | |
---|
66 | .content h2 { |
---|
67 | display:block; |
---|
68 | font-size:20px; |
---|
69 | text-align:center; |
---|
70 | /* margin-top:5px; */ |
---|
71 | } |
---|
72 | |
---|
73 | table.table2 { |
---|
74 | width: 100%; |
---|
75 | border:0; |
---|
76 | } |
---|
77 | |
---|
78 | table.table2 td { |
---|
79 | text-align: left; |
---|
80 | padding: 5px 2px; |
---|
81 | } |
---|
82 | |
---|
83 | table.table2 td.fieldname { |
---|
84 | font-weight:normal; |
---|
85 | } |
---|
86 | |
---|
87 | table.table2 td.fielddesc { |
---|
88 | padding-left:10px; |
---|
89 | font-style:italic; |
---|
90 | } |
---|
91 | |
---|
92 | input[type="submit"], input[type="button"], a.bigButton { |
---|
93 | font-size:14px; |
---|
94 | font-weight:bold; |
---|
95 | letter-spacing:2px; |
---|
96 | border:none; |
---|
97 | background-color:#666666; |
---|
98 | color:#fff; |
---|
99 | padding:5px; |
---|
100 | -moz-border-radius:5px; |
---|
101 | } |
---|
102 | |
---|
103 | input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover { |
---|
104 | background-color:#ff7700; |
---|
105 | color:white; |
---|
106 | } |
---|
107 | |
---|
108 | input[type="text"], input[type="password"], select { |
---|
109 | background-color:#ddd; |
---|
110 | border:2px solid #ccc; |
---|
111 | -moz-border-radius:5px; |
---|
112 | padding:2px; |
---|
113 | } |
---|
114 | |
---|
115 | input[type="text"]:focus, input[type="password"]:focus, select:focus { |
---|
116 | background-color:#fff; |
---|
117 | border:2px solid #ff7700; |
---|
118 | } |
---|
119 | |
---|
120 | .sql_content, .infos a { |
---|
121 | color: #ff3363; |
---|
122 | } |
---|
123 | |
---|
124 | .errors { |
---|
125 | padding-bottom:5px; |
---|
126 | } |
---|
127 | |
---|
128 | </style> |
---|
129 | {/literal} |
---|
130 | <title>Piwigo {$RELEASE} - {'Upgrade'|@translate}</title> |
---|
131 | </head> |
---|
132 | |
---|
133 | <body> |
---|
134 | <div id="the_page"> |
---|
135 | <div id="theHeader"></div> |
---|
136 | <div id="content" class="content"> |
---|
137 | |
---|
138 | {if isset($introduction)} |
---|
139 | <h2>{'Version'|@translate} {$RELEASE} - {'Upgrade'|@translate}</h2> |
---|
140 | |
---|
141 | {if isset($errors)} |
---|
142 | <div class="errors"> |
---|
143 | <ul> |
---|
144 | {foreach from=$errors item=error} |
---|
145 | <li>{$error}</li> |
---|
146 | {/foreach} |
---|
147 | </ul> |
---|
148 | </div> |
---|
149 | {/if} |
---|
150 | |
---|
151 | <form method="POST" action="{$introduction.F_ACTION}" name="upgrade_form"> |
---|
152 | |
---|
153 | <fieldset> |
---|
154 | <table> |
---|
155 | <tr> |
---|
156 | <td>{'Language'|@translate}</td> |
---|
157 | <td> |
---|
158 | <select name="language" onchange="document.location = 'upgrade.php?language='+this.options[this.selectedIndex].value;"> |
---|
159 | {html_options options=$language_options selected=$language_selection} |
---|
160 | </select> |
---|
161 | </td> |
---|
162 | </tr> |
---|
163 | </table> |
---|
164 | |
---|
165 | <p>{'This page proposes to upgrade your database corresponding to your old version of Piwigo to the current version. The upgrade assistant thinks you are currently running a <strong>release %s</strong> (or equivalent).'|@translate:$introduction.CURRENT_RELEASE}</p> |
---|
166 | {if isset($login)} |
---|
167 | <p>{'Only administrator can run upgrade: please sign in below.'|@translate}</p> |
---|
168 | {/if} |
---|
169 | |
---|
170 | {if isset($login)} |
---|
171 | <table> |
---|
172 | <tr> |
---|
173 | <td>{'Username'|@translate}</td> |
---|
174 | <td><input type="text" name="username" id="username" size="25" maxlength="40" style="width: 150px;"></td> |
---|
175 | </tr> |
---|
176 | <tr> |
---|
177 | <td>{'Password'|@translate}</td> |
---|
178 | <td><input type="password" name="password" id="password" size="25" maxlength="25" style="width: 150px;"></td> |
---|
179 | </tr> |
---|
180 | </table> |
---|
181 | {/if} |
---|
182 | </fieldset> |
---|
183 | <p style="text-align: center;"> |
---|
184 | <input class="submit" type="submit" name="submit" value="{'Upgrade from version %s to %s'|@translate:$introduction.CURRENT_RELEASE:$RELEASE}"> |
---|
185 | </p> |
---|
186 | </form> |
---|
187 | <!-- |
---|
188 | <p style="text-align: center;"> |
---|
189 | <a href="{$introduction.RUN_UPGRADE_URL}">{'Upgrade from version %s to %s'|@translate:$introduction.CURRENT_RELEASE:$RELEASE}</a> |
---|
190 | </p> |
---|
191 | --> |
---|
192 | |
---|
193 | {/if} |
---|
194 | |
---|
195 | {if isset($upgrade)} |
---|
196 | <h2>{'Upgrade from version %s to %s'|@translate:$upgrade.VERSION:$RELEASE}</h2> |
---|
197 | |
---|
198 | <fieldset> |
---|
199 | <legend>{'Statistics'|@translate}</legend> |
---|
200 | <ul> |
---|
201 | <li>{'total upgrade time'|@translate} : {$upgrade.TOTAL_TIME}</li> |
---|
202 | <li>{'total SQL time'|@translate} : {$upgrade.SQL_TIME}</li> |
---|
203 | <li>{'SQL queries'|@translate} : {$upgrade.NB_QUERIES}</li> |
---|
204 | </ul> |
---|
205 | </fieldset> |
---|
206 | |
---|
207 | <fieldset> |
---|
208 | <legend>{'Upgrade informations'|@translate}</legend> |
---|
209 | <ul> |
---|
210 | {foreach from=$infos item=info} |
---|
211 | <li>{$info}</li> |
---|
212 | {/foreach} |
---|
213 | </ul> |
---|
214 | </fieldset> |
---|
215 | |
---|
216 | <p> |
---|
217 | <a class="bigButton" href="index.php">{'Home'|@translate}</a> |
---|
218 | </p> |
---|
219 | {/if} |
---|
220 | |
---|
221 | </div> {* content *} |
---|
222 | <div>{$L_UPGRADE_HELP}</div> |
---|
223 | </div> {* the_page *} |
---|
224 | </body> |
---|
225 | </html> |
---|