mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-12 05:58:51 +01:00
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");
|
$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,14 +14,18 @@
|
|||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True,
|
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True,
|
||||||
"currentapp" => "home", "noapi" => True);
|
"currentapp" => "home", "noapi" => True);
|
||||||
include("../header.inc.php");
|
include("../header.inc.php");
|
||||||
|
include("./inc/functions.inc.php");
|
||||||
|
|
||||||
// Authorize the user to use setup app and load the database
|
// 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
|
// 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");
|
include($phpgw_info["server"]["api_dir"] . "/phpgw_common.inc.php");
|
||||||
|
|
||||||
$common = new common;
|
$common = new common;
|
||||||
|
loaddb();
|
||||||
|
|
||||||
$db->query("select config_name,config_value from config where config_name like 'ldap%'",__LINE__,__FILE__);
|
$db->query("select config_name,config_value from config where config_name like 'ldap%'",__LINE__,__FILE__);
|
||||||
while ($db->next_record()) {
|
while ($db->next_record()) {
|
||||||
$config[$db->f("config_name")] = $db->f("config_value");
|
$config[$db->f("config_name")] = $db->f("config_value");
|
||||||
|
Loading…
Reference in New Issue
Block a user