<?php require_once('usercheck.php') ?>
<html>
<head>
<title>Installation settings</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css">
</head>
<?php include_once('config.php'); ?>
<?php
echo $submit;
echo $fCreateDatabase;
$in_vars = array(
'variable_name' => array (
1 => 'ATTACHMENTS_BASE_DIR',
2 => 'TRIGGERS_DIRECTORY',
//3 => 'DB_SERVER',
4 => 'DB_DATABASE',
5 => 'DB_USER',
6 => 'DB_PASS',
),
'description' => array (
1 => 'Base directory that will be used for storing defect attachments. As a security measure, this directory should not be published by the web server.',
2 => 'Triggers location. See reference documentation for information on triggers',
//3 => 'Postgres dabatabase server (local for now)',
4 => 'Postgres defect database name',
5 => 'Postgres defect database user (usually tts)',
6 => 'Postgres defect database password (although not recommended, it can be left blank',
),
);
?>
<body bgcolor="#FFFFFF">
<?php require_once('header.php'); ?>
<p> </p>
<h1 align="center">Configuration global options</h1>
<p></p>
<p> </p>
<table width="80%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td>
<p>Variables:</p>
<form method="post" action="installoptions.php">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<?php foreach ($in_vars['variable_name'] as $key => $value) { ?>
<tr>
<td width="30%"><?php echo $value; ?></td>
<td width="70%"><input type="text" name="f<?php echo $value; ?>"
maxlength="" size="60" value="<?php echo constant($value); ?>"
alt="<?php echo $in_vars['description'][$key] ?>" >
</td>
</tr>
<?php } // for ?>
</table>
<p align = center><input type="submit" name="submit" value="Submit params"></p>
</form>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table>
<p> </p>
</body>
</html>