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