[996] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
---|
| 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
---|
[2819] | 3 | <html lang="{$lang_info.code}" dir="{$lang_info.direction}"> |
---|
[859] | 4 | <head> |
---|
[2248] | 5 | <meta http-equiv="Content-Type" content="text/html; charset={$T_CONTENT_ENCODING}"> |
---|
[996] | 6 | <meta http-equiv="Content-script-type" content="text/javascript"> |
---|
| 7 | <meta http-equiv="Content-Style-Type" content="text/css"> |
---|
[5123] | 8 | <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}{$themeconf.icon_dir}/favicon.ico"> |
---|
| 9 | |
---|
[8310] | 10 | {get_combined_css} |
---|
[5123] | 11 | {foreach from=$themes item=theme} |
---|
[8310] | 12 | {if $theme.load_css} |
---|
| 13 | {combine_css path="admin/themes/`$theme.id`/theme.css" order=-10} |
---|
| 14 | {/if} |
---|
[5123] | 15 | {/foreach} |
---|
| 16 | |
---|
[9373] | 17 | <!--[if IE 7]> |
---|
| 18 | <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/themes/default/fix-ie7.css"> |
---|
| 19 | <![endif]--> |
---|
| 20 | |
---|
[8311] | 21 | <!-- BEGIN get_combined_scripts --> |
---|
| 22 | {get_combined_scripts load='header'} |
---|
| 23 | <!-- END get_combined_scripts --> |
---|
| 24 | |
---|
| 25 | {combine_script id='jquery' path='themes/default/js/jquery.min.js'} |
---|
[2248] | 26 | {literal} |
---|
[5123] | 27 | <script type="text/javascript"> |
---|
| 28 | $(function() { |
---|
| 29 | $option_selected = $('#dblayer option:selected').attr('value'); |
---|
| 30 | if ($option_selected=='sqlite' || $option_selected=='pdo-sqlite') { |
---|
| 31 | $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide(); |
---|
| 32 | } |
---|
[6128] | 33 | if ($option_selected=='mysql') { |
---|
| 34 | $('#experimentalDbEngines').hide(); |
---|
| 35 | } |
---|
| 36 | |
---|
[5123] | 37 | $('#dblayer').change(function() { |
---|
| 38 | $db = this; |
---|
| 39 | if ($db.value=='sqlite' || $db.value=='pdo-sqlite') { |
---|
| 40 | $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().hide(); |
---|
| 41 | } else { |
---|
| 42 | $('input[name=dbhost],input[name=dbuser],input[name=dbpasswd]').parent().parent().show(); |
---|
| 43 | } |
---|
[6128] | 44 | |
---|
| 45 | if ($db.value=='mysql') { |
---|
| 46 | $('#experimentalDbEngines').hide(); |
---|
| 47 | } |
---|
| 48 | else { |
---|
| 49 | $('#experimentalDbEngines').show(); |
---|
| 50 | } |
---|
[5123] | 51 | }); |
---|
| 52 | }); |
---|
[6128] | 53 | |
---|
| 54 | $(document).ready(function() { |
---|
| 55 | $("a.externalLink").click(function() { |
---|
| 56 | window.open($(this).attr("href")); |
---|
| 57 | return false; |
---|
| 58 | }); |
---|
[8311] | 59 | |
---|
| 60 | $("#admin_mail").keyup(function() { |
---|
| 61 | $(".adminEmail").text($(this).val()); |
---|
| 62 | }); |
---|
[6128] | 63 | }); |
---|
| 64 | |
---|
[5123] | 65 | </script> |
---|
| 66 | |
---|
[859] | 67 | <style type="text/css"> |
---|
[5257] | 68 | body { |
---|
[8310] | 69 | font-size:12px; |
---|
[5257] | 70 | } |
---|
| 71 | |
---|
[2747] | 72 | .content { |
---|
| 73 | width: 800px; |
---|
| 74 | margin: auto; |
---|
| 75 | text-align: center; |
---|
[8310] | 76 | padding:0; |
---|
| 77 | background-color:transparent !important; |
---|
| 78 | border:none; |
---|
[859] | 79 | } |
---|
| 80 | |
---|
[5257] | 81 | #theHeader { |
---|
| 82 | display: block; |
---|
[8310] | 83 | background:url("admin/themes/clear/images/piwigo_logo_big.png") no-repeat scroll center 20px transparent; |
---|
| 84 | height:100px; |
---|
[5257] | 85 | } |
---|
| 86 | |
---|
[8310] | 87 | fieldset { |
---|
| 88 | margin-top:20px; |
---|
| 89 | background-color:#f1f1f1; |
---|
| 90 | } |
---|
| 91 | |
---|
| 92 | legend { |
---|
| 93 | font-weight:bold; |
---|
| 94 | letter-spacing:2px; |
---|
| 95 | } |
---|
| 96 | |
---|
[5257] | 97 | .content h2 { |
---|
| 98 | display:block; |
---|
[8310] | 99 | font-size:20px; |
---|
| 100 | text-align:center; |
---|
| 101 | /* margin-top:5px; */ |
---|
[5257] | 102 | } |
---|
| 103 | |
---|
[6128] | 104 | table.table2 { |
---|
[2747] | 105 | width: 100%; |
---|
[6128] | 106 | border:0; |
---|
[859] | 107 | } |
---|
[1855] | 108 | |
---|
[8310] | 109 | table.table2 td { |
---|
[1855] | 110 | text-align: left; |
---|
[8310] | 111 | padding: 5px 2px; |
---|
[1855] | 112 | } |
---|
| 113 | |
---|
[8310] | 114 | table.table2 td.fieldname { |
---|
| 115 | font-weight:normal; |
---|
| 116 | } |
---|
| 117 | |
---|
| 118 | table.table2 td.fielddesc { |
---|
| 119 | padding-left:10px; |
---|
| 120 | font-style:italic; |
---|
| 121 | } |
---|
| 122 | |
---|
[9008] | 123 | input[type="submit"], input[type="button"], a.bigButton { |
---|
[8310] | 124 | font-size:14px; |
---|
| 125 | font-weight:bold; |
---|
| 126 | letter-spacing:2px; |
---|
[5408] | 127 | border:none; |
---|
[8310] | 128 | background-color:#666666; |
---|
| 129 | color:#fff; |
---|
| 130 | padding:5px; |
---|
| 131 | -moz-border-radius:5px; |
---|
[5408] | 132 | } |
---|
| 133 | |
---|
[9008] | 134 | input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover { |
---|
[8310] | 135 | background-color:#ff7700; |
---|
| 136 | color:white; |
---|
| 137 | } |
---|
| 138 | |
---|
| 139 | input[type="text"], input[type="password"], select { |
---|
| 140 | background-color:#ddd; |
---|
| 141 | border:2px solid #ccc; |
---|
| 142 | -moz-border-radius:5px; |
---|
| 143 | padding:2px; |
---|
| 144 | } |
---|
| 145 | |
---|
| 146 | input[type="text"]:focus, input[type="password"]:focus, select:focus { |
---|
| 147 | background-color:#fff; |
---|
| 148 | border:2px solid #ff7700; |
---|
| 149 | } |
---|
| 150 | |
---|
[2752] | 151 | .sql_content, .infos a { |
---|
[2747] | 152 | color: #ff3363; |
---|
[1855] | 153 | } |
---|
[5571] | 154 | |
---|
[8310] | 155 | .errors { |
---|
| 156 | padding-bottom:5px; |
---|
[5571] | 157 | } |
---|
[6128] | 158 | |
---|
[859] | 159 | </style> |
---|
[2248] | 160 | {/literal} |
---|
[8311] | 161 | |
---|
[9554] | 162 | {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} |
---|
[8311] | 163 | |
---|
| 164 | {footer_script require='jquery.cluetip'} |
---|
| 165 | jQuery().ready(function(){ldelim} |
---|
| 166 | jQuery('.cluetip').cluetip({ldelim} |
---|
| 167 | width: 300, |
---|
| 168 | splitTitle: '|', |
---|
| 169 | positionBy: 'bottomTop' |
---|
| 170 | }); |
---|
| 171 | }); |
---|
| 172 | {/footer_script} |
---|
| 173 | |
---|
| 174 | |
---|
[2747] | 175 | <title>Piwigo {$RELEASE} - {'Installation'|@translate}</title> |
---|
[859] | 176 | </head> |
---|
[2747] | 177 | |
---|
[859] | 178 | <body> |
---|
[3074] | 179 | <div id="the_page"> |
---|
[2747] | 180 | <div id="theHeader"></div> |
---|
| 181 | <div id="content" class="content"> |
---|
[859] | 182 | |
---|
[8310] | 183 | <h2>{'Version'|@translate} {$RELEASE} - {'Installation'|@translate}</h2> |
---|
[2747] | 184 | |
---|
[5571] | 185 | {if isset($config_creation_failed)} |
---|
[8310] | 186 | <div class="errors"> |
---|
[5571] | 187 | <p style="margin-left:30px;"> |
---|
| 188 | <strong>{'Creation of config file local/config/database.inc.php failed.'|@translate}</strong> |
---|
| 189 | </p> |
---|
| 190 | <ul> |
---|
| 191 | <li> |
---|
| 192 | <p>{'You can download the config file and upload it to local/config directory of your installation.'|@translate}</p> |
---|
| 193 | <p style="text-align:center"> |
---|
| 194 | <input type="button" value="{'Download the config file'|@translate}" onClick="window.open('{$config_url}');"> |
---|
| 195 | </p> |
---|
| 196 | </li> |
---|
| 197 | <li> |
---|
| 198 | <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> |
---|
| 199 | <textarea rows="15" cols="70">{$config_file_content}</textarea> |
---|
| 200 | </li> |
---|
| 201 | </ul> |
---|
| 202 | </div> |
---|
| 203 | {/if} |
---|
| 204 | |
---|
[2747] | 205 | {if isset($errors)} |
---|
| 206 | <div class="errors"> |
---|
| 207 | <ul> |
---|
| 208 | {foreach from=$errors item=error} |
---|
| 209 | <li>{$error}</li> |
---|
| 210 | {/foreach} |
---|
| 211 | </ul> |
---|
| 212 | </div> |
---|
[2248] | 213 | {/if} |
---|
| 214 | |
---|
[2747] | 215 | {if isset($infos)} |
---|
| 216 | <div class="infos"> |
---|
| 217 | <ul> |
---|
| 218 | {foreach from=$infos item=info} |
---|
| 219 | <li>{$info}</li> |
---|
| 220 | {/foreach} |
---|
| 221 | </ul> |
---|
| 222 | </div> |
---|
| 223 | {/if} |
---|
| 224 | |
---|
[2248] | 225 | {if isset($install)} |
---|
| 226 | <form method="POST" action="{$F_ACTION}" name="install_form"> |
---|
[2747] | 227 | |
---|
[8310] | 228 | <fieldset> |
---|
| 229 | <legend>{'Basic configuration'|@translate}</legend> |
---|
| 230 | |
---|
[2747] | 231 | <table class="table2"> |
---|
[859] | 232 | <tr> |
---|
[5021] | 233 | <td style="width: 30%">{'Default gallery language'|@translate}</td> |
---|
[2747] | 234 | <td> |
---|
[2248] | 235 | <select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;"> |
---|
| 236 | {html_options options=$language_options selected=$language_selection} |
---|
| 237 | </select> |
---|
[859] | 238 | </td> |
---|
| 239 | </tr> |
---|
[2747] | 240 | </table> |
---|
[8310] | 241 | </fieldset> |
---|
| 242 | |
---|
| 243 | <fieldset> |
---|
| 244 | <legend>{'Database configuration'|@translate}</legend> |
---|
| 245 | |
---|
[2747] | 246 | <table class="table2"> |
---|
[4410] | 247 | {if count($F_DB_ENGINES)>1} |
---|
[859] | 248 | <tr> |
---|
[8310] | 249 | <td style="width: 30%;" class="fieldname">{'Database type'|@translate}</td> |
---|
[4410] | 250 | <td> |
---|
[4985] | 251 | <select name="dblayer" id="dblayer"> |
---|
| 252 | {foreach from=$F_DB_ENGINES key=k item=v} |
---|
| 253 | <option value="{$k}" |
---|
[5220] | 254 | {if $k==$F_DB_LAYER and $v.available} selected="selected"{/if} |
---|
| 255 | {if !$v.available} disabled="disabled"{/if} |
---|
[4985] | 256 | >{$v.label}</option> |
---|
| 257 | {/foreach} |
---|
[4410] | 258 | </select> |
---|
| 259 | </td> |
---|
[8310] | 260 | <td class="fielddesc">{'The type of database your piwigo data will be store in'|@translate}</td> |
---|
[4410] | 261 | {else} |
---|
| 262 | <td colspan="3"> |
---|
| 263 | <input type="hidden" name="dbengine" value="{$F_DB_LAYER}"> |
---|
| 264 | </td> |
---|
| 265 | {/if} |
---|
| 266 | </tr> |
---|
[6128] | 267 | <tr id="experimentalDbEngines"> |
---|
| 268 | <td colspan="3"> |
---|
[8310] | 269 | <div class="warnings"> |
---|
[6128] | 270 | {'SQLite and PostgreSQL are currently in experimental state.'|@translate} |
---|
| 271 | <a href="http://piwigo.org/forum/viewtopic.php?id=15927" class="externalLink">{'Learn more'|@translate}</a> |
---|
[8310] | 272 | </div> |
---|
[6128] | 273 | </td> |
---|
| 274 | </tr> |
---|
[4410] | 275 | <tr> |
---|
[8310] | 276 | <td style="width: 30%;" class="fieldname">{'Host'|@translate}</td> |
---|
| 277 | <td><input type="text" name="dbhost" value="{$F_DB_HOST}"></td> |
---|
| 278 | <td class="fielddesc">{'localhost, sql.multimania.com, toto.freesurf.fr'|@translate}</td> |
---|
[859] | 279 | </tr> |
---|
| 280 | <tr> |
---|
[8310] | 281 | <td class="fieldname">{'User'|@translate}</td> |
---|
| 282 | <td><input type="text" name="dbuser" value="{$F_DB_USER}"></td> |
---|
| 283 | <td class="fielddesc">{'user login given by your host provider'|@translate}</td> |
---|
[859] | 284 | </tr> |
---|
| 285 | <tr> |
---|
[8310] | 286 | <td class="fieldname">{'Password'|@translate}</td> |
---|
| 287 | <td><input type="password" name="dbpasswd" value=""></td> |
---|
| 288 | <td class="fielddesc">{'user password given by your host provider'|@translate}</td> |
---|
[859] | 289 | </tr> |
---|
| 290 | <tr> |
---|
[8310] | 291 | <td class="fieldname">{'Database name'|@translate}</td> |
---|
| 292 | <td><input type="text" name="dbname" value="{$F_DB_NAME}"></td> |
---|
| 293 | <td class="fielddesc">{'also given by your host provider'|@translate}</td> |
---|
[859] | 294 | </tr> |
---|
| 295 | <tr> |
---|
[8310] | 296 | <td class="fieldname">{'Database table prefix'|@translate}</td> |
---|
| 297 | <td><input type="text" name="prefix" value="{$F_DB_PREFIX}"></td> |
---|
| 298 | <td class="fielddesc">{'database tables names will be prefixed with it (enables you to manage better your tables)'|@translate}</td> |
---|
[859] | 299 | </tr> |
---|
[2747] | 300 | </table> |
---|
| 301 | |
---|
[8310] | 302 | </fieldset> |
---|
| 303 | <fieldset> |
---|
| 304 | <legend>{'Admin configuration'|@translate}</legend> |
---|
| 305 | |
---|
[2747] | 306 | <table class="table2"> |
---|
[859] | 307 | <tr> |
---|
[8310] | 308 | <td style="width: 30%;" class="fieldname">{'Webmaster login'|@translate}</td> |
---|
| 309 | <td><input type="text" name="admin_name" value="{$F_ADMIN}"></td> |
---|
| 310 | <td class="fielddesc">{'It will be shown to the visitors. It is necessary for website administration'|@translate}</td> |
---|
[859] | 311 | </tr> |
---|
| 312 | <tr> |
---|
[8310] | 313 | <td class="fieldname">{'Webmaster password'|@translate}</td> |
---|
| 314 | <td><input type="password" name="admin_pass1" value=""></td> |
---|
| 315 | <td class="fielddesc">{'Keep it confidential, it enables you to access administration panel'|@translate}</td> |
---|
[859] | 316 | </tr> |
---|
| 317 | <tr> |
---|
[8310] | 318 | <td class="fieldname">{'Password [confirm]'|@translate}</td> |
---|
| 319 | <td><input type="password" name="admin_pass2" value=""></td> |
---|
| 320 | <td class="fielddesc">{'verification'|@translate}</td> |
---|
[859] | 321 | </tr> |
---|
| 322 | <tr> |
---|
[8310] | 323 | <td class="fieldname">{'Webmaster mail address'|@translate}</td> |
---|
[8311] | 324 | <td><input type="text" name="admin_mail" id="admin_mail" value="{$F_ADMIN_EMAIL}"></td> |
---|
[8310] | 325 | <td class="fielddesc">{'Visitors will be able to contact site administrator with this mail'|@translate}</td> |
---|
[859] | 326 | </tr> |
---|
[8311] | 327 | <tr> |
---|
| 328 | <td>{'Options'|@translate}</options> |
---|
| 329 | <td colspan="2"> |
---|
| 330 | <label> |
---|
| 331 | <input type="checkbox" name="newsletter_subscribe"{if $F_NEWSLETTER_SUBSCRIBE} checked="checked"{/if}> |
---|
| 332 | <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|@sprintf:$EMAIL}</span> |
---|
| 333 | </label> |
---|
| 334 | <br> |
---|
| 335 | </td> |
---|
| 336 | </tr> |
---|
[2747] | 337 | </table> |
---|
| 338 | |
---|
[8310] | 339 | </fieldset> |
---|
| 340 | |
---|
| 341 | <div style="text-align:center; margin:20px 0 10px 0"> |
---|
| 342 | <input class="submit" type="submit" name="install" value="{'Start Install'|@translate}"> |
---|
| 343 | </div> |
---|
[859] | 344 | </form> |
---|
[2902] | 345 | {else} |
---|
| 346 | <p> |
---|
[9008] | 347 | <a class="bigButton" href="index.php">{'Visit Gallery'|@translate}</a> |
---|
[2902] | 348 | </p> |
---|
[2248] | 349 | {/if} |
---|
[2747] | 350 | </div> {* content *} |
---|
| 351 | <div style="text-align: center">{$L_INSTALL_HELP}</div> |
---|
[3074] | 352 | </div> {* the_page *} |
---|
[8311] | 353 | |
---|
| 354 | <!-- BEGIN get_combined_scripts --> |
---|
| 355 | {get_combined_scripts load='footer'} |
---|
| 356 | <!-- END get_combined_scripts --> |
---|
| 357 | |
---|
[2747] | 358 | </body> |
---|
[996] | 359 | </html> |
---|