Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/setup/templates/database.tpl
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 09:05:48 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2020-02-01 09:05:48 +0100
commit6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch)
tree350feb504587d932e02837a1442b059759927646 /setup/templates/database.tpl
initial checkin
Diffstat (limited to 'setup/templates/database.tpl')
-rw-r--r--setup/templates/database.tpl47
1 files changed, 47 insertions, 0 deletions
diff --git a/setup/templates/database.tpl b/setup/templates/database.tpl
new file mode 100644
index 0000000..f5e29a8
--- /dev/null
+++ b/setup/templates/database.tpl
@@ -0,0 +1,47 @@
+<div>
+<form action="index.php" method="post" name="database_form">
+ <?php echo $message; ?>
+
+ <h1><?= eL('databasesetup') ?></h1>
+ <h2><?= eL('databaseconfiguration') ?><?php echo Filters::noXSS($version); ?></h2>
+ <div class="installBlock">
+ <table class="formBlock" style="width:auto">
+ <tr>
+ <td><?= eL('databasehostname') ?></td>
+ <td align="left"><input required="required" type="text" name="db_hostname" value="<?php echo Filters::noXSS($db_hostname); ?>" /></td>
+ <td><?= L('databasehostnamehint') ?></td>
+ </tr>
+ <tr>
+ <td><?= eL('databasetype') ?></td>
+ <td><select name="db_type">
+ <?php echo tpl_options(array_combine(array_map(create_function('$x', 'return $x[2];'), $databases), array_keys($databases)), $db_type); ?>
+ </select>
+ </td>
+ <td><?= L('databasetypehint') ?></td>
+ </tr>
+ <tr>
+ <td><?= eL('databasename') ?></td>
+ <td align="left"><input required="required" type="text" name="db_name" value="<?php echo Filters::noXSS($db_name); ?>" /></td>
+ <td><?= L('databasenamehint') ?></td>
+ </tr>
+ <tr>
+ <td><?= eL('databaseusername') ?></td>
+ <td align="left"><input required="required" type="text" name="db_username" value="<?php echo Filters::noXSS($db_username); ?>" /></td>
+ <td rowspan="2"><?= L('databaseusernamehint') ?></td>
+ </tr>
+ <tr>
+ <td><?= eL('databasepassword') ?></td>
+ <td align="left"><input type="password" name="db_password" value="<?php echo Filters::noXSS($db_password); ?>" /></td>
+ </tr>
+ <tr>
+ <td><?= eL('tableprefix') ?></td>
+ <td align="left"><input type="text" maxlength="10" name="db_prefix" value="<?php echo Filters::noXSS($db_prefix); ?>" /></td>
+ <td><?= L('tableprefixhint') ?></td>
+ </tr>
+ </table>
+
+ <input type="hidden" name="action" value="administration" />
+ <button class="button" type="submit" name="next" value="next"><?= eL('proceedtoadmin') ?></button>
+ </div>
+</form>
+</div>