updated for new header.inc.php option, and fixed echo problem

This commit is contained in:
seek3r 2002-01-02 15:47:54 +00:00
parent 49f7216e19
commit 9520fafe37
2 changed files with 43 additions and 3 deletions

View File

@ -83,8 +83,11 @@
/* If you want phpGroupWare to be cached by proxy servers, uncomment the following */ /* If you want phpGroupWare to be cached by proxy servers, uncomment the following */
/* This is NOT recommended, but phpGroupWare should still work fine. */ /* This is NOT recommended, but phpGroupWare should still work fine. */
header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1 if (!isset($phpgw_info['flags']['nocachecontrol']) || !$phpgw_info['flags']['nocachecontrol'] == True)
header('Pragma: no-cache'); // HTTP/1.0 {
header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
}
/**************************************************************************\ /**************************************************************************\
* Do not edit these lines * * Do not edit these lines *

View File

@ -12,6 +12,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info['flags'] = array( $phpgw_info['flags'] = array(
'nocachecontrol' => True,
'noheader' => True, 'noheader' => True,
'nonavbar' => True, 'nonavbar' => True,
'currentapp' => 'home', 'currentapp' => 'home',
@ -211,6 +212,19 @@
echo '<b><p align=center><font size=+2 color=red>did not found any valid DB support !<br>try to configure your php to support one of the above mentioned dbs or install phpgroupware by hand </font></p></b><td></tr></table></body></html>'; echo '<b><p align=center><font size=+2 color=red>did not found any valid DB support !<br>try to configure your php to support one of the above mentioned dbs or install phpgroupware by hand </font></p></b><td></tr></table></body></html>';
exit; exit;
} }
if (floor(phpversion()) == 3)
{
echo 'You appear to be using PHP3. Disabling PHP4 sessions support<br>' . "\n";
$supported_sessions_type[] = 'db';
}
else
{
echo 'You appear to be using PHP4. Enabling PHP4 sessions support<br>' . "\n";
$supported_sessions_type[] = 'db';
$supported_sessions_type[] = 'php4';
}
$no_guess = false; $no_guess = false;
if(file_exists('../header.inc.php') && is_file('../header.inc.php')) if(file_exists('../header.inc.php') && is_file('../header.inc.php'))
{ {
@ -331,7 +345,7 @@
} }
?> ?>
</select> </select>
</td><td>What Database do you want to use with PHPGroupWare? </td><td>What Database do you want to use with PHPGroupWare?</td></tr>
<tr><td><b>Configuration Password</b><br><input type=text name="setting[config_pass]" value="<?php echo $phpgw_info['server']['config_passwd'] ?>"></td><td>Password needed for configuration</td></tr> <tr><td><b>Configuration Password</b><br><input type=text name="setting[config_pass]" value="<?php echo $phpgw_info['server']['config_passwd'] ?>"></td><td>Password needed for configuration</td></tr>
<tr><td><b>Persistent connection</b><br> <tr><td><b>Persistent connection</b><br>
@ -340,6 +354,29 @@
<option value="False"<?php echo (! $phpgw_info['server']['db_persistent']?' selected':''); ?>>False</option> <option value="False"<?php echo (! $phpgw_info['server']['db_persistent']?' selected':''); ?>>False</option>
</select></td> </select></td>
<td>Do you want persistent connections (higher performance, but eats memory)</td></tr> <td>Do you want persistent connections (higher performance, but eats memory)</td></tr>
<tr><td><b>DB Type</b><br><select name="setting[sessions_type]">
<?php
$selected = '';
$found_dbtype = false;
while(list($k,$v) = each($supported_sessions_type))
{
if($v == $phpgw_info['server']['sessions_type'])
{
$selected = ' selected ';
$found_dbtype = true;
}
else
{
$selected = '';
}
print '<option ' . $selected . ' value="' . $v . '">' . $v . "\n";
}
?>
</select>
</td><td>What sessions management type do you want to use?</td></tr>
<tr><td colspan=2><b>Enable MCrypt</b><br> <tr><td colspan=2><b>Enable MCrypt</b><br>
<select name="setting[enable_mcrypt]"> <select name="setting[enable_mcrypt]">
<?php if($phpgw_info["server"]["mcrypt_enabled"] == True) { ?> <?php if($phpgw_info["server"]["mcrypt_enabled"] == True) { ?>