2012-12-14 07:53:13 +00:00
< ? php
/**
* Implementation of Settings view
*
* @ category DMS
2013-02-14 11:10:53 +00:00
* @ package SeedDMS
2012-12-14 07:53:13 +00:00
* @ license GPL 2
* @ version @ version @
* @ author Uwe Steinmann < uwe @ steinmann . cx >
* @ copyright Copyright ( C ) 2002 - 2005 Markus Westphal ,
* 2006 - 2008 Malcolm Cowe , 2010 Matteo Lucarelli ,
* 2010 - 2012 Uwe Steinmann
* @ version Release : @ package_version @
*/
/**
* Include parent class
*/
2021-04-18 05:08:00 +00:00
//require_once("class.Bootstrap.php");
2012-12-14 07:53:13 +00:00
/**
* Class which outputs the html page for Settings view
*
* @ category DMS
2013-02-14 11:10:53 +00:00
* @ package SeedDMS
2012-12-14 07:53:13 +00:00
* @ author Markus Westphal , Malcolm Cowe , Uwe Steinmann < uwe @ steinmann . cx >
* @ copyright Copyright ( C ) 2002 - 2005 Markus Westphal ,
* 2006 - 2008 Malcolm Cowe , 2010 Matteo Lucarelli ,
* 2010 - 2012 Uwe Steinmann
* @ version Release : @ package_version @
*/
2021-04-18 05:08:00 +00:00
class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
2012-12-14 07:53:13 +00:00
2018-04-19 11:42:20 +00:00
protected function showStartPaneContent ( $name , $isactive ) { /* {{{ */
2021-05-06 13:08:33 +00:00
parent :: showStartPaneContent ( $name , $isactive );
2018-04-19 11:42:20 +00:00
$this -> contentContainerStart ();
2021-04-30 12:49:38 +00:00
echo '<table class="table-condensed table-sm" style="table-layout: fixed;">' ;
2020-11-22 11:35:26 +00:00
echo '<tr><td width="20%"></td><td width="80%"></td></tr>' ;
2018-04-19 11:42:20 +00:00
} /* }}} */
2021-05-11 15:21:11 +00:00
protected function showEndPaneContent ( $name , $currenttab ) { /* {{{ */
2023-02-02 18:15:54 +00:00
echo '</table>' ;
2018-04-19 11:42:20 +00:00
$this -> contentContainerEnd ();
2021-05-11 15:21:11 +00:00
parent :: showEndPaneContent ( $name , $currenttab );
2018-04-19 11:42:20 +00:00
} /* }}} */
protected function getTextField ( $name , $value , $type = '' , $placeholder = '' ) { /* {{{ */
$html = '' ;
2020-01-27 14:37:59 +00:00
if ( $type == 'textarea' || ( $type != 'password' && strlen ( $value ) > 80 ))
2021-04-30 12:49:38 +00:00
$html .= '<textarea class="form-control input-xxlarge" name="' . $name . '">' . $value . '</textarea>' ;
2015-08-13 20:21:47 +00:00
else {
if ( strlen ( $value ) > 40 )
$class = 'input-xxlarge' ;
elseif ( strlen ( $value ) > 30 )
$class = 'input-xlarge' ;
elseif ( strlen ( $value ) > 18 )
$class = 'input-large' ;
elseif ( strlen ( $value ) > 12 )
$class = 'input-medium' ;
else
$class = 'input-small' ;
2024-02-15 08:37:43 +00:00
$html .= '<div class="input-group' . ( $type == 'password' ? ' show-hide-password' : '' ) . '">' ;
2023-09-27 09:30:45 +00:00
$html .= '<input ' . ( $type == 'password' ? 'type="password"' : ( $type == 'number' ? 'type="number"' : ( $type == 'color' ? 'type="color"' : 'type="text"' ))) . ' class="form-control ' . $class . '" name="' . $name . '" value="' . $value . '" placeholder="' . $placeholder . '"/>' ;
2024-02-15 08:37:43 +00:00
if ( $this -> getTheme () == 'bootstrap4' && $type == 'password' ) {
$html .= '<div class="input-group-addon">' ;
$html .= '<a href=""><i class="fa fa-eye-slash" style="position: absolute; right: 15px; top: 10px;" aria-hidden="true"></i></a>' ;
$html .= '</div>' ;
}
$html .= '</div>' ;
2015-08-13 20:21:47 +00:00
}
2018-04-19 11:42:20 +00:00
return $html ;
} /* }}} */
protected function showTextField ( $name , $value , $type = '' , $placeholder = '' ) { /* {{{ */
echo $this -> getTextField ( $name , $value , $type , $placeholder );
2015-08-13 09:50:49 +00:00
} /* }}} */
2018-04-17 16:34:30 +00:00
/**
* Place arbitrary html in a headline
*
* @ param string $text html code to be shown as headline
*/
protected function showRawConfigHeadline ( $text ) { /* {{{ */
?>
2020-01-14 07:32:05 +00:00
< tr >< td colspan = " 2 " >< b >< ? = $text ?> </b></td></tr>
2018-04-17 16:34:30 +00:00
< ? php
} /* }}} */
/**
* Place text in a headline
*
* @ param string $text text to be shown as headline
*/
protected function showConfigHeadline ( $title ) { /* {{{ */
$this -> showRawConfigHeadline ( htmlspecialchars ( getMLText ( $title )));
} /* }}} */
2021-06-23 14:27:09 +00:00
/**
* Show a text input configuration option
*
* @ param string $title title of the option
* @ param string $name name of html input field
* @ param string $type can be 'password' , 'array'
* @ param string $placeholder placeholder for input field
*/
protected function isVisible ( $name ) { /* {{{ */
$settings = $this -> params [ 'settings' ];
if ( ! ( $hcf = $settings -> _hiddenConfFields ))
return true ;
2021-06-24 20:34:04 +00:00
if ( in_array ( $name , $hcf ))
2021-06-23 14:27:09 +00:00
return false ;
return true ;
} /* }}} */
2018-04-17 16:34:30 +00:00
/**
* Show a text input configuration option
*
* @ param string $title title of the option
* @ param string $name name of html input field
2018-04-19 11:42:20 +00:00
* @ param string $type can be 'password' , 'array'
* @ param string $placeholder placeholder for input field
2018-04-17 16:34:30 +00:00
*/
2018-04-19 11:42:20 +00:00
protected function showConfigText ( $title , $name , $type = '' , $placeholder = '' ) { /* {{{ */
2018-04-17 16:34:30 +00:00
$settings = $this -> params [ 'settings' ];
?>
2021-06-28 07:00:35 +00:00
< tr title = " <?= getMLText( $title . " _desc " ) ?> " >
2022-06-01 13:02:00 +00:00
< td >< ? = getMLText ( $title ) ?> </td>
2018-04-19 11:42:20 +00:00
< ? php
2021-06-28 10:04:27 +00:00
if ( $type === 'array' )
2018-04-19 11:42:20 +00:00
$value = $settings -> arrayToString ( $settings -> { " _ " . $name });
else
$value = $settings -> { " _ " . $name };
2021-06-28 07:00:35 +00:00
echo " <td> " ;
if ( $this -> isVisible ( $name ))
$this -> showTextField ( $name , $value , ( $type == 'password' || $type == 'textarea' ? $type : '' ), $placeholder );
else
echo getMLText ( 'settings_conf_field_not_editable' );
echo " </td> \n " ;
2018-04-19 11:42:20 +00:00
?>
</ tr >
< ? php
} /* }}} */
/**
* Show a configuration option with arbitrary html content
*
* @ param string $title title of the option
* @ param string $rawdata html data
*/
protected function showConfigPlain ( $title , $title_desc , $rawdata ) { /* {{{ */
$settings = $this -> params [ 'settings' ];
?>
2020-08-19 09:49:48 +00:00
< tr title = " <?= htmlspecialchars( $title_desc ) ?> " >
2022-06-01 13:02:00 +00:00
< td >< ? = $title ?> </td>
2018-04-19 11:42:20 +00:00
< td >< ? = $rawdata ?> </td>
2018-04-17 16:34:30 +00:00
</ tr >
< ? php
} /* }}} */
/**
* Show a checkbox configuration option
*
* @ param string $title title of the option
* @ param string $name name of html input field
*/
protected function showConfigCheckbox ( $title , $name ) { /* {{{ */
$settings = $this -> params [ 'settings' ];
?>
< tr title = " <?= getMLText( $title . " _desc " ) ?> " >
2022-06-01 13:02:00 +00:00
< td >< ? = getMLText ( $title ) ?> </td>
2024-02-15 08:37:43 +00:00
< td >
< ? php
if ( $this -> isVisible ( $name ))
echo '<input name="' . $name . '" type="checkbox" ' . ( $settings -> { " _ " . $name } ? " checked " : '' ) . ' />' ;
else
echo getMLText ( 'settings_conf_field_not_editable' );
echo " </td> \n " ;
?>
2018-04-17 16:34:30 +00:00
</ tr >
< ? php
} /* }}} */
protected function showConfigOption ( $title , $name , $values , $multiple = false , $translate = false ) { /* {{{ */
$settings = $this -> params [ 'settings' ];
$isass = count ( array_filter ( array_keys ( $values ), 'is_string' )) > 0 ;
// var_dump($values);
// echo $isass ? 'asso' : 'indexed';
?>
< tr title = " <?= getMLText( $title . " _desc " ) ?> " >
2022-06-01 13:02:00 +00:00
< td >< ? = getMLText ( $title ) ?> </td>
2018-04-17 16:34:30 +00:00
< td >
< ? php if ( $multiple ) { ?>
2022-09-10 14:35:07 +00:00
< select class = " chzn-select form-control " style = " width: 100%; " name = " <?= $name ?>[] " multiple >
2018-04-17 16:34:30 +00:00
< ? php } else { ?>
2022-09-10 14:35:07 +00:00
< select class = " chzn-select form-control " style = " width: 100%; " name = " <?= $name ?> " >
2018-04-17 16:34:30 +00:00
< ? php }
foreach ( $values as $i => $value ) {
$optval = trim ( $isass ? $i : $value );
echo '<option value="' . $optval . '" ' ;
if (( $multiple && in_array ( $optval , $settings -> { " _ " . $name })) || ( ! $multiple && $optval == $settings -> { " _ " . $name }))
echo " selected " ;
echo '>' . ( $translate ? getMLText ( $value ) : $value ) . '</option>' ;
}
?>
</ select >
</ td >
</ tr >
< ? php
} /* }}} */
2020-08-19 11:21:51 +00:00
protected function showConfigUser ( $title , $name , $allowempty = false , $multiple = false , $size = 0 ) { /* {{{ */
$settings = $this -> params [ 'settings' ];
$dms = $this -> params [ 'dms' ];
?>
< tr title = " <?= getMLText( $title . " _desc " ) ?> " >
2022-06-01 13:02:00 +00:00
< td >< ? = getMLText ( $title ) ?> </td>
2020-08-19 11:21:51 +00:00
< td >
< ? php
$users = $dms -> getAllUsers ();
if ( $users ) {
2021-06-26 09:56:25 +00:00
if ( is_array ( $settings -> { " _ " . $name }))
$selections = $settings -> { " _ " . $name };
else
$selections = explode ( ',' , $settings -> { " _ " . $name });
2023-09-18 11:36:54 +00:00
echo " <select class= \" chzn-select \" " . ( $allowempty ? " data-allow-clear= \" true \" " : " " ) . " \" name= \" " . $name . ( $multiple ? " [] " : " " ) . " \" " . ( $multiple ? " multiple " : " " ) . ( $size ? " size= \" " . $size . " \" " : " " ) . " data-placeholder= \" " . getMLText ( " select_user " ) . " \" style= \" width: 100%; \" > " ;
2020-08-19 11:21:51 +00:00
if ( $allowempty )
echo " <option value= \" \" ></option> " ;
foreach ( $users as $curuser ) {
echo " <option value= \" " . $curuser -> getID () . " \" " ;
if ( in_array ( $curuser -> getID (), $selections ))
echo " selected " ;
echo " > " . htmlspecialchars ( $curuser -> getLogin () . " - " . $curuser -> getFullName ()) . " </option> " ;
}
echo " </select> " ;
}
?>
</ td >
</ tr >
< ? php
} /* }}} */
2024-02-12 13:10:12 +00:00
protected function showConfigGroup ( $title , $name , $allowempty = false , $multiple = false , $size = 0 ) { /* {{{ */
$settings = $this -> params [ 'settings' ];
$dms = $this -> params [ 'dms' ];
?>
< tr title = " <?= getMLText( $title . " _desc " ) ?> " >
< td >< ? = getMLText ( $title ) ?> </td>
< td >
< ? php
$groups = $dms -> getAllGroups ();
if ( $groups ) {
if ( is_array ( $settings -> { " _ " . $name }))
$selections = $settings -> { " _ " . $name };
else
$selections = explode ( ',' , $settings -> { " _ " . $name });
echo " <select class= \" chzn-select \" " . ( $allowempty ? " data-allow-clear= \" true \" " : " " ) . " \" name= \" " . $name . ( $multiple ? " [] " : " " ) . " \" " . ( $multiple ? " multiple " : " " ) . ( $size ? " size= \" " . $size . " \" " : " " ) . " data-placeholder= \" " . getMLText ( " select_group " ) . " \" style= \" width: 100%; \" > " ;
if ( $allowempty )
echo " <option value= \" \" ></option> " ;
foreach ( $groups as $curgroup ) {
echo " <option value= \" " . $curgroup -> getID () . " \" " ;
if ( in_array ( $curgroup -> getID (), $selections ))
echo " selected " ;
echo " > " . htmlspecialchars ( $curgroup -> getName ()) . " </option> " ;
}
echo " </select> " ;
}
?>
</ td >
</ tr >
< ? php
} /* }}} */
2021-07-02 07:28:05 +00:00
protected function showConfigFolder ( $title , $name , $allowempty = false , $multiple = false , $size = 0 ) { /* {{{ */
$settings = $this -> params [ 'settings' ];
$dms = $this -> params [ 'dms' ];
?>
< tr title = " <?= getMLText( $title . " _desc " ) ?> " >
< td >< ? = getMLText ( $title ) ?> :</td>
< td >
< ? php $this -> printFolderChooserHtml ( $name , M_READWRITE , - 1 , $dms -> getFolder ( $settings -> { " _ " . $name }), $name ); ?>
</ td >
</ tr >
< ? php
} /* }}} */
2016-01-28 12:37:16 +00:00
function js () { /* {{{ */
2020-01-03 09:21:58 +00:00
$extmgr = $this -> params [ 'extmgr' ];
2016-02-17 10:43:19 +00:00
2021-03-10 14:58:22 +00:00
header ( 'Content-Type: application/javascript; charset=UTF-8' );
2016-01-28 12:37:16 +00:00
?>
2023-01-17 11:31:55 +00:00
function scrollToTargetAdjusted ( target ){
var element = document . getElementById ( target );
var headerOffset = 60 ;
var elementPosition = element . getBoundingClientRect () . top ;
var offsetPosition = elementPosition + window . pageYOffset - headerOffset ;
window . scrollTo ({
top : offsetPosition ,
behavior : " smooth "
});
}
2016-01-28 12:37:16 +00:00
$ ( document ) . ready ( function () {
$ ( '#settingstab li a' ) . click ( function ( event ) {
$ ( '#currenttab' ) . val ( $ ( event . currentTarget ) . data ( 'target' ) . substring ( 1 ));
});
2016-02-15 08:27:44 +00:00
$ ( 'a.sendtestmail' ) . click ( function ( ev ){
ev . preventDefault ();
$ . ajax ({ url : '../op/op.Ajax.php' ,
type : 'GET' ,
dataType : " json " ,
data : { command : 'testmail' },
success : function ( data ) {
noty ({
text : data . msg ,
type : ( data . error ) ? 'error' : 'success' ,
dismissQueue : true ,
layout : 'topRight' ,
theme : 'defaultTheme' ,
timeout : 1500 ,
});
2018-11-09 16:22:33 +00:00
if ( data . data ) {
$ ( '#maildebug' ) . text ( data . data );
}
2016-02-15 08:27:44 +00:00
}
});
});
2023-01-17 11:31:55 +00:00
$ ( 'a.scrollto' ) . click ( function ( event ) {
console . log ( $ ( event . currentTarget ) . data ( 'target' ) . substring ( 1 ));
scrollToTargetAdjusted ( $ ( event . currentTarget ) . data ( 'target' ) . substring ( 1 ));
});
2016-01-28 12:37:16 +00:00
});
< ? php
} /* }}} */
2012-12-14 07:53:13 +00:00
function show () { /* {{{ */
$dms = $this -> params [ 'dms' ];
$user = $this -> params [ 'user' ];
2017-01-23 06:53:01 +00:00
$users = $this -> params [ 'allusers' ];
$groups = $this -> params [ 'allgroups' ];
2012-12-14 07:53:13 +00:00
$settings = $this -> params [ 'settings' ];
2020-01-03 09:21:58 +00:00
$extmgr = $this -> params [ 'extmgr' ];
2015-03-11 17:24:14 +00:00
$currenttab = $this -> params [ 'currenttab' ];
2012-12-14 07:53:13 +00:00
$this -> htmlStartPage ( getMLText ( " admin_tools " ));
$this -> globalNavigation ();
$this -> contentStart ();
$this -> pageNavigation ( getMLText ( " admin_tools " ), " admin_tools " );
$this -> contentHeading ( getMLText ( " settings " ));
2021-05-27 19:57:12 +00:00
$this -> rowStart ();
$this -> columnStart ( 8 );
2012-12-14 07:53:13 +00:00
?>
< form action = " ../op/op.Settings.php " method = " post " enctype = " multipart/form-data " name = " form0 " >
2021-01-25 08:08:12 +00:00
< ? php echo createHiddenFieldWithKey ( 'savesettings' ); ?>
2012-12-14 07:53:13 +00:00
< input type = " hidden " name = " action " value = " saveSettings " />
2015-04-22 15:21:57 +00:00
< input type = " hidden " id = " currenttab " name = " currenttab " value = " <?php echo $currenttab ? $currenttab : 'site'; ?> " />
2012-12-14 07:53:13 +00:00
2021-05-04 07:57:23 +00:00
< ul class = " nav nav-pills " id = " settingstab " role = " tablist " >
2018-04-19 11:42:20 +00:00
< ? php $this -> showPaneHeader ( 'site' , getMLText ( 'settings_Site' ), ( ! $currenttab || $currenttab == 'site' )); ?>
< ? php $this -> showPaneHeader ( 'system' , getMLText ( 'settings_System' ), ( $currenttab == 'system' )); ?>
< ? php $this -> showPaneHeader ( 'advanced' , getMLText ( 'settings_Advanced' ), ( $currenttab == 'advanced' )); ?>
< ? php $this -> showPaneHeader ( 'extensions' , getMLText ( 'settings_Extensions' ), ( $currenttab == 'extensions' )); ?>
2012-12-14 07:53:13 +00:00
</ ul >
< div class = " tab-content " >
2018-04-19 11:42:20 +00:00
< ? php
$this -> showStartPaneContent ( 'site' , ( ! $currenttab || $currenttab == 'site' ));
?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - SITE - DISPLAY
2018-04-17 16:34:30 +00:00
-->
< ? php $this -> showConfigHeadline ( 'settings_Display' ); ?>
< ? php $this -> showConfigText ( 'settings_siteName' , 'siteName' ); ?>
< ? php $this -> showConfigText ( 'settings_footNote' , 'footNote' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_printDisclaimer' , 'printDisclaimer' ); ?>
< ? php $this -> showConfigOption ( 'settings_available_languages' , 'availablelanguages' , getAvailableLanguages (), true , true ); ?>
< ? php $this -> showConfigOption ( 'settings_language' , 'language' , getAvailableLanguages (), false , true ); ?>
2020-12-01 17:25:22 +00:00
< ? php $this -> showConfigText ( 'settings_dateformat' , 'dateformat' ); ?>
< ? php $this -> showConfigText ( 'settings_datetimeformat' , 'datetimeformat' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigOption ( 'settings_theme' , 'theme' , UI :: getStyles (), false , false ); ?>
2020-11-09 14:14:09 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_overrideTheme' , 'overrideTheme' ); ?>
2019-10-28 11:06:41 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_onePageMode' , 'onePageMode' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_previewWidthList' , 'previewWidthList' ); ?>
< ? php $this -> showConfigText ( 'settings_previewWidthMenuList' , 'previewWidthMenuList' ); ?>
< ? php $this -> showConfigText ( 'settings_previewWidthDropFolderList' , 'previewWidthDropFolderList' ); ?>
< ? php $this -> showConfigText ( 'settings_previewWidthDetail' , 'previewWidthDetail' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_showFullPreview' , 'showFullPreview' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_convertToPdf' , 'convertToPdf' ); ?>
< ? php $this -> showConfigText ( 'settings_maxItemsPerPage' , 'maxItemsPerPage' ); ?>
< ? php $this -> showConfigText ( 'settings_incItemsPerPage' , 'incItemsPerPage' ); ?>
2023-04-04 15:46:08 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_markdownComments' , 'markdownComments' ); ?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - SITE - EDITION
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Edition' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_strictFormCheck' , 'strictFormCheck' ); ?>
2020-09-07 14:20:37 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_inlineEditing' , 'inlineEditing' ); ?>
2020-01-16 12:08:48 +00:00
< ? php $this -> showConfigOption ( 'settings_noDocumentFormFields' , 'noDocumentFormFields' , array ( 'comment' , 'keywords' , 'categories' , 'sequence' , 'expires' , 'version' , 'version_comment' , 'notification' ), true , true ); ?>
2021-09-22 07:53:53 +00:00
< ? php $this -> showConfigOption ( 'settings_noFolderFormFields' , 'noFolderFormFields' , array ( 'comment' , 'sequence' , 'notification' ), true , true ); ?>
2018-04-19 11:42:20 +00:00
< ? php $this -> showConfigText ( 'settings_viewOnlineFileTypes' , 'viewOnlineFileTypes' , 'array' ); ?>
< ? php $this -> showConfigText ( 'settings_editOnlineFileTypes' , 'editOnlineFileTypes' , 'array' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableConverting' , 'enableConverting' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableEmail' , 'enableEmail' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableUsersView' , 'enableUsersView' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableFullSearch' , 'enableFullSearch' ); ?>
< ? php $this -> showConfigText ( 'settings_maxSizeForFullText' , 'maxSizeForFullText' ); ?>
2020-09-09 17:49:15 +00:00
< ? php
$fullsearchengines = array (
'lucene' => 'settings_fullSearchEngine_vallucene' ,
'sqlitefts' => 'settings_fullSearchEngine_valsqlitefts'
);
if (( $kkk = $this -> callHook ( 'getFullSearchEngine' )) && is_array ( $kkk ))
$fullsearchengines = array_merge ( $fullsearchengines , $kkk );
?>
< ? php $this -> showConfigOption ( 'settings_fullSearchEngine' , 'fullSearchEngine' , $fullsearchengines , false , true ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigOption ( 'settings_defaultSearchMethod' , 'defaultSearchMethod' , array ( 'database' => 'settings_defaultSearchMethod_valdatabase' , 'fulltext' => 'settings_defaultSearchMethod_valfulltext' ), false , true ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_showSingleSearchHit' , 'showSingleSearchHit' ); ?>
2023-04-22 17:40:41 +00:00
< ? php $this -> showConfigOption ( 'settings_suggestTerms' , 'suggestTerms' , array ( 'title' , 'comment' , 'keywords' , 'content' ), true , true ); ?>
2024-04-30 08:46:27 +00:00
< ? php $this -> showConfigOption ( 'settings_batchOperations' , 'batchOperations' , array ( 'export' => 'batch_export' , 'change_category' => 'batch_change_category' , 'change_owner' => 'batch_change_owner' , 'add_reviewer' => 'batch_add_reviewer' , 'add_approver' => 'batch_add_approver' , 'change_category' => 'batch_change_category' ), true , true ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_stopWordsFile' , 'stopWordsFile' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableClipboard' , 'enableClipboard' ); ?>
2024-04-15 15:37:20 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_alwaysShowClipboard' , 'alwaysShowClipboard' ); ?>
2024-04-25 16:33:05 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableMenuTransmittals' , 'enableMenuTransmittals' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableMenuTasks' , 'enableMenuTasks' ); ?>
2024-04-15 15:37:20 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_alwaysShowMenuTasks' , 'alwaysShowMenuTasks' ); ?>
2020-10-23 15:56:11 +00:00
< ? php $this -> showConfigOption ( 'settings_tasksInMenu' , 'tasksInMenu' , array ( 'review' => 'settings_tasksInMenu_review' , 'approval' => 'settings_tasksInMenu_approval' , 'workflow' => 'settings_tasksInMenu_workflow' , 'receipt' => 'settings_tasksInMenu_receipt' , 'revision' => 'settings_tasksInMenu_revision' , 'needscorrection' => 'settings_tasksInMenu_needscorrection' , 'rejected' => 'settings_tasksInMenu_rejected' , 'checkedout' => 'settings_tasksInMenu_checkedout' ), true , true ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableDropFolderList' , 'enableDropFolderList' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableSessionList' , 'enableSessionList' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableDropUpload' , 'enableDropUpload' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableMultiUpload' , 'enableMultiUpload' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableFolderTree' , 'enableFolderTree' ); ?>
< ? php $this -> showConfigOption ( 'settings_expandFolderTree' , 'expandFolderTree' , array ( ' 0' => 'settings_expandFolderTree_val0' , ' 1' => 'settings_expandFolderTree_val1' , ' 2' => 'settings_expandFolderTree_val2' ), false , true ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableRecursiveCount' , 'enableRecursiveCount' ); ?>
< ? php $this -> showConfigText ( 'settings_maxRecursiveCount' , 'maxRecursiveCount' ); ?>
2023-05-13 10:07:47 +00:00
< ? php $this -> showConfigText ( 'settings_daysPastDashboard' , 'daysPastDashboard' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableLanguageSelector' , 'enableLanguageSelector' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableHelp' , 'enableHelp' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableThemeSelector' , 'enableThemeSelector' ); ?>
< ? php $this -> showConfigOption ( 'settings_sortUsersInList' , 'sortUsersInList' , array ( ' ' => 'settings_sortUsersInList_val_login' , 'fullname' => 'settings_sortUsersInList_val_fullname' ), false , true ); ?>
< ? php $this -> showConfigOption ( 'settings_sortFoldersDefault' , 'sortFoldersDefault' , array ( 'u' => 'settings_sortFoldersDefault_val_unsorted' , 's' => 'settings_sortFoldersDefault_val_sequence' , 'n' => 'settings_sortFoldersDefault_val_name' ), false , true ); ?>
< ? php $this -> showConfigOption ( 'settings_defaultDocPosition' , 'defaultDocPosition' , array ( 'end' => 'settings_defaultDocPosition_val_end' , 'start' => 'settings_defaultDocPosition_val_start' ), false , true ); ?>
2021-09-22 07:53:53 +00:00
< ? php $this -> showConfigOption ( 'settings_defaultFolderPosition' , 'defaultFolderPosition' , array ( 'end' => 'settings_defaultDocPosition_val_end' , 'start' => 'settings_defaultDocPosition_val_start' ), false , true ); ?>
2021-07-02 07:28:05 +00:00
< ? php $this -> showConfigFolder ( 'settings_libraryFolder' , 'libraryFolder' ); ?>
2012-12-14 07:53:13 +00:00
2018-04-12 04:41:51 +00:00
<!--
-- SETTINGS - SITE - WEBDAV
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_webdav' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableWebdavReplaceDoc' , 'enableWebdavReplaceDoc' ); ?>
2018-04-12 04:41:51 +00:00
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - SITE - CALENDAR
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Calendar' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableCalendar' , 'enableCalendar' ); ?>
< ? php $this -> showConfigOption ( 'settings_calendarDefaultView' , 'calendarDefaultView' , array ( 'w' => 'week_view' , 'm' => 'month_view' , 'y' => 'year_view' ), false , true ); ?>
< ? php $this -> showConfigOption ( 'settings_firstDayOfWeek' , 'firstDayOfWeek' , array ( ' 0' => 'sunday' , ' 1' => 'monday' , ' 2' => 'tuesday' , ' 3' => 'wednesday' , ' 4' => 'thursday' , ' 5' => 'friday' , ' 6' => 'saturday' ), false , true ); ?>
2021-09-09 09:42:38 +00:00
<!--
-- SETTINGS - SITE - EXTENSIONMGR
-->
< ? php $this -> showConfigHeadline ( 'settings_ExtensionMgr' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableExtensionDownload' , 'enableExtensionDownload' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableExtensionImport' , 'enableExtensionImport' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableExtensionImportFromRepository' , 'enableExtensionImportFromRepository' ); ?>
2018-04-19 11:42:20 +00:00
< ? php
$this -> showEndPaneContent ( 'site' , $currenttab );
2012-12-14 07:53:13 +00:00
2018-04-19 11:42:20 +00:00
$this -> showStartPaneContent ( 'system' , $currenttab == 'system' );
?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - SYSTEM - SERVER
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Server' ); ?>
< ? php $this -> showConfigText ( 'settings_rootDir' , 'rootDir' ); ?>
2023-01-26 12:29:46 +00:00
< ? php $this -> showConfigText ( 'settings_baseUrl' , 'baseUrl' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_httpRoot' , 'httpRoot' ); ?>
< ? php $this -> showConfigText ( 'settings_contentDir' , 'contentDir' ); ?>
< ? php $this -> showConfigText ( 'settings_backupDir' , 'backupDir' ); ?>
< ? php $this -> showConfigText ( 'settings_cacheDir' , 'cacheDir' ); ?>
< ? php $this -> showConfigText ( 'settings_stagingDir' , 'stagingDir' ); ?>
< ? php $this -> showConfigText ( 'settings_luceneDir' , 'luceneDir' ); ?>
< ? php $this -> showConfigText ( 'settings_dropFolderDir' , 'dropFolderDir' ); ?>
2018-04-17 19:02:49 +00:00
< ? php $this -> showConfigText ( 'settings_checkOutDir' , 'checkOutDir' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_createCheckOutDir' , 'createCheckOutDir' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_repositoryUrl' , 'repositoryUrl' ); ?>
2020-02-21 09:01:09 +00:00
< ? php $this -> showConfigText ( 'settings_proxyUrl' , 'proxyUrl' ); ?>
< ? php $this -> showConfigText ( 'settings_proxyUser' , 'proxyUser' ); ?>
< ? php $this -> showConfigText ( 'settings_proxyUPassword' , 'proxyPassword' , 'password' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_logFileEnable' , 'logFileEnable' ); ?>
< ? php $this -> showConfigOption ( 'settings_logFileRotation' , 'logFileRotation' , array ( 'h' => 'hourly' , 'd' => 'daily' , 'm' => 'monthly' ), false , true ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableLargeFileUpload' , 'enableLargeFileUpload' ); ?>
< ? php $this -> showConfigText ( 'settings_partitionSize' , 'partitionSize' ); ?>
< ? php $this -> showConfigText ( 'settings_maxUploadSize' , 'maxUploadSize' ); ?>
2019-01-18 12:07:39 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableXsendfile' , 'enableXsendfile' ); ?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - SYSTEM - AUTHENTICATION
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Authentication' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableGuestLogin' , 'enableGuestLogin' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableGuestAutoLogin' , 'enableGuestAutoLogin' ); ?>
2018-04-17 19:02:49 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enable2FactorAuthentication' , 'enable2FactorAuthentication' ); ?>
2024-03-20 16:05:41 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableLoginByEmail' , 'enableLoginByEmail' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_restricted' , 'restricted' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableUserImage' , 'enableUserImage' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_disableSelfEdit' , 'disableSelfEdit' ); ?>
2023-08-25 10:34:09 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_disableChangePassword' , 'disableChangePassword' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enablePasswordForgotten' , 'enablePasswordForgotten' ); ?>
< ? php $this -> showConfigText ( 'settings_passwordStrength' , 'passwordStrength' ); ?>
< ? php $this -> showConfigOption ( 'settings_passwordStrengthAlgorithm' , 'passwordStrengthAlgorithm' , array ( 'simple' => 'settings_passwordStrengthAlgorithm_valsimple' , 'advanced' => 'settings_passwordStrengthAlgorithm_valadvanced' ), false , true ); ?>
< ? php $this -> showConfigText ( 'settings_passwordExpiration' , 'passwordExpiration' ); ?>
< ? php $this -> showConfigText ( 'settings_passwordHistory' , 'passwordHistory' ); ?>
< ? php $this -> showConfigText ( 'settings_loginFailure' , 'loginFailure' ); ?>
2020-08-19 12:18:01 +00:00
< ? php $this -> showConfigUser ( 'settings_autoLoginUser' , 'autoLoginUser' , true ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_quota' , 'quota' ); ?>
2020-08-19 11:21:51 +00:00
< ? php $this -> showConfigUser ( 'settings_undelUserIds' , 'undelUserIds' , true , true ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_encryptionKey' , 'encryptionKey' ); ?>
< ? php $this -> showConfigText ( 'settings_cookieLifetime' , 'cookieLifetime' ); ?>
< ? php $this -> showConfigOption ( 'settings_defaultAccessDocs' , 'defaultAccessDocs' , array ( ' 0' => 'inherited' , ' ' . M_NONE => 'access_mode_none' , ' ' . M_READ => 'access_mode_read' , ' ' . M_READWRITE => 'access_mode_readwrite' ), false , true ); ?>
2012-12-14 07:53:13 +00:00
<!-- TODO Connectors -->
<!--
-- SETTINGS - SYSTEM - DATABASE
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Database' ); ?>
< ? php $this -> showConfigText ( 'settings_dbDriver' , 'dbDriver' ); ?>
< ? php $this -> showConfigText ( 'settings_dbHostname' , 'dbHostname' ); ?>
< ? php $this -> showConfigText ( 'settings_dbDatabase' , 'dbDatabase' ); ?>
< ? php $this -> showConfigText ( 'settings_dbUser' , 'dbUser' ); ?>
2018-04-19 11:42:20 +00:00
< ? php $this -> showConfigText ( 'settings_dbPass' , 'dbPass' , 'password' ); ?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - SYSTEM - SMTP
2018-04-17 19:02:49 +00:00
-->
2018-04-19 11:42:20 +00:00
< ? php $this -> showConfigHeadline ( 'settings_SMTP' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_smtpServer' , 'smtpServer' ); ?>
< ? php $this -> showConfigText ( 'settings_smtpPort' , 'smtpPort' ); ?>
< ? php $this -> showConfigText ( 'settings_smtpSendFrom' , 'smtpSendFrom' ); ?>
< ? php $this -> showConfigText ( 'settings_smtpUser' , 'smtpUser' ); ?>
2018-04-19 11:42:20 +00:00
< ? php $this -> showConfigText ( 'settings_smtpPassword' , 'smtpPassword' , 'password' ); ?>
2021-05-06 13:08:33 +00:00
< ? php $this -> showConfigPlain ( htmlspecialchars ( getMLText ( 'settings_smtpSendTestMail' )), htmlspecialchars ( getMLText ( 'settings_smtpSendTestMail_desc' )), '<a class="btn btn-secondary sendtestmail">' . getMLText ( 'send_test_mail' ) . '</a><div><pre id="maildebug">You will see debug messages here</pre></div>' ); ?>
2018-04-19 11:42:20 +00:00
< ? php
$this -> showEndPaneContent ( 'system' , $currenttab );
2012-12-14 07:53:13 +00:00
2018-04-19 11:42:20 +00:00
$this -> showStartPaneContent ( 'advanced' , $currenttab == 'advanced' );
?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - ADVANCED - DISPLAY
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Display' ); ?>
< ? php $this -> showConfigText ( 'settings_siteDefaultPage' , 'siteDefaultPage' ); ?>
< ? php $this -> showConfigText ( 'settings_rootFolderID' , 'rootFolderID' ); ?>
2020-12-18 07:06:01 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_useHomeAsRootFolder' , 'useHomeAsRootFolder' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_showMissingTranslations' , 'showMissingTranslations' ); ?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - ADVANCED - AUTHENTICATION
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Authentication' ); ?>
2020-08-19 11:21:51 +00:00
< ? php $this -> showConfigUser ( 'settings_guestID' , 'guestID' , true ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_adminIP' , 'adminIP' ); ?>
2020-06-17 09:19:02 +00:00
< ? php $this -> showConfigText ( 'settings_apiKey' , 'apiKey' ); ?>
2020-08-19 11:21:51 +00:00
< ? php //$this->showConfigText('settings_apiUserId', 'apiUserId'); ?>
< ? php $this -> showConfigUser ( 'settings_apiUserId' , 'apiUserId' , true ); ?>
2020-06-17 09:19:02 +00:00
< ? php $this -> showConfigText ( 'settings_apiOrigin' , 'apiOrigin' ); ?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - ADVANCED - EDITION
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Edition' ); ?>
2019-12-19 15:08:10 +00:00
< ? php $this -> showConfigOption ( 'settings_workflowMode' , 'workflowMode' , array ( 'traditional' => 'settings_workflowMode_valtraditional' , 'traditional_only_approval' => 'settings_workflowMode_valtraditional_only_approval' , 'advanced' => 'settings_workflowMode_valadvanced' , 'none' => 'settings_workflowMode_valnone' ), false , true ); ?>
2018-04-17 19:02:49 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableReceiptWorkflow' , 'enableReceiptWorkflow' ); ?>
2019-04-09 08:51:51 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableReceiptReject' , 'enableReceiptReject' ); ?>
2018-04-17 19:02:49 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableRevisionWorkflow' , 'enableRevisionWorkflow' ); ?>
2019-10-18 05:24:58 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableRevisionOneVoteReject' , 'enableRevisionOneVoteReject' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigText ( 'settings_versioningFileName' , 'versioningFileName' ); ?>
< ? php $this -> showConfigText ( 'settings_presetExpirationDate' , 'presetExpirationDate' ); ?>
2018-04-17 19:02:49 +00:00
< ? php $this -> showConfigOption ( 'settings_initialDocumentStatus' , 'initialDocumentStatus' , array ( ' ' . S_RELEASED => 'settings_initialDocumentStatus_released' , ' ' . S_DRAFT => 'settings_initialDocumentStatus_draft' ), false , true ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_allowReviewerOnly' , 'allowReviewerOnly' ); ?>
2019-02-01 07:59:43 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_allowChangeRevAppInProcess' , 'allowChangeRevAppInProcess' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableAdminRevApp' , 'enableAdminRevApp' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableOwnerRevApp' , 'enableOwnerRevApp' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableSelfRevApp' , 'enableSelfRevApp' ); ?>
2023-10-15 15:30:26 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableHiddenRevApp' , 'enableHiddenRevApp' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableUpdateRevApp' , 'enableUpdateRevApp' ); ?>
2021-07-01 10:14:55 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableRemoveRevApp' , 'enableRemoveRevApp' ); ?>
2018-04-17 19:02:49 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableSelfReceipt' , 'enableSelfReceipt' ); ?>
2023-10-15 15:38:22 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableHiddenReceipt' , 'enableHiddenReceipt' ); ?>
2018-04-17 19:02:49 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableAdminReceipt' , 'enableAdminReceipt' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableOwnerReceipt' , 'enableOwnerReceipt' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableUpdateReceipt' , 'enableUpdateReceipt' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableFilterReceipt' , 'enableFilterReceipt' ); ?>
2024-02-08 20:02:12 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_addManagerAsReviewer' , 'addManagerAsReviewer' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_addManagerAsApprover' , 'addManagerAsApprover' ); ?>
< ? php $this -> showConfigUser ( 'settings_globalReviewer' , 'globalReviewer' , true , true ); ?>
< ? php $this -> showConfigUser ( 'settings_globalApprover' , 'globalApprover' , true , true ); ?>
2024-02-12 13:06:53 +00:00
< ? php $this -> showConfigGroup ( 'settings_globalGroupReviewer' , 'globalGroupReviewer' , true , true ); ?>
< ? php $this -> showConfigGroup ( 'settings_globalGroupApprover' , 'globalGroupApprover' , true , true ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableVersionDeletion' , 'enableVersionDeletion' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableVersionModification' , 'enableVersionModification' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableDuplicateDocNames' , 'enableDuplicateDocNames' ); ?>
2019-07-01 08:50:40 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableDuplicateSubFolderNames' , 'enableDuplicateSubFolderNames' ); ?>
2020-11-26 08:14:03 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableCancelCheckout' , 'enableCancelCheckout' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_overrideMimeType' , 'overrideMimeType' ); ?>
2018-04-17 19:02:49 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_advancedAcl' , 'advancedAcl' ); ?>
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_removeFromDropFolder' , 'removeFromDropFolder' ); ?>
2023-05-03 14:24:33 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_uploadedAttachmentIsPublic' , 'uploadedAttachmentIsPublic' ); ?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - ADVANCED - NOTIFICATION
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Notification' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableOwnerNotification' , 'enableOwnerNotification' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableNotificationAppRev' , 'enableNotificationAppRev' ); ?>
< ? php $this -> showConfigCheckbox ( 'settings_enableNotificationWorkflow' , 'enableNotificationWorkflow' ); ?>
2012-12-14 07:53:13 +00:00
<!--
-- SETTINGS - ADVANCED - SERVER
-->
2018-04-17 16:34:30 +00:00
< ? php $this -> showConfigHeadline ( 'settings_Server' ); ?>
< ? php $this -> showConfigText ( 'settings_coreDir' , 'coreDir' ); ?>
< ? php $this -> showConfigText ( 'settings_luceneClassDir' , 'luceneClassDir' ); ?>
< ? php $this -> showConfigText ( 'settings_extraPath' , 'extraPath' ); ?>
< ? php $this -> showConfigText ( 'settings_contentOffsetDir' , 'contentOffsetDir' ); ?>
< ? php $this -> showConfigText ( 'settings_maxDirID' , 'maxDirID' ); ?>
< ? php $this -> showConfigText ( 'settings_updateNotifyTime' , 'updateNotifyTime' ); ?>
< ? php $this -> showConfigText ( 'settings_maxExecutionTime' , 'maxExecutionTime' ); ?>
< ? php $this -> showConfigText ( 'settings_cmdTimeout' , 'cmdTimeout' ); ?>
2020-02-27 16:58:31 +00:00
< ? php $this -> showConfigCheckbox ( 'settings_enableDebugMode' , 'enableDebugMode' ); ?>
2012-12-14 07:53:13 +00:00
< ? php
2017-11-21 17:12:58 +00:00
foreach ( array ( 'fulltext' , 'preview' , 'pdf' ) as $target ) {
2018-04-17 16:34:30 +00:00
$this -> showConfigHeadline ( $target . " _converters " );
2018-01-09 14:32:08 +00:00
if ( ! empty ( $settings -> _converters [ $target ])) {
foreach ( $settings -> _converters [ $target ] as $mimetype => $cmd ) {
2018-04-19 11:42:20 +00:00
$this -> showConfigPlain ( htmlspecialchars ( $mimetype ), htmlspecialchars ( $mimetype ), $this -> getTextField ( " converters[ " . $target . " ][ " . $mimetype . " ] " , htmlspecialchars ( $cmd )));
2018-01-09 14:32:08 +00:00
}
}
2018-04-19 11:42:20 +00:00
$this -> showConfigPlain ( $this -> getTextField ( " converters[ " . $target . " ][newmimetype] " , " " , '' , getMLText ( 'converter_new_mimetype' )), '' , $this -> getTextField ( " converters[ " . $target . " ][newcmd] " , " " , " " , getMLText ( 'converter_new_cmd' )));
2017-11-21 16:34:24 +00:00
}
2018-04-19 11:42:20 +00:00
$this -> showEndPaneContent ( 'advanced' , $currenttab );
2013-05-02 20:32:11 +00:00
2018-04-19 11:42:20 +00:00
$this -> showStartPaneContent ( 'extensions' , $currenttab == 'extensions' );
?>
2013-05-02 20:32:11 +00:00
<!--
-- SETTINGS - ADVANCED - DISPLAY
-->
< ? php
2023-01-17 11:31:55 +00:00
foreach ( $extmgr -> getExtensionConfiguration () as $extname => $extconf ) {
2024-04-08 16:01:29 +00:00
if ( $extconf [ 'config' ])
echo '<a class="scrollto" data-target="#' . $extname . '">' . $extconf [ 'title' ] . " </a> ● " ;
2023-01-17 11:31:55 +00:00
}
2020-01-03 09:21:58 +00:00
foreach ( $extmgr -> getExtensionConfiguration () as $extname => $extconf ) {
2019-10-23 07:06:19 +00:00
if ( $this -> hasHook ( 'processConfig' ))
$extconf = $this -> callHook ( 'processConfig' , $extname , $extconf );
2021-12-15 07:39:11 +00:00
if ( $this -> isVisible ( $extname . '|' )) {
if ( $extconf [ 'config' ]) {
2023-01-17 11:31:55 +00:00
$this -> showRawConfigHeadline ( " <a id= \" " . $extname . " \" name= \" " . $extname . " \" ></a> " . '<input type="hidden" name="extensions[' . $extname . '][__disable__]" value="' . ( isset ( $settings -> _extensions [ $extname ][ " __disable__ " ]) && $settings -> _extensions [ $extname ][ " __disable__ " ] ? '1' : '' ) . '" /><i class="fa fa-circle' . ( isset ( $settings -> _extensions [ $extname ][ " __disable__ " ]) && $settings -> _extensions [ $extname ][ " __disable__ " ] ? ' disabled' : ' enabled' ) . '"></i> <span title="' . $extname . '">' . $extconf [ 'title' ] . '</span>' );
2021-12-15 07:39:11 +00:00
foreach ( $extconf [ 'config' ] as $confkey => $conf ) {
ob_start ();
if ( $this -> isVisible ( $extname . '|' . $confkey )) {
2013-05-02 20:32:11 +00:00
switch ( $conf [ 'type' ]) {
case 'checkbox' :
?>
2022-02-22 16:53:17 +00:00
< input type = " hidden " name = " <?php echo " extensions [ " . $extname . " ][ " . $confkey . " ] " ; ?> " value = " " >< input type = " checkbox " name = " <?php echo " extensions [ " . $extname . " ][ " . $confkey . " ] " ; ?> " value = " 1 " < ? php if ( isset ( $settings -> _extensions [ $extname ][ $confkey ]) && $settings -> _extensions [ $extname ][ $confkey ]) echo 'checked' ; ?> />
2013-05-02 20:32:11 +00:00
< ? php
break ;
2017-04-20 07:57:16 +00:00
case 'select' :
2024-04-19 15:18:28 +00:00
$allowempty = empty ( $conf [ 'allow_empty' ]) ? false : $conf [ 'allow_empty' ];
2017-04-20 07:57:16 +00:00
if ( ! empty ( $conf [ 'options' ])) {
2018-12-18 08:03:57 +00:00
$selections = empty ( $settings -> _extensions [ $extname ][ $confkey ]) ? array () : explode ( " , " , $settings -> _extensions [ $extname ][ $confkey ]);
2024-04-19 15:18:28 +00:00
echo " <select class= \" chzn-select \" " . ( $allowempty ? " data-allow-clear= \" true \" " : " " ) . " name= \" extensions[ " . $extname . " ][ " . $confkey . " ][] \" " . ( ! empty ( $conf [ 'multiple' ]) ? " multiple " : " " ) . ( ! empty ( $conf [ 'size' ]) ? " size= \" " . $conf [ 'size' ] . " \" " : " " ) . " style= \" width: 100%; \" > " ;
2023-10-13 09:38:02 +00:00
if ( is_array ( $conf [ 'options' ])) {
$options = $conf [ 'options' ];
} elseif ( is_string ( $conf [ 'options' ]) && $conf [ 'options' ] == 'hook' ) {
$options = $this -> callHook ( 'getOptions' , $confkey , $extname , $extconf );
} else {
$options = [];
}
2024-04-19 15:18:28 +00:00
if ( $allowempty )
echo " <option value= \" \" ></option> " ;
2023-10-13 09:38:02 +00:00
foreach ( $options as $key => $opt ) {
2017-04-20 07:57:16 +00:00
echo " <option value= \" " . $key . " \" " ;
2018-09-25 06:54:07 +00:00
if ( in_array ( $key , $selections ))
2017-04-20 07:57:16 +00:00
echo " selected " ;
2020-08-12 05:25:35 +00:00
echo " > " . htmlspecialchars ( getMLText ( $extname . '_' . $opt , array (), $opt )) . " </option> " ;
2017-01-23 06:53:01 +00:00
}
2017-04-20 07:57:16 +00:00
echo " </select> " ;
} elseif ( ! empty ( $conf [ 'internal' ])) {
$selections = empty ( $settings -> _extensions [ $extname ][ $confkey ]) ? array () : explode ( " , " , $settings -> _extensions [ $extname ][ $confkey ]);
switch ( $conf [ 'internal' ]) {
case " categories " :
$categories = $dms -> getDocumentCategories ();
if ( $categories ) {
2022-09-10 14:35:07 +00:00
echo " <select class= \" chzn-select \" " . ( $allowempty ? " data-allow-clear= \" true \" " : " " ) . " \" name= \" extensions[ " . $extname . " ][ " . $confkey . " ][] \" " . ( ! empty ( $conf [ 'multiple' ]) ? " multiple " : " " ) . ( ! empty ( $conf [ 'size' ]) ? " size= \" " . $conf [ 'size' ] . " \" " : " " ) . " data-placeholder= \" " . getMLText ( " select_category " ) . " \" style= \" width: 100%; \" > " ;
2018-02-06 16:03:35 +00:00
if ( $allowempty )
echo " <option value= \" \" ></option> " ;
2017-04-20 07:57:16 +00:00
foreach ( $categories as $category ) {
echo " <option value= \" " . $category -> getID () . " \" " ;
if ( in_array ( $category -> getID (), $selections ))
echo " selected " ;
echo " > " . htmlspecialchars ( $category -> getName ()) . " </option> " ;
}
echo " </select> " ;
}
break ;
case " users " :
$users = $dms -> getAllUsers ();
if ( $users ) {
2022-09-10 14:35:07 +00:00
echo " <select class= \" chzn-select \" " . ( $allowempty ? " data-allow-clear= \" true \" " : " " ) . " \" name= \" extensions[ " . $extname . " ][ " . $confkey . " ][] \" " . ( ! empty ( $conf [ 'multiple' ]) ? " multiple " : " " ) . ( ! empty ( $conf [ 'size' ]) ? " size= \" " . $conf [ 'size' ] . " \" " : " " ) . " data-placeholder= \" " . getMLText ( " select_user " ) . " \" style= \" width: 100%; \" > " ;
2018-02-06 16:03:35 +00:00
if ( $allowempty )
echo " <option value= \" \" ></option> " ;
2017-04-20 07:57:16 +00:00
foreach ( $users as $curuser ) {
echo " <option value= \" " . $curuser -> getID () . " \" " ;
if ( in_array ( $curuser -> getID (), $selections ))
echo " selected " ;
echo " > " . htmlspecialchars ( $curuser -> getLogin () . " - " . $curuser -> getFullName ()) . " </option> " ;
}
echo " </select> " ;
}
break ;
2017-04-21 15:19:31 +00:00
case " groups " :
$recs = $dms -> getAllGroups ();
if ( $recs ) {
2022-09-10 14:35:07 +00:00
echo " <select class= \" chzn-select \" " . ( $allowempty ? " data-allow-clear= \" true \" " : " " ) . " \" name= \" extensions[ " . $extname . " ][ " . $confkey . " ][] \" " . ( ! empty ( $conf [ 'multiple' ]) ? " multiple " : " " ) . ( ! empty ( $conf [ 'size' ]) ? " size= \" " . $conf [ 'size' ] . " \" " : " " ) . " data-placeholder= \" " . getMLText ( " select_group " ) . " \" style= \" width: 100%; \" > " ;
2018-02-06 16:03:35 +00:00
if ( $allowempty )
echo " <option value= \" \" ></option> " ;
2017-04-21 15:19:31 +00:00
foreach ( $recs as $rec ) {
echo " <option value= \" " . $rec -> getID () . " \" " ;
if ( in_array ( $rec -> getID (), $selections ))
echo " selected " ;
echo " > " . htmlspecialchars ( $rec -> getName ()) . " </option> " ;
}
echo " </select> " ;
}
break ;
case " attributedefinitions " :
2022-05-20 10:04:24 +00:00
$objtype = empty ( $conf [ 'objtype' ]) ? 0 : $conf [ 'objtype' ];
$attrtype = empty ( $conf [ 'attrtype' ]) ? 0 : $conf [ 'attrtype' ];
2022-07-06 07:16:47 +00:00
$recs = $dms -> getAllAttributeDefinitions ( $objtype , $attrtype );
2017-04-21 15:19:31 +00:00
if ( $recs ) {
2022-09-12 07:37:05 +00:00
echo " <select class= \" chzn-select \" " . ( $allowempty ? " data-allow-clear= \" true \" " : " " ) . " \" name= \" extensions[ " . $extname . " ][ " . $confkey . " ][] \" " . ( ! empty ( $conf [ 'multiple' ]) ? " multiple " : " " ) . ( ! empty ( $conf [ 'size' ]) ? " size= \" " . $conf [ 'size' ] . " \" " : " " ) . " data-placeholder= \" " . getMLText ( " select_attrdef " ) . " \" data-no_results_text= \" " . getMLText ( 'unknown_attrdef' ) . " \" style= \" width: 100%; \" > " ;
2018-02-06 16:03:35 +00:00
if ( $allowempty )
echo " <option value= \" \" ></option> " ;
2017-04-21 15:19:31 +00:00
foreach ( $recs as $rec ) {
echo " <option value= \" " . $rec -> getID () . " \" " ;
if ( in_array ( $rec -> getID (), $selections ))
echo " selected " ;
2023-01-26 19:58:47 +00:00
echo " data-subtitle= \" " . htmlspecialchars ( getAttributeObjectTypeText ( $rec ) . " , " . getAttributeTypeText ( $rec )) . " \" > " . htmlspecialchars ( $rec -> getName ()) . " </option> " ;
2017-04-21 15:19:31 +00:00
}
echo " </select> " ;
2020-08-05 16:52:44 +00:00
} else {
printMLText ( 'no_attribute_definitions' );
2017-04-21 15:19:31 +00:00
}
break ;
2020-10-08 19:58:20 +00:00
case " workflows " :
$recs = $dms -> getAllWorkflows ();
if ( $recs ) {
2022-09-10 14:35:07 +00:00
echo " <select class= \" chzn-select \" " . ( $allowempty ? " data-allow-clear= \" true \" " : " " ) . " \" name= \" extensions[ " . $extname . " ][ " . $confkey . " ][] \" " . ( ! empty ( $conf [ 'multiple' ]) ? " multiple " : " " ) . ( ! empty ( $conf [ 'size' ]) ? " size= \" " . $conf [ 'size' ] . " \" " : " " ) . " data-placeholder= \" " . getMLText ( " select_attribute_value " ) . " \" style= \" width: 100%; \" > " ;
2020-10-08 19:58:20 +00:00
if ( $allowempty )
echo " <option value= \" \" ></option> " ;
foreach ( $recs as $rec ) {
echo " <option value= \" " . $rec -> getID () . " \" " ;
if ( in_array ( $rec -> getID (), $selections ))
echo " selected " ;
echo " > " . htmlspecialchars ( $rec -> getName ()) . " </option> " ;
}
echo " </select> " ;
} else {
printMLText ( 'no_workflows' );
}
break ;
2018-08-27 06:22:39 +00:00
case " folders " :
$this -> formField ( null , $this -> getFolderChooserHtml ( " form " . $extname . $confkey , M_READ , - 1 , $selections ? $dms -> getFolder ( $selections [ 0 ]) : 0 , 'extensions[' . $extname . " ][ " . $confkey . " ] " ));
break ;
2023-02-24 12:26:40 +00:00
case " documents " :
2023-02-24 13:20:33 +00:00
$this -> formField ( null , $this -> getDocumentChooserHtml ( " form " . $extname . $confkey , M_READ , - 1 , $selections ? $dms -> getDocument ( $selections [ 0 ]) : 0 , 'extensions[' . $extname . " ][ " . $confkey . " ] " ));
2023-02-24 12:26:40 +00:00
break ;
2017-01-23 06:53:01 +00:00
}
}
break ;
2019-10-23 07:06:19 +00:00
case 'hook' :
echo $this -> callHook ( 'showConfig' , $confkey , $extname , $extconf );
break ;
2023-09-27 09:30:45 +00:00
case " date " :
$this -> formField (
null ,
$this -> getDateChooser (( isset ( $settings -> _extensions [ $extname ][ $confkey ]) ? getReadableDate ( $settings -> _extensions [ $extname ][ $confkey ]) : '' ), " extensions[ " . $extname . " ][ " . $confkey . " ] " , $this -> params [ 'session' ] -> getLanguage ())
);
break ;
2013-05-02 20:32:11 +00:00
default :
2018-12-13 17:24:34 +00:00
$this -> showTextField ( " extensions[ " . $extname . " ][ " . $confkey . " ] " , isset ( $settings -> _extensions [ $extname ][ $confkey ]) ? $settings -> _extensions [ $extname ][ $confkey ] : '' , isset ( $conf [ 'type' ]) ? $conf [ 'type' ] : '' , isset ( $conf [ 'placeholder' ]) ? $conf [ 'placeholder' ] : '' );
2013-05-02 20:32:11 +00:00
}
2021-12-15 07:39:11 +00:00
} else {
echo getMLText ( 'settings_conf_field_not_editable' );
2013-05-02 20:32:11 +00:00
}
2021-12-15 07:39:11 +00:00
$html = ob_get_clean ();
$this -> showConfigPlain ( $conf [ 'title' ], isset ( $conf [ 'help' ]) ? $conf [ 'help' ] : '' , $html );
}
} else {
/* Even no configuration exists , output the input field to enable / disable
* the extension . Otherwise it will be enabled each time the config is
* saved .
*/
echo '<input type="hidden" name="extensions[' . $extname . '][__disable__]" value="' . ( isset ( $settings -> _extensions [ $extname ][ " __disable__ " ]) && $settings -> _extensions [ $extname ][ " __disable__ " ] ? '1' : '' ) . '" />' . " \n " ;
}
2018-04-19 17:48:20 +00:00
}
}
2018-04-19 11:42:20 +00:00
$this -> showEndPaneContent ( 'extensions' , $currenttab );
2013-05-02 20:32:11 +00:00
?>
2012-12-14 07:53:13 +00:00
</ div >
< ? php
if ( is_writeable ( $settings -> _configFilePath )) {
2022-12-10 12:01:46 +00:00
$this -> formSubmit ( " <i class= \" fa fa-save \" ></i> " . getMLText ( 'save' ));
2012-12-14 07:53:13 +00:00
}
?>
</ form >
< ? php
2021-05-27 19:57:12 +00:00
$this -> columnEnd ();
$this -> columnStart ( 4 );
if ( ! is_writeable ( $settings -> _configFilePath )) {
$this -> warningMsg ( getMLText ( " settings_notwritable " ));
}
if ( $settings -> _enableGuestLogin && $settings -> _guestID ) {
$guest = $dms -> getUser (( int ) $settings -> _guestID );
if ( ! $guest ) {
$this -> warningMsg ( getMLText ( " settings_invalid_guestid " ));
} elseif ( $guest -> isDisabled ()) {
$this -> warningMsg ( getMLText ( " settings_guestid_is_disabled " ));
} elseif ( $guest -> isAdmin ()) {
$this -> warningMsg ( getMLText ( " settings_guestid_is_admin " ));
}
}
2021-06-26 09:56:25 +00:00
$mus2 = SeedDMS_Core_File :: parse_filesize ( ini_get ( " upload_max_filesize " ));
$mus1 = SeedDMS_Core_File :: parse_filesize ( $settings -> _partitionSize );
if ( $settings -> _enableLargeFileUpload && $mus2 < $mus1 ) {
$this -> warningMsg ( getMLText ( " settings_partionsize_below_max_filesize " ));
}
2023-04-28 09:23:01 +00:00
2024-02-12 13:06:53 +00:00
/* Check if globally defined reviewer/approvers are admins */
if ( ! $settings -> _enableAdminRevApp ) {
foreach ( $settings -> _globalReviewer as $uid ) {
$u = $dms -> getUser ( $uid );
if ( $u -> isAdmin ()) {
$this -> warningMsg ( getMLText ( " settings_global_reviewer_is_admin " , [ 'login' => $u -> getLogin ()]));
}
}
foreach ( $settings -> _globalReviewer as $uid ) {
$u = $dms -> getUser ( $uid );
if ( $u -> isAdmin ()) {
$this -> warningMsg ( getMLText ( " settings_global_approver_is_admin " , [ 'login' => $u -> getLogin ()]));
}
}
}
2023-04-28 09:23:01 +00:00
foreach ( $extmgr -> getExtensionConfiguration () as $extname => $extconf ) {
if ( $this -> hasHook ( 'checkConfig' ))
$this -> callHook ( 'checkConfig' , $extname , $extconf );
}
2021-05-27 19:57:12 +00:00
$this -> columnEnd ( 4 );
$this -> rowEnd ( 4 );
2016-03-15 07:30:53 +00:00
$this -> contentEnd ();
2012-12-14 07:53:13 +00:00
$this -> htmlEndPage ();
} /* }}} */
}
?>