mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
add debug mode
This commit is contained in:
parent
3822db8efa
commit
ae2b7d4631
|
@ -240,6 +240,8 @@ class Settings { /* {{{ */
|
|||
var $_maxExecutionTime = null;
|
||||
// command timeout
|
||||
var $_cmdTimeout = 5;
|
||||
// debug mode
|
||||
var $_enableDebugMode = false;
|
||||
// Preview image width in lists
|
||||
var $_previewWidthList = 40;
|
||||
// Preview image width in menu lists
|
||||
|
@ -697,6 +699,7 @@ class Settings { /* {{{ */
|
|||
$this->_maxExecutionTime = intval($tab["maxExecutionTime"]);
|
||||
else
|
||||
$this->_maxExecutionTime = ini_get("max_execution_time");
|
||||
$this->_enableDebugMode = Settings::boolval($tab["enableDebugMode"]);
|
||||
}
|
||||
|
||||
// XML Path: /configuration/system/advanced/converters
|
||||
|
@ -1011,6 +1014,7 @@ class Settings { /* {{{ */
|
|||
$this->setXMLAttributValue($node, "updateNotifyTime", $this->_updateNotifyTime);
|
||||
$this->setXMLAttributValue($node, "maxExecutionTime", $this->_maxExecutionTime);
|
||||
$this->setXMLAttributValue($node, "cmdTimeout", $this->_cmdTimeout);
|
||||
$this->setXMLAttributValue($node, "enableDebugMode", $this->_enableDebugMode);
|
||||
|
||||
/* Check if there is still a converters list with a target attribute */
|
||||
$node = $xml->xpath('/configuration/advanced/converters[count(@*)=0]');
|
||||
|
|
|
@ -211,6 +211,7 @@ if ($action == "saveSettings")
|
|||
$settings->_updateNotifyTime = intval($_POST["updateNotifyTime"]);
|
||||
$settings->_maxExecutionTime = intval($_POST["maxExecutionTime"]);
|
||||
$settings->_cmdTimeout = (intval($_POST["cmdTimeout"]) > 0) ?intval($_POST["cmdTimeout"]) : 1;
|
||||
$settings->_enableDebugMode = getBoolValue("enableDebugMode");
|
||||
|
||||
// SETTINGS - ADVANCED - INDEX CMD
|
||||
if(isset($_POST["converters"]["fulltext"]))
|
||||
|
|
|
@ -461,6 +461,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site'));
|
|||
<?php $this->showConfigText('settings_updateNotifyTime', 'updateNotifyTime'); ?>
|
||||
<?php $this->showConfigText('settings_maxExecutionTime', 'maxExecutionTime'); ?>
|
||||
<?php $this->showConfigText('settings_cmdTimeout', 'cmdTimeout'); ?>
|
||||
<?php $this->showConfigCheckbox('settings_enableDebugMode', 'enableDebugMode'); ?>
|
||||
|
||||
<?php
|
||||
foreach(array('fulltext', 'preview', 'pdf') as $target) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user