support memcache
This commit is contained in:
parent
6b86de7486
commit
13b165fd88
|
@ -5,6 +5,7 @@ July 2009 2.7.0
|
|||
- DHCP: added description field and reordered fixed IP input fields
|
||||
- fixed bugs:
|
||||
* added additional check for creating home directories (2798489)
|
||||
* support memcache for session storage (2811505)
|
||||
|
||||
|
||||
08.04.2009 2.6.0
|
||||
|
|
|
@ -43,8 +43,10 @@ checkClientIP();
|
|||
function startSecureSession() {
|
||||
// start session
|
||||
if (isset($_SESSION)) unset($_SESSION);
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
$sessionDir = substr(__FILE__, 0, strlen(__FILE__) - 17) . "/sess";
|
||||
session_save_path($sessionDir);
|
||||
}
|
||||
@session_start();
|
||||
// check session id
|
||||
if (! isset($_SESSION["sec_session_id"]) || ($_SESSION["sec_session_id"] != session_id())) {
|
||||
|
|
|
@ -36,7 +36,9 @@ include_once('../../lib/config.inc');
|
|||
include_once('../../lib/status.inc');
|
||||
|
||||
// start session
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
setlanguage();
|
||||
|
|
|
@ -38,7 +38,9 @@ include_once("../../lib/config.inc");
|
|||
include_once("../../lib/modules.inc");
|
||||
|
||||
// start session
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
setlanguage();
|
||||
|
@ -142,7 +144,48 @@ if (isset($_SESSION['conf_errors'])) {
|
|||
|
||||
// display formular
|
||||
echo ("<form action=\"confmain.php\" method=\"post\">\n");
|
||||
echo "<table border=0 width=\"100%\" style=\"border-collapse: collapse;\">\n";
|
||||
echo "<tr valign=\"top\"><td style=\"border-bottom: 1px solid;padding:0px;\" colspan=2>";
|
||||
// show tabs
|
||||
echo "<table width=\"100%\" border=0 style=\"border-collapse: collapse;\">";
|
||||
echo "<tr>\n";
|
||||
$buttonWidth = 15;
|
||||
$buttonSpace = ' ';
|
||||
// general settings
|
||||
echo "<td width=\"$buttonWidth\" style=\"padding-bottom:0px;padding-right:5px;padding-left:5px;padding-top:10px;\">\n";
|
||||
echo "<table class=\"settingsTab\" width=\"100%\">\n";
|
||||
echo "<tr><td class=\"settingsActiveTab\" onclick=\"document.getElementsByName('generalSettingsButton')[0].click();\"";
|
||||
echo " align=\"center\">\n";
|
||||
$buttonStyle = 'background-image: url(../../graphics/modules.png);width:' . $buttonWidth . 'em;';
|
||||
echo "<input style=\"" . $buttonStyle . "\" name=\"generalSettingsButton\" type=\"submit\" value=\"" . $buttonSpace . _('General settings') . "\"";
|
||||
echo ">\n";
|
||||
echo "</td></tr></table>\n";
|
||||
echo '</td>';
|
||||
// account types
|
||||
echo "<td width=\"$buttonWidth\" style=\"padding-bottom:0px;padding-right:5px;padding-left:5px;padding-top:10px;\">\n";
|
||||
echo "<table class=\"settingsTab\" width=\"100%\">\n";
|
||||
echo "<tr><td onclick=\"document.getElementsByName('accountTypesButton')[0].click();\"";
|
||||
echo " align=\"center\">\n";
|
||||
$buttonStyle = 'background-image: url(../../graphics/modules.png);width:' . $buttonWidth . 'em;';
|
||||
echo "<input style=\"" . $buttonStyle . "\" name=\"accountTypesButton\" type=\"submit\" value=\"" . $buttonSpace . _('Account types') . "\"";
|
||||
echo ">\n";
|
||||
echo "</td></tr></table>\n";
|
||||
echo '</td>';
|
||||
// module selection
|
||||
echo "<td width=\"$buttonWidth\" style=\"padding-bottom:0px;padding-right:5px;padding-left:5px;padding-top:10px;\">\n";
|
||||
echo "<table class=\"settingsTab\" width=\"100%\">\n";
|
||||
echo "<tr><td onclick=\"document.getElementsByName('modulesButton')[0].click();\"";
|
||||
echo " align=\"center\">\n";
|
||||
$buttonStyle = 'background-image: url(../../graphics/modules.png);width:' . $buttonWidth . 'em;';
|
||||
echo "<input style=\"" . $buttonStyle . "\" name=\"modulesButton\" type=\"submit\" value=\"" . $buttonSpace . _('Modules') . "\"";
|
||||
echo ">\n";
|
||||
echo "</td></tr></table>\n";
|
||||
echo '</td>';
|
||||
echo "<td width=\"100%\"> </td></tr></table>\n";
|
||||
// end tabs
|
||||
echo "</td></tr>\n";
|
||||
|
||||
echo "<tr><td><br><br>\n";
|
||||
echo ("<fieldset><legend><img align=\"middle\" src=\"../../graphics/profiles.png\" alt=\"profiles.png\"> <b>" . _("Server settings") . "</b></legend><br>\n");
|
||||
echo ("<table border=0>");
|
||||
// serverURL
|
||||
|
@ -503,6 +546,7 @@ echo ("<p> </p>");
|
|||
|
||||
echo ("<p>* = ". _("required") . "</p>");
|
||||
|
||||
echo '</td></tr></table>';
|
||||
echo ("</form>\n");
|
||||
echo ("</body>\n");
|
||||
echo ("</html>\n");
|
||||
|
|
|
@ -36,7 +36,9 @@ include_once('../../lib/config.inc');
|
|||
include_once('../../lib/modules.inc');
|
||||
|
||||
// start session
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
setlanguage();
|
||||
|
|
|
@ -36,7 +36,9 @@ include_once('../../lib/config.inc');
|
|||
include_once('../../lib/types.inc');
|
||||
|
||||
// start session
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
setlanguage();
|
||||
|
|
|
@ -34,7 +34,9 @@ $Id$
|
|||
include_once('../../lib/config.inc');
|
||||
|
||||
// start session
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
setlanguage();
|
||||
|
|
|
@ -36,7 +36,9 @@ include_once('../../lib/config.inc');
|
|||
include_once('../../lib/status.inc');
|
||||
|
||||
// start session
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
setlanguage();
|
||||
|
|
|
@ -36,7 +36,9 @@ include_once('../../lib/config.inc');
|
|||
include_once('../../lib/status.inc');
|
||||
|
||||
// start session
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
setlanguage();
|
||||
|
|
|
@ -36,7 +36,9 @@ include_once('../../lib/config.inc');
|
|||
include_once('../../lib/status.inc');
|
||||
|
||||
// start session
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
setlanguage();
|
||||
|
|
|
@ -38,7 +38,9 @@ include_once("../lib/ldap.inc");
|
|||
/** configuration */
|
||||
include_once("../lib/config.inc");
|
||||
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../sess");
|
||||
}
|
||||
@session_start();
|
||||
|
||||
/** status messages */
|
||||
|
|
|
@ -112,7 +112,10 @@ if (sizeof($criticalErrors) > 0) {
|
|||
/** access to configuration options */
|
||||
include_once("../lib/config.inc"); // Include config.inc which provides Config class
|
||||
|
||||
session_save_path("../sess"); // Set session save path
|
||||
// set session save path
|
||||
if (strtolower(session_module_name()) == 'files') {
|
||||
session_save_path("../sess");
|
||||
}
|
||||
session_start(); // Start LDAP Account Manager session
|
||||
|
||||
// save last selected login profile
|
||||
|
|
Loading…
Reference in New Issue