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={$T_CONTENT_ENCODING}"> |
---|
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 | {foreach from=$themes item=theme} |
---|
11 | {if isset($theme.local_head)}{include file=$theme.local_head}{/if} |
---|
12 | <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/{$theme.name}/theme.css"> |
---|
13 | {/foreach} |
---|
14 | |
---|
15 | <script type="text/javascript" src="themes/default/js/jquery.packed.js"></script> |
---|
16 | {literal} |
---|
17 | <script type="text/javascript"> |
---|
18 | $(function() { |
---|
19 | $option_selected = $('#dblayer option:selected').attr('value'); |
---|
20 | if ($option_selected=='sqlite' || $option_selected=='pdo-sqlite') { |
---|
21 | $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide(); |
---|
22 | } |
---|
23 | $('#dblayer').change(function() { |
---|
24 | $db = this; |
---|
25 | if ($db.value=='sqlite' || $db.value=='pdo-sqlite') { |
---|
26 | $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide(); |
---|
27 | } else { |
---|
28 | $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().show(); |
---|
29 | } |
---|
30 | }); |
---|
31 | }); |
---|
32 | </script> |
---|
33 | |
---|
34 | <style type="text/css"> |
---|
35 | .content { |
---|
36 | width: 800px; |
---|
37 | margin: auto; |
---|
38 | text-align: center; |
---|
39 | } |
---|
40 | |
---|
41 | .table2 { |
---|
42 | width: 100%; |
---|
43 | margin-bottom: 1em !important; |
---|
44 | } |
---|
45 | |
---|
46 | TD { |
---|
47 | text-align: left; |
---|
48 | padding: 0.1em 0.5em; |
---|
49 | height: 2.5em; |
---|
50 | } |
---|
51 | |
---|
52 | .sql_content, .infos a { |
---|
53 | color: #ff3363; |
---|
54 | } |
---|
55 | </style> |
---|
56 | {/literal} |
---|
57 | <title>Piwigo {$RELEASE} - {'Installation'|@translate}</title> |
---|
58 | </head> |
---|
59 | |
---|
60 | <body> |
---|
61 | <div id="headbranch"></div> {* Dummy block for double background management *} |
---|
62 | <div id="the_page"> |
---|
63 | <div id="theHeader"></div> |
---|
64 | <div id="content" class="content"> |
---|
65 | |
---|
66 | <h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2> |
---|
67 | |
---|
68 | {if isset($errors)} |
---|
69 | <div class="errors"> |
---|
70 | <ul> |
---|
71 | {foreach from=$errors item=error} |
---|
72 | <li>{$error}</li> |
---|
73 | {/foreach} |
---|
74 | </ul> |
---|
75 | </div> |
---|
76 | {/if} |
---|
77 | |
---|
78 | {if isset($infos)} |
---|
79 | <div class="infos"> |
---|
80 | <ul> |
---|
81 | {foreach from=$infos item=info} |
---|
82 | <li>{$info}</li> |
---|
83 | {/foreach} |
---|
84 | </ul> |
---|
85 | </div> |
---|
86 | {/if} |
---|
87 | |
---|
88 | {if isset($install)} |
---|
89 | <form method="POST" action="{$F_ACTION}" name="install_form"> |
---|
90 | |
---|
91 | <table class="table2"> |
---|
92 | <tr class="throw"> |
---|
93 | <th colspan="2">{'Basic configuration'|@translate}</th> |
---|
94 | </tr> |
---|
95 | <tr> |
---|
96 | <td style="width: 30%">{'Default gallery language'|@translate}</td> |
---|
97 | <td> |
---|
98 | <select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;"> |
---|
99 | {html_options options=$language_options selected=$language_selection} |
---|
100 | </select> |
---|
101 | </td> |
---|
102 | </tr> |
---|
103 | </table> |
---|
104 | <table class="table2"> |
---|
105 | <tr class="throw"> |
---|
106 | <th colspan="3">{'Database configuration'|@translate}</th> |
---|
107 | </tr> |
---|
108 | {if count($F_DB_ENGINES)>1} |
---|
109 | <tr> |
---|
110 | <td style="width: 30%;">{'Database type'|@translate}</td> |
---|
111 | <td> |
---|
112 | <select name="dblayer" id="dblayer"> |
---|
113 | {foreach from=$F_DB_ENGINES key=k item=v} |
---|
114 | <option value="{$k}" |
---|
115 | {if $k==$F_DB_LAYER or $v.selected} selected="selected"{/if} |
---|
116 | {if $v.available!=1} disabled="disabled"{/if} |
---|
117 | >{$v.label}</option> |
---|
118 | {/foreach} |
---|
119 | </select> |
---|
120 | </td> |
---|
121 | <td>{'The type of database your piwigo data will be store in'|@translate}</td> |
---|
122 | {else} |
---|
123 | <td colspan="3"> |
---|
124 | <input type="hidden" name="dbengine" value="{$F_DB_LAYER}"> |
---|
125 | </td> |
---|
126 | {/if} |
---|
127 | </tr> |
---|
128 | <tr> |
---|
129 | <td style="width: 30%;">{'Host'|@translate}</td> |
---|
130 | <td align=center><input type="text" name="dbhost" value="{$F_DB_HOST}"></td> |
---|
131 | <td>{'localhost, sql.multimania.com, toto.freesurf.fr'|@translate}</td> |
---|
132 | </tr> |
---|
133 | <tr> |
---|
134 | <td>{'User'|@translate}</td> |
---|
135 | <td align=center><input type="text" name="dbuser" value="{$F_DB_USER}"></td> |
---|
136 | <td>{'user login given by your host provider'|@translate}</td> |
---|
137 | </tr> |
---|
138 | <tr> |
---|
139 | <td>{'Password'|@translate}</td> |
---|
140 | <td align=center><input type="password" name="dbpasswd" value=""></td> |
---|
141 | <td>{'user password given by your host provider'|@translate}</td> |
---|
142 | </tr> |
---|
143 | <tr> |
---|
144 | <td>{'Database name'|@translate}</td> |
---|
145 | <td align=center><input type="text" name="dbname" value="{$F_DB_NAME}"></td> |
---|
146 | <td>{'also given by your host provider'|@translate}</td> |
---|
147 | </tr> |
---|
148 | <tr> |
---|
149 | <td>{'Database table prefix'|@translate}</td> |
---|
150 | <td align=center><input type="text" name="prefix" value="{$F_DB_PREFIX}"></td> |
---|
151 | <td>{'database tables names will be prefixed with it (enables you to manage better your tables)'|@translate}</td> |
---|
152 | </tr> |
---|
153 | </table> |
---|
154 | |
---|
155 | <table class="table2"> |
---|
156 | <tr class="throw"> |
---|
157 | <th colspan="3">{'Admin configuration'|@translate}</th> |
---|
158 | </tr> |
---|
159 | <tr> |
---|
160 | <td style="width: 30%;">{'Webmaster login'|@translate}</td> |
---|
161 | <td align="center"><input type="text" name="admin_name" value="{$F_ADMIN}"></td> |
---|
162 | <td>{'It will be shown to the visitors. It is necessary for website administration'|@translate}</td> |
---|
163 | </tr> |
---|
164 | <tr> |
---|
165 | <td>{'Webmaster password'|@translate}</td> |
---|
166 | <td align="center"><input type="password" name="admin_pass1" value=""></td> |
---|
167 | <td>{'Keep it confidential, it enables you to access administration panel'|@translate}</td> |
---|
168 | </tr> |
---|
169 | <tr> |
---|
170 | <td>{'Password [confirm]'|@translate}</td> |
---|
171 | <td align="center"><input type="password" name="admin_pass2" value=""></td> |
---|
172 | <td>{'verification'|@translate}</td> |
---|
173 | </tr> |
---|
174 | <tr> |
---|
175 | <td>{'Webmaster mail address'|@translate}</td> |
---|
176 | <td align="center"><input type="text" name="admin_mail" value="{$F_ADMIN_EMAIL}"></td> |
---|
177 | <td>{'Visitors will be able to contact site administrator with this mail'|@translate}</td> |
---|
178 | </tr> |
---|
179 | </table> |
---|
180 | |
---|
181 | <table> |
---|
182 | <tr> |
---|
183 | <td style="text-align: center;"> |
---|
184 | <input class="submit" type="submit" name="install" value="{'Start Install'|@translate}"> |
---|
185 | </td> |
---|
186 | </tr> |
---|
187 | </table> |
---|
188 | </form> |
---|
189 | {else} |
---|
190 | <p> |
---|
191 | <input type="button" name="Home" value="{'Home'|@translate}" onClick="window.open('index.php');"> |
---|
192 | <input type="button" name="Administration" value="{'Administration'|@translate}" onClick="window.open('admin.php');"> |
---|
193 | </p> |
---|
194 | |
---|
195 | {if !isset($migration)} |
---|
196 | <div class="infos"> |
---|
197 | <ul> |
---|
198 | <li>{'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}</li> |
---|
199 | </ul> |
---|
200 | </div> |
---|
201 | |
---|
202 | <p> |
---|
203 | <input type="button" name="subscribe" value="{'Subscribe %s'|@translate|@sprintf:$F_ADMIN_EMAIL}" onClick="window.open('{$SUBSCRIBE_BASE_URL}{$F_ADMIN_EMAIL}');"> |
---|
204 | </p> |
---|
205 | {/if} |
---|
206 | {/if} |
---|
207 | </div> {* content *} |
---|
208 | <div style="text-align: center">{$L_INSTALL_HELP}</div> |
---|
209 | </div> {* the_page *} |
---|
210 | </body> |
---|
211 | </html> |
---|