Change to use config.inc.php in app/inc dir

This commit is contained in:
Miles Lott 2001-06-10 11:30:43 +00:00
parent 3baa2c3504
commit 88511127dd
3 changed files with 14 additions and 8 deletions

View File

@ -16,6 +16,7 @@
'noheader' => True,
'nonavbar' => True,
'currentapp' => "admin",
'enable_nextmatchs_class' => True
);
include('../header.inc.php');
@ -25,6 +26,13 @@
'footer' => 'config_footer.tpl'
));
function nextcolor()
{
global $phpgw,$trcolor;
$trcolor = $phpgw->nextmatchs->alternate_row_color($tr_color);
echo $trcolor;
}
$c = CreateObject('phpgwapi.config',$appname);
$c->read_repository();
@ -63,13 +71,11 @@
$t->set_var('title',lang('Site Configuration'));
$t->set_var('action_url',$phpgw->link('/admin/config.php'));
$t->set_var('th_bg',$phpgw_info["theme"]["th_bg"]);
$t->set_var('th_text',$phpgw_info["theme"]["th_text"]);
$t->pparse('out','header');
include(PHPGW_SERVER_ROOT . SEP . $appname . SEP . 'setup' . SEP . 'config.inc.php');
if ($appname == 'admin')
{
include(PHPGW_SERVER_ROOT . SEP . 'preferences' . SEP . 'setup' . SEP . 'config.inc.php');
}
include(PHPGW_SERVER_ROOT . SEP . $appname . SEP . 'inc' . SEP . 'config.inc.php');
$t->pparse('out','footer');
$phpgw->common->phpgw_footer();

View File

@ -1,5 +1,5 @@
<!-- BEGIN footer -->
<tr bgcolor="FFFFFF">
<tr bgcolor="{th_bg}">
<td colspan="2">
&nbsp;
</td>

View File

@ -1,7 +1,7 @@
<!-- BEGIN head -->
<form method="POST" action="{action_url}">
<table border="0" align="center">
<tr bgcolor="486591">
<td colspan="2"><font color="fefefe">&nbsp;<b>{title}</b></font></td>
<tr bgcolor="{th_bg}">
<td colspan="2"><font color="{th_text}">&nbsp;<b>{title}</b></font></td>
</tr>
<!-- END head -->