1 | <!DOCTYPE html> |
---|
2 | <html lang="{$lang_info.code}" dir="{$lang_info.direction}"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset={$T_CONTENT_ENCODING}"> |
---|
5 | <meta http-equiv="Content-script-type" content="text/javascript"> |
---|
6 | <meta http-equiv="Content-Style-Type" content="text/css"> |
---|
7 | <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico"> |
---|
8 | |
---|
9 | {get_combined_css} |
---|
10 | {foreach from=$themes item=theme} |
---|
11 | {if $theme.load_css} |
---|
12 | {combine_css path="admin/themes/`$theme.id`/theme.css" order=-10} |
---|
13 | {/if} |
---|
14 | {/foreach} |
---|
15 | |
---|
16 | <!--[if IE 7]> |
---|
17 | <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/default/fix-ie7.css"> |
---|
18 | <![endif]--> |
---|
19 | |
---|
20 | <!-- BEGIN get_combined_scripts --> |
---|
21 | {get_combined_scripts load='header'} |
---|
22 | <!-- END get_combined_scripts --> |
---|
23 | |
---|
24 | {combine_script id='jquery' path='themes/default/js/jquery.min.js'} |
---|
25 | {literal} |
---|
26 | <script type="text/javascript"> |
---|
27 | $(document).ready(function() { |
---|
28 | $("a.externalLink").click(function() { |
---|
29 | window.open($(this).attr("href")); |
---|
30 | return false; |
---|
31 | }); |
---|
32 | |
---|
33 | $("#admin_mail").keyup(function() { |
---|
34 | $(".adminEmail").text($(this).val()); |
---|
35 | }); |
---|
36 | }); |
---|
37 | </script> |
---|
38 | |
---|
39 | <style type="text/css"> |
---|
40 | body { |
---|
41 | font-size:12px; |
---|
42 | } |
---|
43 | |
---|
44 | #content { |
---|
45 | width: 800px; |
---|
46 | margin: auto; |
---|
47 | text-align: center; |
---|
48 | padding:0; |
---|
49 | background-color:transparent !important; |
---|
50 | border:none; |
---|
51 | } |
---|
52 | |
---|
53 | #theHeader { |
---|
54 | display: block; |
---|
55 | background:url("admin/themes/clear/images/piwigo_logo_big.png") no-repeat scroll center 20px transparent; |
---|
56 | height:100px; |
---|
57 | } |
---|
58 | |
---|
59 | fieldset { |
---|
60 | margin-top:20px; |
---|
61 | background-color:#f1f1f1; |
---|
62 | } |
---|
63 | |
---|
64 | legend { |
---|
65 | font-weight:bold; |
---|
66 | letter-spacing:2px; |
---|
67 | } |
---|
68 | |
---|
69 | .content h2 { |
---|
70 | display:block; |
---|
71 | font-size:20px; |
---|
72 | text-align:center; |
---|
73 | /* margin-top:5px; */ |
---|
74 | } |
---|
75 | |
---|
76 | table.table2 { |
---|
77 | width: 100%; |
---|
78 | border:0; |
---|
79 | } |
---|
80 | |
---|
81 | table.table2 td { |
---|
82 | text-align: left; |
---|
83 | padding: 5px 2px; |
---|
84 | } |
---|
85 | |
---|
86 | table.table2 td.fieldname { |
---|
87 | font-weight:normal; |
---|
88 | } |
---|
89 | |
---|
90 | table.table2 td.fielddesc { |
---|
91 | padding-left:10px; |
---|
92 | font-style:italic; |
---|
93 | } |
---|
94 | |
---|
95 | input[type="submit"], input[type="button"], a.bigButton { |
---|
96 | font-size:14px; |
---|
97 | font-weight:bold; |
---|
98 | letter-spacing:2px; |
---|
99 | border:none; |
---|
100 | background-color:#666666; |
---|
101 | color:#fff; |
---|
102 | padding:5px; |
---|
103 | -moz-border-radius:5px; |
---|
104 | -webkit-border-radius:5px; |
---|
105 | border-radius:5px; |
---|
106 | } |
---|
107 | |
---|
108 | input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover { |
---|
109 | background-color:#ff7700; |
---|
110 | color:white; |
---|
111 | } |
---|
112 | |
---|
113 | input[type="text"], input[type="password"], select { |
---|
114 | background-color:#ddd; |
---|
115 | border:2px solid #ccc; |
---|
116 | -moz-border-radius:5px; |
---|
117 | -webkit-border-radius:5px; |
---|
118 | border-radius:5px; |
---|
119 | padding:2px; |
---|
120 | } |
---|
121 | |
---|
122 | input[type="text"]:focus, input[type="password"]:focus, select:focus { |
---|
123 | background-color:#fff; |
---|
124 | border:2px solid #ff7700; |
---|
125 | } |
---|
126 | |
---|
127 | .sql_content, .infos a { |
---|
128 | color: #ff3363; |
---|
129 | } |
---|
130 | |
---|
131 | .errors { |
---|
132 | padding-bottom:5px; |
---|
133 | } |
---|
134 | |
---|
135 | </style> |
---|
136 | {/literal} |
---|
137 | |
---|
138 | {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} |
---|
139 | |
---|
140 | {footer_script require='jquery.cluetip'} |
---|
141 | jQuery().ready(function(){ldelim} |
---|
142 | jQuery('.cluetip').cluetip({ldelim} |
---|
143 | width: 300, |
---|
144 | splitTitle: '|', |
---|
145 | positionBy: 'bottomTop' |
---|
146 | }); |
---|
147 | }); |
---|
148 | {/footer_script} |
---|
149 | |
---|
150 | |
---|
151 | <title>Piwigo {$RELEASE} - {'Installation'|@translate}</title> |
---|
152 | </head> |
---|
153 | |
---|
154 | <body> |
---|
155 | <div id="the_page"> |
---|
156 | <div id="theHeader"></div> |
---|
157 | <div id="content" class="content"> |
---|
158 | |
---|
159 | <h2>{'Version'|@translate} {$RELEASE} - {'Installation'|@translate}</h2> |
---|
160 | |
---|
161 | {if isset($config_creation_failed)} |
---|
162 | <div class="errors"> |
---|
163 | <p style="margin-left:30px;"> |
---|
164 | <strong>{'Creation of config file local/config/database.inc.php failed.'|@translate}</strong> |
---|
165 | </p> |
---|
166 | <ul> |
---|
167 | <li> |
---|
168 | <p>{'You can download the config file and upload it to local/config directory of your installation.'|@translate}</p> |
---|
169 | <p style="text-align:center"> |
---|
170 | <input type="button" value="{'Download the config file'|@translate}" onClick="window.open('{$config_url}');"> |
---|
171 | </p> |
---|
172 | </li> |
---|
173 | <li> |
---|
174 | <p>{'An alternate solution is to copy the text in the box above and paste it into the file "local/config/database.inc.php" (Warning : database.inc.php must only contain what is in the textarea, no line return or space character)'|@translate}</p> |
---|
175 | <textarea rows="15" cols="70">{$config_file_content}</textarea> |
---|
176 | </li> |
---|
177 | </ul> |
---|
178 | </div> |
---|
179 | {/if} |
---|
180 | |
---|
181 | {if isset($errors)} |
---|
182 | <div class="errors"> |
---|
183 | <ul> |
---|
184 | {foreach from=$errors item=error} |
---|
185 | <li>{$error}</li> |
---|
186 | {/foreach} |
---|
187 | </ul> |
---|
188 | </div> |
---|
189 | {/if} |
---|
190 | |
---|
191 | {if isset($infos)} |
---|
192 | <div class="infos"> |
---|
193 | <ul> |
---|
194 | {foreach from=$infos item=info} |
---|
195 | <li>{$info}</li> |
---|
196 | {/foreach} |
---|
197 | </ul> |
---|
198 | </div> |
---|
199 | {/if} |
---|
200 | |
---|
201 | {if isset($install)} |
---|
202 | <form method="POST" action="{$F_ACTION}" name="install_form"> |
---|
203 | |
---|
204 | <fieldset> |
---|
205 | <legend>{'Basic configuration'|@translate}</legend> |
---|
206 | |
---|
207 | <table class="table2"> |
---|
208 | <tr> |
---|
209 | <td style="width: 30%">{'Default gallery language'|@translate}</td> |
---|
210 | <td> |
---|
211 | <select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;"> |
---|
212 | {html_options options=$language_options selected=$language_selection} |
---|
213 | </select> |
---|
214 | </td> |
---|
215 | </tr> |
---|
216 | </table> |
---|
217 | </fieldset> |
---|
218 | |
---|
219 | <fieldset> |
---|
220 | <legend>{'Database configuration'|@translate}</legend> |
---|
221 | |
---|
222 | <table class="table2"> |
---|
223 | <tr> |
---|
224 | <td style="width: 30%;" class="fieldname">{'Host'|@translate}</td> |
---|
225 | <td><input type="text" name="dbhost" value="{$F_DB_HOST}"></td> |
---|
226 | <td class="fielddesc">{'localhost or other, supplied by your host provider'|@translate}</td> |
---|
227 | </tr> |
---|
228 | <tr> |
---|
229 | <td class="fieldname">{'User'|@translate}</td> |
---|
230 | <td><input type="text" name="dbuser" value="{$F_DB_USER}"></td> |
---|
231 | <td class="fielddesc">{'user login given by your host provider'|@translate}</td> |
---|
232 | </tr> |
---|
233 | <tr> |
---|
234 | <td class="fieldname">{'Password'|@translate}</td> |
---|
235 | <td><input type="password" name="dbpasswd" value=""></td> |
---|
236 | <td class="fielddesc">{'user password given by your host provider'|@translate}</td> |
---|
237 | </tr> |
---|
238 | <tr> |
---|
239 | <td class="fieldname">{'Database name'|@translate}</td> |
---|
240 | <td><input type="text" name="dbname" value="{$F_DB_NAME}"></td> |
---|
241 | <td class="fielddesc">{'also given by your host provider'|@translate}</td> |
---|
242 | </tr> |
---|
243 | <tr> |
---|
244 | <td class="fieldname">{'Database table prefix'|@translate}</td> |
---|
245 | <td><input type="text" name="prefix" value="{$F_DB_PREFIX}"></td> |
---|
246 | <td class="fielddesc">{'database tables names will be prefixed with it (enables you to manage better your tables)'|@translate}</td> |
---|
247 | </tr> |
---|
248 | </table> |
---|
249 | |
---|
250 | </fieldset> |
---|
251 | <fieldset> |
---|
252 | <legend>{'Admin configuration'|@translate}</legend> |
---|
253 | |
---|
254 | <table class="table2"> |
---|
255 | <tr> |
---|
256 | <td style="width: 30%;" class="fieldname">{'Username'|@translate}</td> |
---|
257 | <td><input type="text" name="admin_name" value="{$F_ADMIN}"></td> |
---|
258 | <td class="fielddesc">{'It will be shown to the visitors. It is necessary for website administration'|@translate}</td> |
---|
259 | </tr> |
---|
260 | <tr> |
---|
261 | <td class="fieldname">{'Password'|@translate}</td> |
---|
262 | <td><input type="password" name="admin_pass1" value=""></td> |
---|
263 | <td class="fielddesc">{'Keep it confidential, it enables you to access administration panel'|@translate}</td> |
---|
264 | </tr> |
---|
265 | <tr> |
---|
266 | <td class="fieldname">{'Password [confirm]'|@translate}</td> |
---|
267 | <td><input type="password" name="admin_pass2" value=""></td> |
---|
268 | <td class="fielddesc">{'verification'|@translate}</td> |
---|
269 | </tr> |
---|
270 | <tr> |
---|
271 | <td class="fieldname">{'Email address'|@translate}</td> |
---|
272 | <td><input type="text" name="admin_mail" id="admin_mail" value="{$F_ADMIN_EMAIL}"></td> |
---|
273 | <td class="fielddesc">{'Visitors will be able to contact site administrator with this mail'|@translate}</td> |
---|
274 | </tr> |
---|
275 | <tr> |
---|
276 | <td>{'Options'|@translate}</options> |
---|
277 | <td colspan="2"> |
---|
278 | <label> |
---|
279 | <input type="checkbox" name="newsletter_subscribe"{if $F_NEWSLETTER_SUBSCRIBE} checked="checked"{/if}> |
---|
280 | <span class="cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate:$EMAIL}</span> |
---|
281 | </label> |
---|
282 | <br> |
---|
283 | <label> |
---|
284 | <input type="checkbox" name="send_password_by_mail" checked="checked"> |
---|
285 | {'Send my connection settings by email'|@translate} |
---|
286 | </label> |
---|
287 | </td> |
---|
288 | </tr> |
---|
289 | </table> |
---|
290 | |
---|
291 | </fieldset> |
---|
292 | |
---|
293 | <div style="text-align:center; margin:20px 0 10px 0"> |
---|
294 | <input class="submit" type="submit" name="install" value="{'Start Install'|@translate}"> |
---|
295 | </div> |
---|
296 | </form> |
---|
297 | {else} |
---|
298 | <p> |
---|
299 | <a class="bigButton" href="index.php">{'Visit Gallery'|@translate}</a> |
---|
300 | </p> |
---|
301 | {/if} |
---|
302 | </div> {* content *} |
---|
303 | <div style="text-align: center">{$L_INSTALL_HELP}</div> |
---|
304 | </div> {* the_page *} |
---|
305 | |
---|
306 | <!-- BEGIN get_combined_scripts --> |
---|
307 | {get_combined_scripts load='footer'} |
---|
308 | <!-- END get_combined_scripts --> |
---|
309 | |
---|
310 | </body> |
---|
311 | </html> |
---|