| 1 | {* $Id$ *} |
|---|
| 2 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|---|
| 3 | "http://www.w3.org/TR/html4/strict.dtd"> |
|---|
| 4 | <html lang="{$lang_info.code}" dir="{$lang_info.direction}"> |
|---|
| 5 | <head> |
|---|
| 6 | <meta http-equiv="Content-Type" content="text/html; charset={$T_CONTENT_ENCODING}"> |
|---|
| 7 | <meta http-equiv="Content-script-type" content="text/javascript"> |
|---|
| 8 | <meta http-equiv="Content-Style-Type" content="text/css"> |
|---|
| 9 | <link rel="shortcut icon" type="image/x-icon" href="{$ROOT_URL}template-common/favicon.ico"> |
|---|
| 10 | <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/layout.css"> |
|---|
| 11 | <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css"> |
|---|
| 12 | <link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css"> |
|---|
| 13 | {literal} |
|---|
| 14 | <style type="text/css"> |
|---|
| 15 | .content { |
|---|
| 16 | width: 800px; |
|---|
| 17 | margin: auto; |
|---|
| 18 | text-align: center; |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | .table2 { |
|---|
| 22 | width: 100%; |
|---|
| 23 | margin-bottom: 1em !important; |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | TD { |
|---|
| 27 | text-align: left; |
|---|
| 28 | padding: 0.1em 0.5em; |
|---|
| 29 | height: 2.5em; |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | .sql_content, .infos a { |
|---|
| 33 | color: #ff3363; |
|---|
| 34 | } |
|---|
| 35 | </style> |
|---|
| 36 | {/literal} |
|---|
| 37 | <title>Piwigo {$RELEASE} - {'Installation'|@translate}</title> |
|---|
| 38 | </head> |
|---|
| 39 | |
|---|
| 40 | <body> |
|---|
| 41 | <div id="headbranch"></div> {* Dummy block for double background management *} |
|---|
| 42 | <div id="theHeader"></div> |
|---|
| 43 | <div id="content" class="content"> |
|---|
| 44 | |
|---|
| 45 | <h2>Piwigo {$RELEASE} - {'Installation'|@translate}</h2> |
|---|
| 46 | |
|---|
| 47 | {if isset($errors)} |
|---|
| 48 | <div class="errors"> |
|---|
| 49 | <ul> |
|---|
| 50 | {foreach from=$errors item=error} |
|---|
| 51 | <li>{$error}</li> |
|---|
| 52 | {/foreach} |
|---|
| 53 | </ul> |
|---|
| 54 | </div> |
|---|
| 55 | {/if} |
|---|
| 56 | |
|---|
| 57 | {if isset($infos)} |
|---|
| 58 | <div class="infos"> |
|---|
| 59 | <ul> |
|---|
| 60 | {foreach from=$infos item=info} |
|---|
| 61 | <li>{$info}</li> |
|---|
| 62 | {/foreach} |
|---|
| 63 | </ul> |
|---|
| 64 | </div> |
|---|
| 65 | {/if} |
|---|
| 66 | |
|---|
| 67 | {if isset($install)} |
|---|
| 68 | <form method="POST" action="{$F_ACTION}" name="install_form"> |
|---|
| 69 | |
|---|
| 70 | <table class="table2"> |
|---|
| 71 | <tr class="throw"> |
|---|
| 72 | <th colspan="2">{'Initial_config'|@translate}</th> |
|---|
| 73 | </tr> |
|---|
| 74 | <tr> |
|---|
| 75 | <td style="width: 30%">{'Default_lang'|@translate}</td> |
|---|
| 76 | <td> |
|---|
| 77 | <select name="language" onchange="document.location = 'install.php?language='+this.options[this.selectedIndex].value;"> |
|---|
| 78 | {html_options options=$language_options selected=$language_selection} |
|---|
| 79 | </select> |
|---|
| 80 | </td> |
|---|
| 81 | </tr> |
|---|
| 82 | </table> |
|---|
| 83 | <table class="table2"> |
|---|
| 84 | <tr class="throw"> |
|---|
| 85 | <th colspan="3">{'step1_title'|@translate}</th> |
|---|
| 86 | </tr> |
|---|
| 87 | <tr> |
|---|
| 88 | <td style="width: 30%;">{'step1_host'|@translate}</td> |
|---|
| 89 | <td align=center><input type="text" name="dbhost" value="{$F_DB_HOST}" /></td> |
|---|
| 90 | <td>{'step1_host_info'|@translate}</td> |
|---|
| 91 | </tr> |
|---|
| 92 | <tr> |
|---|
| 93 | <td>{'step1_user'|@translate}</td> |
|---|
| 94 | <td align=center><input type="text" name="dbuser" value="{$F_DB_USER}" /></td> |
|---|
| 95 | <td>{'step1_user_info'|@translate}</td> |
|---|
| 96 | </tr> |
|---|
| 97 | <tr> |
|---|
| 98 | <td>{'step1_pass'|@translate}</td> |
|---|
| 99 | <td align=center><input type="password" name="dbpasswd" value="" /></td> |
|---|
| 100 | <td>{'step1_pass_info'|@translate}</td> |
|---|
| 101 | </tr> |
|---|
| 102 | <tr> |
|---|
| 103 | <td>{'step1_database'|@translate}</td> |
|---|
| 104 | <td align=center><input type="text" name="dbname" value="{$F_DB_NAME}" /></td> |
|---|
| 105 | <td>{'step1_database_info'|@translate}</td> |
|---|
| 106 | </tr> |
|---|
| 107 | <tr> |
|---|
| 108 | <td>{'step1_prefix'|@translate}</td> |
|---|
| 109 | <td align=center><input type="text" name="prefix" value="{$F_DB_PREFIX}" /></td> |
|---|
| 110 | <td>{'step1_prefix_info'|@translate}</td> |
|---|
| 111 | </tr> |
|---|
| 112 | </table> |
|---|
| 113 | |
|---|
| 114 | <table class="table2"> |
|---|
| 115 | <tr class="throw"> |
|---|
| 116 | <th colspan="3">{'step2_title'|@translate}</th> |
|---|
| 117 | </tr> |
|---|
| 118 | <tr> |
|---|
| 119 | <td style="width: 30%;">{'install_webmaster'|@translate}</td> |
|---|
| 120 | <td align="center"><input type="text" name="admin_name" value="{$F_ADMIN}" /></td> |
|---|
| 121 | <td>{'install_webmaster_info'|@translate}</td> |
|---|
| 122 | </tr> |
|---|
| 123 | <tr> |
|---|
| 124 | <td>{'step2_pwd'|@translate}</td> |
|---|
| 125 | <td align="center"><input type="password" name="admin_pass1" value="" /></td> |
|---|
| 126 | <td>{'step2_pwd_info'|@translate}</td> |
|---|
| 127 | </tr> |
|---|
| 128 | <tr> |
|---|
| 129 | <td>{'step2_pwd_conf'|@translate}</td> |
|---|
| 130 | <td align="center"><input type="password" name="admin_pass2" value="" /></td> |
|---|
| 131 | <td>{'step2_pwd_conf_info'|@translate}</td> |
|---|
| 132 | </tr> |
|---|
| 133 | <tr> |
|---|
| 134 | <td>{'conf_mail_webmaster'|@translate}</td> |
|---|
| 135 | <td align="center"><input type="text" name="admin_mail" value="{$F_ADMIN_EMAIL}" /></td> |
|---|
| 136 | <td>{'conf_mail_webmaster_info'|@translate}</td> |
|---|
| 137 | </tr> |
|---|
| 138 | </table> |
|---|
| 139 | |
|---|
| 140 | <table> |
|---|
| 141 | <tr> |
|---|
| 142 | <td style="text-align: center;"> |
|---|
| 143 | <input class="submit" type="submit" name="install" value="{'Start_Install'|@translate}" /> |
|---|
| 144 | </td> |
|---|
| 145 | </tr> |
|---|
| 146 | </table> |
|---|
| 147 | </form> |
|---|
| 148 | {else} |
|---|
| 149 | <p> |
|---|
| 150 | <br /> |
|---|
| 151 | <input type="button" name="index" value="{'home'|@translate}" onClick="document.location = 'index.php';"/> |
|---|
| 152 | <input type="button" name="identification" value="{'Identification'|@translate}" onClick="document.location = 'identification.php';"/> |
|---|
| 153 | </p> |
|---|
| 154 | {/if} |
|---|
| 155 | </div> {* content *} |
|---|
| 156 | <div style="text-align: center">{$L_INSTALL_HELP}</div> |
|---|
| 157 | </body> |
|---|
| 158 | </html> |
|---|