4 * Copyright (c) 2000-2009 John Willinsky
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9 * $Id: install.tpl,v 1.6 2009/08/18 23:44:09 asmecher Exp $
12 {include file="common/header.tpl"}
15 <script type="text/javascript">
18 // Ensure that the form submit button cannot be double-clicked
20 if (document.install.installing.value != 1) {
21 document.install.installing.value = 1;
22 document.install.submit();
30 {if is_writeable('config.inc.php')}{translate|assign:"writable_config" key="installer.checkYes"}{else}{translate|assign:"writable_config" key="installer.checkNo"}{/if}
31 {if is_writeable('cache')}{translate|assign:"writable_cache" key="installer.checkYes"}{else}{translate|assign:"writable_cache" key="installer.checkNo"}{/if}
32 {if is_writeable('public')}{translate|assign:"writable_public" key="installer.checkYes"}{else}{translate|assign:"writable_public" key="installer.checkNo"}{/if}
33 {if is_writeable('cache/_db')}{translate|assign:"writable_db_cache" key="installer.checkYes"}{else}{translate|assign:"writable_db_cache" key="installer.checkNo"}{/if}
34 {if is_writeable('cache/t_cache')}{translate|assign:"writable_templates_cache" key="installer.checkYes"}{else}{translate|assign:"writable_templates_cache" key="installer.checkNo"}{/if}
35 {if is_writeable('cache/t_compile')}{translate|assign:"writable_templates_compile" key="installer.checkYes"}{else}{translate|assign:"writable_templates_compile" key="installer.checkNo"}{/if}
37 {if !$phpIsSupportedVersion}
38 {translate|assign:"wrongPhpText" key="installer.installationWrongPhp"}
41 {url|assign:"upgradeUrl" page="install" op="upgrade"}
42 {translate key="installer.installationInstructions" version=$version->getVersionString() upgradeUrl=$upgradeUrl baseUrl=$baseUrl writable_config=$writable_config writable_db_cache=$writable_db_cache writable_cache=$writable_cache writable_public=$writable_public writable_templates_cache=$writable_templates_cache writable_templates_compile=$writable_templates_compile phpRequiredVersion=$phpRequiredVersion wrongPhpText=$wrongPhpText phpVersion=$phpVersion}
44 <div class="separator"></div>
46 <form method="post" name="install" action="{url op="install"}">
47 <input type="hidden" name="installing" value="0" />
48 {include file="common/formErrors.tpl"}
52 <span class="formError">{translate key="installer.installErrorsOccurred"}:</span>
53 <ul class="formErrorList">
54 <li>{if $dbErrorMsg}{translate key="common.error.databaseError" error=$dbErrorMsg}{else}{translate key=$errorMsg}{/if}</li>
59 <div id="localeSettings">
60 <h3>{translate key="installer.localeSettings"}</h3>
62 <p>{translate key="installer.localeSettingsInstructions" supportsMBString=$supportsMBString}</p>
64 <table width="100%" class="data">
66 <td width="20%" class="label">{fieldLabel name="locale" key="locale.primary"}</td>
67 <td width="80%" class="value">
68 <select name="locale" id="locale" size="1" class="selectMenu">
69 {html_options options=$localeOptions selected=$locale}
72 <span class="instruct">{translate key="installer.localeInstructions"}</span>
76 <td class="label">{fieldLabel suppressId="true" name="additionalLocales" key="installer.additionalLocales"}</td>
78 {foreach from=$localeOptions key=localeKey item=localeName}
79 <input type="checkbox" name="additionalLocales[]" id="additionalLocales-{$localeKey|escape}" value="{$localeKey|escape}"{if in_array($localeKey, $additionalLocales)} checked="checked"{/if} /> <label for="additionalLocales-{$localeKey|escape}">{$localeName|escape} ({$localeKey|escape})</label>
80 {if !$localesComplete[$localeKey]}
81 <span class="formError">*</span>
82 {assign var=incompleteLocaleFound value=1}
85 <span class="instruct">{translate key="installer.additionalLocalesInstructions"}</span>
86 {if $incompleteLocaleFound}
88 <span class="formError">*</span> {translate key="installer.locale.maybeIncomplete"}
89 {/if}{* $incompleteLocaleFound *}
93 <td class="label">{fieldLabel name="clientCharset" key="installer.clientCharset"}</td>
95 <select name="clientCharset" id="clientCharset" size="1" class="selectMenu">
96 {html_options options=$clientCharsetOptions selected=$clientCharset}
99 <span class="instruct">{translate key="installer.clientCharsetInstructions"}</span>
103 <td class="label">{fieldLabel name="connectionCharset" key="installer.connectionCharset"}</td>
105 <select name="connectionCharset" id="connectionCharset" size="1" class="selectMenu">
106 {html_options options=$connectionCharsetOptions selected=$connectionCharset}
109 <span class="instruct">{translate key="installer.connectionCharsetInstructions"}</span>
113 <td class="label">{fieldLabel name="databaseCharset" key="installer.databaseCharset"}</td>
115 <select name="databaseCharset" id="databaseCharset" size="1" class="selectMenu">
116 {html_options options=$databaseCharsetOptions selected=$databaseCharset}
119 <span class="instruct">{translate key="installer.databaseCharsetInstructions"}</span>
125 <div class="separator"></div>
127 {if !$skipFilesDirSection}
128 <div id="fileSettings">
129 <h3>{translate key="installer.fileSettings"}</h3>
131 <table width="100%" class="data">
133 <td width="20%" class="label">{fieldLabel name="filesDir" key="installer.filesDir"}</td>
134 <td width="80%" class="value">
135 <input type="text" name="filesDir" id="filesDir" value="{$filesDir|escape}" size="60" maxlength="255" class="textField" />
137 <span class="instruct">{translate key="installer.filesDirInstructions"}</span>
142 <td class="value"><input type="checkbox" name="skipFilesDir" id="skipFilesDir" value="1"{if $skipFilesDir} checked="checked"{/if} /> <label for="skipFilesDir">{translate key="installer.skipFilesDir"}</label></td>
146 <div class="separator"></div>
148 {/if}{* !$skipFilesDirSection *}
151 <h3>{translate key="installer.securitySettings"}</h3>
153 <table width="100%" class="data">
155 <td width="20%" class="label">{fieldLabel name="encryption" key="installer.encryption"}</td>
156 <td width="80%" class="value">
157 <select name="encryption" id="encryption" size="1" class="selectMenu">
158 {html_options options=$encryptionOptions selected=$encryption}
161 <span class="instruct">{translate key="installer.encryptionInstructions"}</span>
167 <div class="separator"></div>
169 <div id="administratorAccount">
170 <h3>{translate key="installer.administratorAccount"}</h3>
172 <p>{translate key="installer.administratorAccountInstructions"}</p>
174 <table width="100%" class="data">
176 <td width="20%" class="label">{fieldLabel name="adminUsername" key="user.username"}</td>
177 <td width="80%" class="value"><input type="text" name="adminUsername" id="adminUsername" value="{$adminUsername|escape}" size="20" maxlength="32" class="textField" /></td>
180 <td class="label">{fieldLabel name="adminPassword" key="user.password"}</td>
181 <td class="value"><input type="password" name="adminPassword" id="adminPassword" value="{$adminPassword|escape}" size="20" maxlength="32" class="textField" /></td>
184 <td class="label">{fieldLabel name="adminPassword2" key="user.register.repeatPassword"}</td>
185 <td class="value"><input type="password" name="adminPassword2" id="adminPassword2" value="{$adminPassword2|escape}" size="20" maxlength="32" class="textField" /></td>
188 <td width="20%" class="label">{fieldLabel name="adminEmail" key="user.email"}</td>
189 <td width="80%" class="value"><input type="text" name="adminEmail" id="adminEmail" value="{$adminEmail|escape}" size="30" maxlength="90" class="textField" /></td>
194 <div class="separator"></div>
196 <div id="databaseSettings">
197 <h3>{translate key="installer.databaseSettings"}</h3>
199 <p>{translate key="installer.databaseSettingsInstructions"}</p>
201 <table width="100%" class="data">
203 <td width="20%" class="label">{fieldLabel name="databaseDriver" key="installer.databaseDriver"}</td>
204 <td width="80%" class="value">
205 <select name="databaseDriver" id="databaseDriver" size="1" class="selectMenu">
206 {html_options options=$databaseDriverOptions selected=$databaseDriver}
209 <span class="instruct">{translate key="installer.databaseDriverInstructions"}</span>
213 <td class="label">{fieldLabel name="databaseHost" key="installer.databaseHost"}</td>
215 <input type="text" name="databaseHost" id="databaseHost" value="{$databaseHost|escape}" size="30" maxlength="60" class="textField" />
217 <span class="instruct">{translate key="installer.databaseHostInstructions"}</span>
221 <td class="label">{fieldLabel name="databaseUsername" key="installer.databaseUsername"}</td>
222 <td class="value"><input type="text" name="databaseUsername" id="databaseUsername" value="{$databaseUsername|escape}" size="30" maxlength="60" class="textField" /></td>
225 <td class="label">{fieldLabel name="databasePassword" key="installer.databasePassword"}</td>
226 <td class="value"><input type="text" name="databasePassword" id="databasePassword" value="{$databasePassword|escape}" size="30" maxlength="60" class="textField" /></td>
229 <td class="label">{fieldLabel name="databaseName" key="installer.databaseName"}</td>
230 <td class="value"><input type="text" name="databaseName" id="databaseName" value="{$databaseName|escape}" size="30" maxlength="60" class="textField" /></td>
235 <input type="checkbox" name="createDatabase" id="createDatabase" value="1"{if $createDatabase} checked="checked"{/if} /> <label for="createDatabase">{translate key="installer.createDatabase"}</label>
237 <span class="instruct">{translate key="installer.createDatabaseInstructions"}</span>
243 <div class="separator"></div>
245 {if !$skipMiscSettings}
246 <div id="miscSettings">
247 <h3>{translate key="installer.miscSettings"}</h3>
249 <table width="100%" class="data">
251 <td width="20%" class="label">{fieldLabel name="oaiRepositoryId" key="installer.oaiRepositoryId"}</td>
252 <td width="80%" class="value">
253 <input type="text" name="oaiRepositoryId" id="oaiRepositoryId" value="{$oaiRepositoryId|escape}" size="30" maxlength="60" class="textField" />
255 <span class="instruct">{translate key="installer.oaiRepositoryIdInstructions"}</span>
260 <div class="separator"></div>
262 {/if}{* !$skipMiscSettings *}
264 <p><input name="install" type="button" id="install" value="{translate key="installer.installApplication"}" class="button defaultButton" onclick="doSubmit()" /> <input type="submit" name="manualInstall" value="{translate key="installer.manualInstall"}" class="button" /></p>
268 {include file="common/footer.tpl"}