mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
- added new configuration variables
This commit is contained in:
parent
9c0e2220af
commit
740c4954cb
|
@ -79,13 +79,17 @@ class Settings { /* {{{ */
|
||||||
var $_rootDir = null;
|
var $_rootDir = null;
|
||||||
// Path to LetoDMS_Core
|
// Path to LetoDMS_Core
|
||||||
var $_coreDir = null;
|
var $_coreDir = null;
|
||||||
// Path to LetoDMS_Lucene
|
|
||||||
var $_luceneDir = null;
|
|
||||||
// The relative path in the URL, after the domain part.
|
// The relative path in the URL, after the domain part.
|
||||||
var $_httpRoot = "/letodms/";
|
var $_httpRoot = "/letodms/";
|
||||||
// Where the uploaded files are stored (best to choose a directory that
|
// Where the uploaded files are stored (best to choose a directory that
|
||||||
// is not accessible through your web-server)
|
// is not accessible through your web-server)
|
||||||
var $_contentDir = null;
|
var $_contentDir = null;
|
||||||
|
// Where the partitions of an uploaded file by the jumploader is saved
|
||||||
|
var $_stagingDir = null;
|
||||||
|
// Where the lucene fulltext index is saved
|
||||||
|
var $_luceneDir = null;
|
||||||
|
// enable/disable lucene fulltext search
|
||||||
|
var $_enableFullSearch = true;
|
||||||
// contentOffsetDirTo
|
// contentOffsetDirTo
|
||||||
var $_contentOffsetDir = "1048576";
|
var $_contentOffsetDir = "1048576";
|
||||||
// Maximum number of sub-directories per parent directory
|
// Maximum number of sub-directories per parent directory
|
||||||
|
@ -114,6 +118,8 @@ class Settings { /* {{{ */
|
||||||
var $_logFileEnable = true;
|
var $_logFileEnable = true;
|
||||||
// the log file rotation
|
// the log file rotation
|
||||||
var $_logFileRotation = "d";
|
var $_logFileRotation = "d";
|
||||||
|
// size of partitions for file upload by jumploader
|
||||||
|
var $_partitionSize = 2000000;
|
||||||
// enable/disable users images
|
// enable/disable users images
|
||||||
var $_enableUserImage = false;
|
var $_enableUserImage = false;
|
||||||
// enable/disable calendar
|
// enable/disable calendar
|
||||||
|
@ -265,6 +271,7 @@ class Settings { /* {{{ */
|
||||||
$this->_enableEmail = Settings::boolVal($tab["enableEmail"]);
|
$this->_enableEmail = Settings::boolVal($tab["enableEmail"]);
|
||||||
$this->_enableUsersView = Settings::boolVal($tab["enableUsersView"]);
|
$this->_enableUsersView = Settings::boolVal($tab["enableUsersView"]);
|
||||||
$this->_enableFolderTree = Settings::boolVal($tab["enableFolderTree"]);
|
$this->_enableFolderTree = Settings::boolVal($tab["enableFolderTree"]);
|
||||||
|
$this->_enableFullSearch = Settings::boolVal($tab["enableFullSearch"]);
|
||||||
$this->_expandFolderTree = intval($tab["expandFolderTree"]);
|
$this->_expandFolderTree = intval($tab["expandFolderTree"]);
|
||||||
|
|
||||||
// XML Path: /configuration/site/calendar
|
// XML Path: /configuration/site/calendar
|
||||||
|
@ -280,8 +287,11 @@ class Settings { /* {{{ */
|
||||||
$this->_rootDir = strval($tab["rootDir"]);
|
$this->_rootDir = strval($tab["rootDir"]);
|
||||||
$this->_httpRoot = strval($tab["httpRoot"]);
|
$this->_httpRoot = strval($tab["httpRoot"]);
|
||||||
$this->_contentDir = strval($tab["contentDir"]);
|
$this->_contentDir = strval($tab["contentDir"]);
|
||||||
|
$this->_stagingDir = strval($tab["stagingDir"]);
|
||||||
|
$this->_luceneDir = strval($tab["luceneDir"]);
|
||||||
$this->_logFileEnable = Settings::boolVal($tab["logFileEnable"]);
|
$this->_logFileEnable = Settings::boolVal($tab["logFileEnable"]);
|
||||||
$this->_logFileRotation = strval($tab["logFileRotation"]);
|
$this->_logFileRotation = strval($tab["logFileRotation"]);
|
||||||
|
$this->_partitionSize = strval($tab["partitionSize"]);
|
||||||
|
|
||||||
// XML Path: /configuration/system/authentication
|
// XML Path: /configuration/system/authentication
|
||||||
$node = $xml->xpath('/configuration/system/authentication');
|
$node = $xml->xpath('/configuration/system/authentication');
|
||||||
|
@ -470,6 +480,7 @@ class Settings { /* {{{ */
|
||||||
$this->setXMLAttributValue($node, "enableEmail", $this->_enableEmail);
|
$this->setXMLAttributValue($node, "enableEmail", $this->_enableEmail);
|
||||||
$this->setXMLAttributValue($node, "enableUsersView", $this->_enableUsersView);
|
$this->setXMLAttributValue($node, "enableUsersView", $this->_enableUsersView);
|
||||||
$this->setXMLAttributValue($node, "enableFolderTree", $this->_enableFolderTree);
|
$this->setXMLAttributValue($node, "enableFolderTree", $this->_enableFolderTree);
|
||||||
|
$this->setXMLAttributValue($node, "enableFullSearch", $this->_enableFullSearch);
|
||||||
$this->setXMLAttributValue($node, "expandFolderTree", $this->_expandFolderTree);
|
$this->setXMLAttributValue($node, "expandFolderTree", $this->_expandFolderTree);
|
||||||
|
|
||||||
// XML Path: /configuration/site/calendar
|
// XML Path: /configuration/site/calendar
|
||||||
|
@ -484,8 +495,11 @@ class Settings { /* {{{ */
|
||||||
$this->setXMLAttributValue($node, "rootDir", $this->_rootDir);
|
$this->setXMLAttributValue($node, "rootDir", $this->_rootDir);
|
||||||
$this->setXMLAttributValue($node, "httpRoot", $this->_httpRoot);
|
$this->setXMLAttributValue($node, "httpRoot", $this->_httpRoot);
|
||||||
$this->setXMLAttributValue($node, "contentDir", $this->_contentDir);
|
$this->setXMLAttributValue($node, "contentDir", $this->_contentDir);
|
||||||
|
$this->setXMLAttributValue($node, "stagingDir", $this->_stagingDir);
|
||||||
|
$this->setXMLAttributValue($node, "luceneDir", $this->_luceneDir);
|
||||||
$this->setXMLAttributValue($node, "logFileEnable", $this->_logFileEnable);
|
$this->setXMLAttributValue($node, "logFileEnable", $this->_logFileEnable);
|
||||||
$this->setXMLAttributValue($node, "logFileRotation", $this->_logFileRotation);
|
$this->setXMLAttributValue($node, "logFileRotation", $this->_logFileRotation);
|
||||||
|
$this->setXMLAttributValue($node, "partitionSize", $this->_partitionSize);
|
||||||
|
|
||||||
// XML Path: /configuration/system/authentication
|
// XML Path: /configuration/system/authentication
|
||||||
$node = $this->getXMLNode($xml, '/configuration/system', 'authentication');
|
$node = $this->getXMLNode($xml, '/configuration/system', 'authentication');
|
||||||
|
@ -782,6 +796,24 @@ class Settings { /* {{{ */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// $this->_stagingDir
|
||||||
|
if (!file_exists($this->_stagingDir)) {
|
||||||
|
$result["stagingDir"] = array(
|
||||||
|
"status" => "notfound",
|
||||||
|
"currentvalue" => $this->_stagingDir,
|
||||||
|
"suggestionvalue" => $this->_contentDir . 'staging/'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// $this->_luceneDir
|
||||||
|
if (!file_exists($this->_luceneDir)) {
|
||||||
|
$result["luceneDir"] = array(
|
||||||
|
"status" => "notfound",
|
||||||
|
"currentvalue" => $this->_luceneDir,
|
||||||
|
"suggestionvalue" => $this->_contentDir . 'lucene/'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// $this->_ADOdbPath
|
// $this->_ADOdbPath
|
||||||
$bCheckDB = true;
|
$bCheckDB = true;
|
||||||
if($this->_ADOdbPath) {
|
if($this->_ADOdbPath) {
|
||||||
|
|
|
@ -63,6 +63,7 @@ if ($action == "saveSettings")
|
||||||
$settings->_enableConverting = getBoolValue("enableConverting");
|
$settings->_enableConverting = getBoolValue("enableConverting");
|
||||||
$settings->_enableEmail =getBoolValue("enableEmail");
|
$settings->_enableEmail =getBoolValue("enableEmail");
|
||||||
$settings->_enableUsersView = getBoolValue("enableUsersView");
|
$settings->_enableUsersView = getBoolValue("enableUsersView");
|
||||||
|
$settings->_enableFullSearch = getBoolValue("enableFullSearch");
|
||||||
$settings->_enableFolderTree = getBoolValue("enableFolderTree");
|
$settings->_enableFolderTree = getBoolValue("enableFolderTree");
|
||||||
$settings->_expandFolderTree = intval($_POST["expandFolderTree"]);
|
$settings->_expandFolderTree = intval($_POST["expandFolderTree"]);
|
||||||
|
|
||||||
|
@ -75,8 +76,11 @@ if ($action == "saveSettings")
|
||||||
$settings->_rootDir = $_POST["rootDir"];
|
$settings->_rootDir = $_POST["rootDir"];
|
||||||
$settings->_httpRoot = $_POST["httpRoot"];
|
$settings->_httpRoot = $_POST["httpRoot"];
|
||||||
$settings->_contentDir = $_POST["contentDir"];
|
$settings->_contentDir = $_POST["contentDir"];
|
||||||
|
$settings->_stagingDir = $_POST["stagingDir"];
|
||||||
|
$settings->_luceneDir = $_POST["luceneDir"];
|
||||||
$settings->_logFileEnable = getBoolValue("logFileEnable");
|
$settings->_logFileEnable = getBoolValue("logFileEnable");
|
||||||
$settings->_logFileRotation = $_POST["logFileRotation"];
|
$settings->_logFileRotation = $_POST["logFileRotation"];
|
||||||
|
$settings->_partitionSize = $_POST["partitionSize"];
|
||||||
|
|
||||||
// SETTINGS - SYSTEM - AUTHENTICATION
|
// SETTINGS - SYSTEM - AUTHENTICATION
|
||||||
$settings->_enableGuestLogin = getBoolValue("enableGuestLogin");
|
$settings->_enableGuestLogin = getBoolValue("enableGuestLogin");
|
||||||
|
|
|
@ -139,6 +139,10 @@ function ShowHide(strId)
|
||||||
<td><?php printMLText("settings_enableUsersView");?>:</td>
|
<td><?php printMLText("settings_enableUsersView");?>:</td>
|
||||||
<td><input name="enableUsersView" type="checkbox" <?php if ($settings->_enableUsersView) echo "checked" ?> /></td>
|
<td><input name="enableUsersView" type="checkbox" <?php if ($settings->_enableUsersView) echo "checked" ?> /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr title="<?php printMLText("settings_enableFullSearch_desc");?>">
|
||||||
|
<td><?php printMLText("settings_enableFullSearch");?>:</td>
|
||||||
|
<td><input name="enableFullSearch" type="checkbox" <?php if ($settings->_enableFullSearch) echo "checked" ?> /></td>
|
||||||
|
</tr>
|
||||||
<tr title="<?php printMLText("settings_enableFolderTree_desc");?>">
|
<tr title="<?php printMLText("settings_enableFolderTree_desc");?>">
|
||||||
<td><?php printMLText("settings_enableFolderTree");?>:</td>
|
<td><?php printMLText("settings_enableFolderTree");?>:</td>
|
||||||
<td><input name="enableFolderTree" type="checkbox" <?php if ($settings->_enableFolderTree) echo "checked" ?> /></td>
|
<td><input name="enableFolderTree" type="checkbox" <?php if ($settings->_enableFolderTree) echo "checked" ?> /></td>
|
||||||
|
@ -205,6 +209,14 @@ function ShowHide(strId)
|
||||||
<td><?php printMLText("settings_contentDir");?>:</td>
|
<td><?php printMLText("settings_contentDir");?>:</td>
|
||||||
<td><input name="contentDir" value="<?php echo $settings->_contentDir ?>" size="100" /></td>
|
<td><input name="contentDir" value="<?php echo $settings->_contentDir ?>" size="100" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr title="<?php printMLText("settings_stagingDir_desc");?>">
|
||||||
|
<td><?php printMLText("settings_stagingDir");?>:</td>
|
||||||
|
<td><input name="stagingDir" value="<?php echo $settings->_stagingDir ?>" size="100" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr title="<?php printMLText("settings_luceneDir_desc");?>">
|
||||||
|
<td><?php printMLText("settings_luceneDir");?>:</td>
|
||||||
|
<td><input name="luceneDir" value="<?php echo $settings->_luceneDir ?>" size="100" /></td>
|
||||||
|
</tr>
|
||||||
<tr title="<?php printMLText("settings_logFileEnable_desc");?>">
|
<tr title="<?php printMLText("settings_logFileEnable_desc");?>">
|
||||||
<td><?php printMLText("settings_logFileEnable");?>:</td>
|
<td><?php printMLText("settings_logFileEnable");?>:</td>
|
||||||
<td><input name="logFileEnable" type="checkbox" <?php if ($settings->_logFileEnable) echo "checked" ?> /></td>
|
<td><input name="logFileEnable" type="checkbox" <?php if ($settings->_logFileEnable) echo "checked" ?> /></td>
|
||||||
|
@ -218,7 +230,10 @@ function ShowHide(strId)
|
||||||
<OPTION VALUE="m" <?php if ($settings->_logFileRotation=="m") echo "SELECTED" ?> ><?php printMLText("monthly");?></OPTION>
|
<OPTION VALUE="m" <?php if ($settings->_logFileRotation=="m") echo "SELECTED" ?> ><?php printMLText("monthly");?></OPTION>
|
||||||
</SELECT>
|
</SELECT>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr title="<?php printMLText("settings_partitionSize_desc");?>">
|
||||||
|
<td><?php printMLText("settings_partitionSize");?>:</td>
|
||||||
|
<td><input name="partitionSize" value="<?php echo $settings->_partitionSize ?>" size="100" /></td>
|
||||||
|
</tr>
|
||||||
<!--
|
<!--
|
||||||
-- SETTINGS - SYSTEM - AUTHENTICATION
|
-- SETTINGS - SYSTEM - AUTHENTICATION
|
||||||
-->
|
-->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user