forked from extern/egroupware
reanimated ldap.php
the ldap setup pages where broken, because the cleanup in this directory
This commit is contained in:
parent
54130db306
commit
1b97f2fe2c
@ -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"> <font color="fefefe">phpGroupWare version <?php
|
||||
echo $phpgw_info["server"]["version"]; ?> setup</font>
|
||||
</td>
|
||||
<td align="right" bgcolor="486591">
|
||||
<?php
|
||||
if ($nologoutbutton) {
|
||||
echo " ";
|
||||
} else {
|
||||
echo '<a href="' . $PHP_SELF . '?FormLogout=True" class="link">Logout</a> ';
|
||||
}
|
||||
|
||||
echo "</td></tr></table>";
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user