reanimated ldap.php

the ldap setup pages where broken, because the cleanup in this directory
This commit is contained in:
Lars Kneschke 2000-12-09 23:08:36 +00:00
parent 54130db306
commit 1b97f2fe2c
2 changed files with 47 additions and 2 deletions

View File

@ -207,4 +207,45 @@
$db->query("DROP TABLE phpgw_testrights");
}
}
function setup_header($title = "",$nologoutbutton = False) {
global $phpgw_info, $PHP_SELF, $dontshowtheheaderagain;
// Ok, so it isn't the greatest idea, but it works for now. Setup needs to be rewritten.
if ($dontshowtheheaderagain) {
return False;
}
$dontshowtheheaderagain = True;
?>
<head>
<title>phpGroupWare setup <?php echo $title; ?></title>
<style type="text/css">
<!--
.link
{
color: #FFFFFF;
}
-->
</style>
</head>
<BODY BGCOLOR="FFFFFF" margintop="0" marginleft="0" marginright="0" marginbottom="0">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td align="left" bgcolor="486591">&nbsp;<font color="fefefe">phpGroupWare version <?php
echo $phpgw_info["server"]["version"]; ?> setup</font>
</td>
<td align="right" bgcolor="486591">
<?php
if ($nologoutbutton) {
echo "&nbsp;";
} else {
echo '<a href="' . $PHP_SELF . '?FormLogout=True" class="link">Logout</a>&nbsp;';
}
echo "</td></tr></table>";
}
?>

View File

@ -14,13 +14,17 @@
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True,
"currentapp" => "home", "noapi" => True);
include("../header.inc.php");
include("./inc/functions.inc.php");
// Authorize the user to use setup app and load the database
include("./inc/setup_auth.inc.php");
// include("./inc/setup_auth.inc.php");
// Does not return unless user is authorized
$phpgw_info["server"]["api_dir"] =
$phpgw_info["server"]["include_root"]."/phpgwapi";
include($phpgw_info["server"]["api_dir"] . "/phpgw_common.inc.php");
$common = new common;
loaddb();
$db->query("select config_name,config_value from config where config_name like 'ldap%'",__LINE__,__FILE__);
while ($db->next_record()) {