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 | } |
---|
43 | |
---|
44 | #theHeader { |
---|
45 | display: block; |
---|
46 | background:url("admin/themes/clear/images/piwigo_logo_big.png") no-repeat scroll center 20px transparent; |
---|
47 | height:100px; |
---|
48 | } |
---|
49 | |
---|
50 | fieldset { |
---|
51 | margin-top:20px; |
---|
52 | background-color:#f1f1f1; |
---|
53 | } |
---|
54 | |
---|
55 | legend { |
---|
56 | font-weight:bold; |
---|
57 | letter-spacing:2px; |
---|
58 | } |
---|
59 | |
---|
60 | form fieldset p { |
---|
61 | text-align:left; |
---|
62 | margin:10px; |
---|
63 | } |
---|
64 | |
---|
65 | .content h2 { |
---|
66 | display:block; |
---|
67 | font-size:20px; |
---|
68 | text-align:center; |
---|
69 | /* margin-top:5px; */ |
---|
70 | } |
---|
71 | |
---|
72 | table.table2 { |
---|
73 | width: 100%; |
---|
74 | border:0; |
---|
75 | } |
---|
76 | |
---|
77 | table.table2 td { |
---|
78 | text-align: left; |
---|
79 | padding: 5px 2px; |
---|
80 | } |
---|
81 | |
---|
82 | table.table2 td.fieldname { |
---|
83 | font-weight:normal; |
---|
84 | } |
---|
85 | |
---|
86 | table.table2 td.fielddesc { |
---|
87 | padding-left:10px; |
---|
88 | font-style:italic; |
---|
89 | } |
---|
90 | |
---|
91 | input[type="submit"], input[type="button"], a.bigButton { |
---|
92 | font-size:14px; |
---|
93 | font-weight:bold; |
---|
94 | letter-spacing:2px; |
---|
95 | border:none; |
---|
96 | background-color:#666666; |
---|
97 | color:#fff; |
---|
98 | padding:5px; |
---|
99 | -moz-border-radius:5px; |
---|
100 | } |
---|
101 | |
---|
102 | input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover { |
---|
103 | background-color:#ff7700; |
---|
104 | color:white; |
---|
105 | } |
---|
106 | |
---|
107 | input[type="text"], input[type="password"], select { |
---|
108 | background-color:#ddd; |
---|
109 | border:2px solid #ccc; |
---|
110 | -moz-border-radius:5px; |
---|
111 | padding:2px; |
---|
112 | } |
---|
113 | |
---|
114 | input[type="text"]:focus, input[type="password"]:focus, select:focus { |
---|
115 | background-color:#fff; |
---|
116 | border:2px solid #ff7700; |
---|
117 | } |
---|
118 | |
---|
119 | .sql_content, .infos a { |
---|
120 | color: #ff3363; |
---|
121 | } |
---|
122 | |
---|
123 | .errors { |
---|
124 | padding-bottom:5px; |
---|
125 | } |
---|
126 | |
---|
127 | </style> |
---|
128 | {/literal} |
---|
129 | <title>Piwigo {$RELEASE} - {'Upgrade'|@translate}</title> |
---|
130 | </head> |
---|
131 | |
---|
132 | <body> |
---|
133 | <div id="the_page"> |
---|
134 | <div id="theHeader"></div> |
---|
135 | <div id="content" class="content"> |
---|
136 | |
---|
137 | {if isset($introduction)} |
---|
138 | <h2>{'Version'|@translate} {$RELEASE} - {'Upgrade'|@translate}</h2> |
---|
139 | |
---|
140 | {if isset($errors)} |
---|
141 | <div class="errors"> |
---|
142 | <ul> |
---|
143 | {foreach from=$errors item=error} |
---|
144 | <li>{$error}</li> |
---|
145 | {/foreach} |
---|
146 | </ul> |
---|
147 | </div> |
---|
148 | {/if} |
---|
149 | |
---|
150 | <form method="POST" action="{$introduction.F_ACTION}" name="upgrade_form"> |
---|
151 | |
---|
152 | <fieldset> |
---|
153 | <table> |
---|
154 | <tr> |
---|
155 | <td>{'Language'|@translate}</td> |
---|
156 | <td> |
---|
157 | <select name="language" onchange="document.location = 'upgrade.php?language='+this.options[this.selectedIndex].value;"> |
---|
158 | {html_options options=$language_options selected=$language_selection} |
---|
159 | </select> |
---|
160 | </td> |
---|
161 | </tr> |
---|
162 | </table> |
---|
163 | |
---|
164 | <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|@sprintf:$introduction.CURRENT_RELEASE}</p> |
---|
165 | {if isset($login)} |
---|
166 | <p>{'Only administrator can run upgrade: please sign in below.'|@translate}</p> |
---|
167 | {/if} |
---|
168 | |
---|
169 | {if isset($login)} |
---|
170 | <table> |
---|
171 | <tr> |
---|
172 | <td>{'Username'|@translate}</td> |
---|
173 | <td><input type="text" name="username" id="username" size="25" maxlength="40" style="width: 150px;"></td> |
---|
174 | </tr> |
---|
175 | <tr> |
---|
176 | <td>{'Password'|@translate}</td> |
---|
177 | <td><input type="password" name="password" id="password" size="25" maxlength="25" style="width: 150px;"></td> |
---|
178 | </tr> |
---|
179 | </table> |
---|
180 | {/if} |
---|
181 | </fieldset> |
---|
182 | <p style="text-align: center;"> |
---|
183 | <input class="submit" type="submit" name="submit" value="{'Upgrade from version %s to %s'|@translate|@sprintf:$introduction.CURRENT_RELEASE:$RELEASE}"> |
---|
184 | </p> |
---|
185 | </form> |
---|
186 | <!-- |
---|
187 | <p style="text-align: center;"> |
---|
188 | <a href="{$introduction.RUN_UPGRADE_URL}">{'Upgrade from version %s to %s'|@translate|@sprintf:$introduction.CURRENT_RELEASE:$RELEASE}</a> |
---|
189 | </p> |
---|
190 | --> |
---|
191 | |
---|
192 | {/if} |
---|
193 | |
---|
194 | {if isset($upgrade)} |
---|
195 | <h2>{'Upgrade from version %s to %s'|@translate|@sprintf:$upgrade.VERSION:$RELEASE}</h2> |
---|
196 | |
---|
197 | <fieldset> |
---|
198 | <legend>{'Statistics'|@translate}</legend> |
---|
199 | <ul> |
---|
200 | <li>{'total upgrade time'|@translate} : {$upgrade.TOTAL_TIME}</li> |
---|
201 | <li>{'total SQL time'|@translate} : {$upgrade.SQL_TIME}</li> |
---|
202 | <li>{'SQL queries'|@translate} : {$upgrade.NB_QUERIES}</li> |
---|
203 | </ul> |
---|
204 | </fieldset> |
---|
205 | |
---|
206 | <fieldset> |
---|
207 | <legend>{'Upgrade informations'|@translate}</legend> |
---|
208 | <ul> |
---|
209 | {foreach from=$infos item=info} |
---|
210 | <li>{$info}</li> |
---|
211 | {/foreach} |
---|
212 | </ul> |
---|
213 | </fieldset> |
---|
214 | |
---|
215 | <p> |
---|
216 | <a class="bigButton" href="index.php">{'Home'|@translate}</a> |
---|
217 | </p> |
---|
218 | {/if} |
---|
219 | |
---|
220 | </div> {* content *} |
---|
221 | <div>{$L_UPGRADE_HELP}</div> |
---|
222 | </div> {* the_page *} |
---|
223 | </body> |
---|
224 | </html> |
---|