Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/setup/templates
diff options
context:
space:
mode:
Diffstat (limited to 'setup/templates')
-rw-r--r--setup/templates/administration.tpl79
-rw-r--r--setup/templates/complete_install.tpl50
-rw-r--r--setup/templates/database.tpl47
-rw-r--r--setup/templates/pre_install.tpl124
-rw-r--r--setup/templates/structure.tpl56
-rw-r--r--setup/templates/upgrade.tpl76
6 files changed, 432 insertions, 0 deletions
diff --git a/setup/templates/administration.tpl b/setup/templates/administration.tpl
new file mode 100644
index 0000000..58909b0
--- /dev/null
+++ b/setup/templates/administration.tpl
@@ -0,0 +1,79 @@
+<div>
+<form action="index.php" method="post" name="database_form">
+ <?php echo $message; ?>
+ <h1><?= eL('administrationsetup') ?></h1>
+ <h2><?= eL('setupapplicationvalue') ?></h2>
+ <div class="installBlock">
+<script type="text/javascript">
+function ShowHidePassword(id) {
+ if(document.getElementById(id).type=="text") {
+ document.getElementById(id).type="password";
+ } else {
+ document.getElementById(id).type="text";
+ }
+}
+</script>
+
+ <p><?= L('adminsetuptip1') ?></p>
+ <p><?= L('adminsetuptip2') ?></p>
+ <p><?= L('adminsetuptip3') ?></p>
+
+ <table class="formBlock">
+ <tr>
+ <td style="text-align:right"><?= eL('adminusername') ?></td>
+ <td style="text-align:left"><input class="inputbox" type="text" name="admin_username" value="<?php echo $admin_username; ?>" required="required" size="30" /></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td style="text-align:right"><?= eL('adminrealname') ?></td>
+ <td style="text-align:left"><input class="inputbox" type="text" name="admin_realname" value="<?php echo $admin_realname; ?>" size="30" /></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td style="text-align:right"><?= eL('adminemail') ?></td>
+ <td style="text-align:left"><input class="inputbox" type="text" name="admin_email" value="<?php echo $admin_email; ?>" required="required" size="30" /></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td style="text-align:right"><?= eL('adminxmpp') ?></td>
+ <td style="text-align:left"><input class="inputbox" type="text" name="admin_xmpp" value="<?php echo $admin_xmpp; ?>" size="30" /></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td style="text-align:right"><?= eL('adminpassword') ?></td>
+ <td style="text-align:left"><input class="inputbox" type="password" name="admin_password" id="admin_password" value="<?php echo $admin_password; ?>" required="required" size="30" /></td>
+ <td style="text-align:left"><label for="showpassword"><?= eL('showpassword') ?></label><input type="checkbox" onclick="ShowHidePassword('admin_password')" id="showpassword"></td>
+ </tr>
+ <tr>
+ <td style="text-align:right"><?= eL('syntax') ?></td>
+ <td style="text-align:left">
+ <select name="syntax_plugin">
+ <option value="dokuwiki">Text/Dokuwiki</option>
+ <option value="none">HTML/none</option>
+ <option value="html">HTML/CKEditor</option>
+ </select>
+ </td>
+ <td style="text-align:left"><?= L('syntaxtext') ?></td>
+ </tr>
+ <?php if ($daemonise): ?>
+ <tr>
+ <td style="text-align:right" title="<?= eL('scheduletitle') ?>"><?= eL('enablescheduling') ?></td>
+ <td style="text-align:center"><?php echo $daemonise; ?></td>
+ </tr>
+ <?php endif; ?>
+ </table>
+
+ <input type="hidden" name="db_type" value="<?php echo Filters::noXSS($db_type); ?>" />
+ <input type="hidden" name="db_hostname" value="<?php echo Filters::noXSS($db_hostname); ?>" />
+ <input type="hidden" name="db_username" value="<?php echo Filters::noXSS($db_username); ?>" />
+ <input type="hidden" name="db_password" value="<?php echo Filters::noXSS($db_password); ?>" />
+ <input type="hidden" name="db_name" value="<?php echo Filters::noXSS($db_name); ?>" />
+ <input type="hidden" name="db_prefix" value="<?php echo Filters::noXSS($db_prefix); ?>" />
+
+ <p><?= eL('proceedtofinalsetuptext') ?></p>
+ <input type="hidden" name="action" value="complete" />
+ <button class="button" type="submit" name="next" value="<?= eL('next') ?> >>" ><?= eL('proceedtofinalsetup') ?></button>
+
+ </div>
+</form>
+</div>
diff --git a/setup/templates/complete_install.tpl b/setup/templates/complete_install.tpl
new file mode 100644
index 0000000..2def1e6
--- /dev/null
+++ b/setup/templates/complete_install.tpl
@@ -0,0 +1,50 @@
+<div>
+<form action="<?php echo Filters::noXSS($site_index); ?><?php echo Filters::noXSS($complete_action); ?>" method="post" name="database_form">
+ <h1><?php echo Filters::noXSS(L('installstatus')); ?></h1>
+ <h2><?php echo Filters::noXSS(L('congratulations')); ?></h2>
+ <div class="installBlock">
+ <p class="error"><?php echo Filters::noXSS(L('removesetupdirectory')); ?></p>
+ <?php if(!$config_writeable): ?>
+ <table class="formBlock">
+ <tr>
+ <td>
+ The configuration file is not writeable. You will have to upload the following
+ code manually. Click in the textarea to highlight all of the code. Copy and
+ paste the contents into the flyspray.conf.php file available in the base of
+ <?php echo Filters::noXSS($product_name); ?> installation.
+ </td>
+ </tr>
+ <tr>
+ <td align="center">
+ <textarea class="inputbox" rows="10" cols="38" name="configcode" onclick="javascript:this.form.configcode.focus();this.form.configcode.select();" ><?php echo htmlspecialchars($config_text); ?></textarea>
+ </td>
+ </tr>
+ </table>
+ <h3>flyspray.conf.php NOT writeable</h3>
+ <p>
+ To complete setup, copy and paste the contents of the textarea box into flyspray.conf.php
+ This file resides in the base of your <?php echo Filters::noXSS($product_name); ?> installation.
+ </p>
+ <?php endif; ?>
+ <?php
+ if ($admin_username && $admin_password): ?>
+ <h3>Administration Login Details</h3>
+ <p>
+ <strong>Username: <?php echo Filters::noXSS($admin_username); ?></strong><br />
+ <strong>Password: <?php echo Filters::noXSS($admin_password); ?></strong>
+ </p>
+ <?php endif; ?>
+
+ <?php if ($admin_username && $admin_password): ?>
+ <input type="hidden" name="return_to" value="./" />
+ <input type="hidden" name="do" value="authenticate" />
+ <input type="hidden" name="user_name" value="<?php echo Filters::noXSS($admin_username); ?>" />
+ <input type="hidden" name="password" value="<?php echo Filters::noXSS($admin_password); ?>" />
+ <?php endif; ?>
+ <p><?php echo Filters::noXSS(L('proceedtoindex')); ?></p>
+ <input type="hidden" name="remember_login" value="1" />
+ <button class="button" type="submit" name="next" value="next"><?php echo Filters::noXSS(L('viewsite')); ?></button>
+
+ </div>
+</form>
+</div>
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>
diff --git a/setup/templates/pre_install.tpl b/setup/templates/pre_install.tpl
new file mode 100644
index 0000000..3c65e43
--- /dev/null
+++ b/setup/templates/pre_install.tpl
@@ -0,0 +1,124 @@
+<div>
+ <?php echo Filters::noXSS($message); ?>
+
+ <h1><?php echo Filters::noXSS(L('preinstallcheck')); ?></h1>
+ <h2><?php echo Filters::noXSS(L('libcheck')); ?></h2>
+ <div class="installBlock">
+ <p><?php echo L('libchecktext'); ?></p>
+ <table class="formBlock">
+ <tr>
+ <td class="heading"><?php echo Filters::noXSS(L('library')); ?></td>
+ <td class="heading"><?php echo Filters::noXSS(L('status')); ?></td>
+ <td class="heading">&nbsp;</td>
+ </tr>
+ <tr>
+ <td>PHP <?php echo PHP_VERSION; ?> >= <?php echo Filters::noXSS($required_php); ?></td>
+ <td align="left"><b><?php echo $php_output; ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td>XML Extension</td>
+ <td align="left"><b><?php echo Setup::ReturnStatus($xmlStatus); ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td>cURL Library</td>
+ <td align="left"><b><?php echo Setup::ReturnStatus(extension_loaded('curl'), 'yes'); ?></b></td>
+ <td>required if you want allow Oauth2 authentications</td>
+ </tr>
+ <tr>
+ <td>GD Library</td>
+ <td align="left"><b><?php echo Setup::ReturnStatus(extension_loaded('gd'), 'yes'); ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td>Exif Library</td>
+ <td align="left"><b><?php echo Setup::ReturnStatus(extension_loaded('exif'), 'yes'); ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td>SAPI (<?php echo Filters::noXSS(php_sapi_name()); ?>)</td>
+ <td align="left"><b><?php echo Setup::ReturnStatus($sapiStatus, 'support'); ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td class="heading"><?php echo Filters::noXSS(L('database')); ?></td>
+ <td class="heading"><?php echo Filters::noXSS(L('inphp')); ?></td>
+ <td class="heading" style="text-align:center"><?php echo Filters::noXSS($product_name); ?></td>
+ </tr>
+ <?php echo $database_output; ?>
+ </table>
+
+ <?php if (!$sapiStatus): ?>
+ <p><strong>CGI server API is not supported</strong>. Consider upgrading to FastCGI, otherwise you have to add
+ <code>force_baseurl = "http://yourflyspray/"</code> manually to flyspray.conf.php after setup.
+ </p>
+ <?php endif; ?>
+ </div>
+
+ <h2><?php echo Filters::noXSS(L('recsettings')); ?></h2>
+ <div class="installBlock">
+ <p><?php echo Filters::noXSS(L('recsettingstext1')); ?></p>
+ <p><?php echo Filters::noXSS(L('recsettingstext2')); ?></p>
+ <table class="formBlock">
+ <tr>
+ <td class="heading"><?php echo Filters::noXSS(L('directive')); ?></td>
+ <td class="heading"><?php echo Filters::noXSS(L('recommended')); ?></td>
+ <td class="heading"><?php echo Filters::noXSS(L('actual')); ?></td>
+ </tr>
+ <?php echo $php_settings; ?>
+ </table>
+ </div>
+
+ <h2><?php echo Filters::noXSS(L('dirandfileperms')); ?></h2>
+ <div class="installBlock">
+ <p><?php echo Filters::noXSS(L('dirandfilepermstext')); ?></p>
+ <table class="formBlock">
+ <tr>
+ <td valign="top">../flyspray.conf.php</td>
+ <td align="left"><b><?php echo $config_output; ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td valign="top">../cache</td>
+ <td align="left"><b><?php echo $cache_output; ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td valign="top">../attachments</td>
+ <td align="left"><b><?php echo $att_output; ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td valign="top">../avatars</td>
+ <td align="left"><b><?php echo $ava_output; ?></b></td>
+ <td>&nbsp;</td>
+ </tr>
+ </table>
+
+ <?php if (!$config_status): ?>
+ <p>
+ The installer has detected that the <strong>flyspray.conf.php</strong> file is not
+ writeable. Please make it writeable by the web-server user or world writeable to
+ proceed with the setup. Alternatively if you wish to proceed, the installer will
+ make available the contents of the configuration file at the end of the setup. You
+ will then have to manually copy and paste the contents into the configuration file
+ located at <strong><?php echo APPLICATION_PATH . DIRECTORY_SEPARATOR . 'flyspray.conf.php'; ?></strong>.
+ </p>
+ <?php endif; ?>
+
+ <?php if (!$status) { ?>
+ <p>
+ You seem to have problems with the Pre-install configuration. Once you have fixed the
+ problem, please refresh the page to be able to proceed to the next stage of
+ <?php echo Filters::noXSS($product_name); ?> setup.
+ </p>
+ <?php }else { ?>
+ <p><?php echo Filters::noXSS(L('proceedtodbsetuptext')); ?></p>
+ <?php } ?>
+ <form action="index.php" method="post" name="adminForm">
+ <input type="hidden" name="action" value="database" />
+ <button name="next" type="submit" class="button" value="next" <?php echo Filters::noXSS(tpl_disableif(!$status)); ?> ><?php echo Filters::noXSS(L('proceedtodbsetup')); ?></button>
+ </form>
+ </div>
+</div>
diff --git a/setup/templates/structure.tpl b/setup/templates/structure.tpl
new file mode 100644
index 0000000..84a7491
--- /dev/null
+++ b/setup/templates/structure.tpl
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title><?php echo Filters::noXSS($title . ' ' . $product_name); ?></title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<link rel="stylesheet" href="styles/setup.css" type="text/css" media="screen" />
+<?php echo $headers; ?>
+</head>
+<body>
+<div id="header">
+ <div id="logo">
+ <h1><a href="<?php echo Filters::noXSS($index); ?>" title="Flyspray - <?= eL('slogan') ?>"><?= eL('slogan') ?></a></h1>
+ </div><!-- End of logo -->
+</div><!-- End of header -->
+<div id="content">
+ <div id="stepbar" title="<?= eL('progress') ?>">
+ <!-- <div><?= eL('progress') ?></div> -->
+ <div class="done">3rd party libs</div>
+ <div<?php
+ if(!isset($_POST['action'])){
+ echo ' class="step-on"';
+ } elseif( $_POST['action'] == 'database' || $_POST['action'] == 'administration' || $_POST['action'] == 'complete' ){
+ echo ' class="done"';
+ } ?>><?= eL('preinstallcheck') ?></div>
+ <div<?php
+ if(isset($_POST['action'])){
+ if( $_POST['action'] == 'database' ){
+ echo ' class="step-on"';
+ } elseif( $_POST['action'] == 'administration' || $_POST['action'] == 'complete' ){
+ echo ' class="done"';
+ }
+ }
+ ?>><?= eL('databasesetup') ?></div>
+ <div<?php
+ if(isset($_POST['action'])){
+ if($_POST['action'] == 'administration'){
+ echo ' class="step-on"';
+ } elseif($_POST['action'] == 'complete'){
+ echo ' class="done"';
+ }
+ } ?>><?= eL('administration') ?></div>
+ <div<?php echo (isset($_POST['action']) && ($_POST['action'] == 'complete')) ? ' class="step-on"' : ''; ?>><?php echo Filters::noXSS(L('installflyspray')); ?></div>
+ </div>
+ <?php echo $body; ?>
+</div><!-- End of content -->
+<div id="footer">
+ <ul id="docs">
+ <li><a href="https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html" title="<?= eL('lgpllicense') ?>" target="_blank"><?= eL('lgpllicense') ?></a></li>
+ <li><a href="https://www.flyspray.org/manual/" title="<?= eL('installationguide') ?>" target="_blank"><?= eL('installationguide') ?></a></li>
+ </ul>
+ <p>Flyspray <?php echo Filters::noXSS($version); ?><br />
+ Copyright 2004-<?php echo Filters::noXSS(date('Y')); ?> &copy; The Flyspray team. All rights reserved.
+ </p>
+</div><!-- End of footer -->
+</body>
+</html>
diff --git a/setup/templates/upgrade.tpl b/setup/templates/upgrade.tpl
new file mode 100644
index 0000000..68e1619
--- /dev/null
+++ b/setup/templates/upgrade.tpl
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title><?php echo Filters::noXSS($title); ?> Flyspray</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<link rel="stylesheet" href="styles/setup.css" type="text/css" media="screen" />
+</head>
+<body>
+<div id="header">
+ <div id="logo">
+ <h1><a href="<?php echo Filters::noXSS($index); ?>" title="Flyspray - The bug Killer!"><?php echo L('upgrade'); ?></a></h1>
+ </div><!-- End of logo -->
+</div><!-- End of header -->
+<div id="content">
+<form action="upgrade.php" method="post" onsubmit="document.getElementById('upgradebutton').disabled = true;return true;" >
+ <input type="hidden" name="upgrade" value="1" />
+ <div class="install">
+ <h2><?php echo L('preconditionchecks'); ?></h2>
+ <p><?php echo sprintf(L('versioncompare'), $installed_version, $short_version); ?></p>
+ <p><?php echo L('writeaccessconf'); ?></p>
+ <div class="installBlock">
+ <table class="formBlock">
+ <tr>
+ <td valign="top">../<?php echo Filters::noXSS(basename(CONFIG_PATH)); ?></td>
+ <td align="left"><b><?php if ($checks['config_writable']): ?><span class="green">writeable</span><?php else: ?><span class="red">not writeable</span><?php endif; ?></b></td>
+ </tr>
+ <tr>
+ <td valign="top">Database connection</td>
+ <td align="left"><b><?php if ($checks['db_connect']): ?><span class="green">OK</span><?php else: ?><span class="red">Failed</span><?php endif; ?></b></td>
+ </tr>
+ </table>
+ </div>
+<?php if (!$upgrade_possible): ?>
+ <p style="clear:both">Apparently, an upgrade is not possible. <?php echo Filters::noXSS($todo); ?></p>
+ <p style="text-align:center"><a class="button" href="../">Back to Home</a></p>
+<?php else: ?>
+ <p><?php echo L('upgradepossible'); ?></p>
+ <h2><?php echo L('precautions'); ?></h2>
+ <p><?php echo L('precautionbackup'); ?></p>
+
+ <?php if (isset($upgrade_options)): ?>
+ <h2>Upgrade options</h2>
+ <p><?php echo $upgrade_options; ?></p>
+ <?php endif; ?>
+
+ <?php if ($ask_for_conversion): ?>
+ <h2><?php echo L('explainwhatandwhyheader'); ?></h2>
+ <p><?php echo L('explainwhatandwhycontent'); ?></p>
+ <p><input name="yes_please_do_convert" type="checkbox"/><?php echo eL('yes'); ?>
+ <input name="no_please_do_not_convert" type="checkbox"/><?php echo eL('no'); ?></p>
+ <?php endif; ?>
+
+ <h2><?php echo L('performupgrade'); ?></h2>
+ <p><input name="upgrade" id="upgradebutton" class="button" value="<?php echo eL('performupgrade'); ?>" type="submit" /></p>
+ <?php if (isset($done)): ?>
+ <div class="green"><?php echo join('<br />',$upgradelog); ?></div>
+ <p>If all went fine:</p>
+ <ol>
+ <li>Delete setup directory or restrict access to this directory by a htaccess rule.</li>
+ <li><a href="../" class="button" style="padding:4px;background-color:#fff;border-radius:3px;border:1px solid #000;display:inline-block">Back to Overview</a></li>
+ </ol>
+ <?php else: ?>
+ <p>Info: This may take a while depending on the upgrade type and your database size: from a few seconds up to doing a coffee break.</p>
+ <p>We do not get upgrade progress feedback while the upgrading process is running, but if it takes longer it can be a sign of problem.</p>
+ <?php endif; ?>
+<?php endif; ?>
+ </div><!-- End of install -->
+</form>
+</div><!-- End of content -->
+<div id="footer">
+ <p>Flyspray <?php echo Filters::noXSS($fs->version); ?><br />
+ Copyright 2004-<?php echo Filters::noXSS(date('Y')); ?> &copy; The Flyspray team. All rights reserved.
+ </p>
+</div><!-- End of footer -->
+</body>
+</html>