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