mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
32b6445904
|
@ -206,6 +206,14 @@ module.exports = function (grunt) {
|
||||||
],
|
],
|
||||||
dest: bootstrapDir + '/spectrum-colorpicker2',
|
dest: bootstrapDir + '/spectrum-colorpicker2',
|
||||||
flatten: true
|
flatten: true
|
||||||
|
},{
|
||||||
|
expand: true,
|
||||||
|
src: [
|
||||||
|
nodeDir + '/jquery-lazy/jquery.lazy.min.js',
|
||||||
|
nodeDir + '/jquery-lazy/jquery.lazy.plugins.js'
|
||||||
|
],
|
||||||
|
dest: bootstrapDir + '/jquery-lazy',
|
||||||
|
flatten: true
|
||||||
},{
|
},{
|
||||||
expand: true,
|
expand: true,
|
||||||
src: [
|
src: [
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
@ -35,7 +35,7 @@ $categories = $dms->getDocumentCategories();
|
||||||
|
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||||
if($view) {
|
if ($view) {
|
||||||
$view->setParam('categories', $categories);
|
$view->setParam('categories', $categories);
|
||||||
$view->setParam('form', $form);
|
$view->setParam('form', $form);
|
||||||
$view->setParam('selcats', $selcats);
|
$view->setParam('selcats', $selcats);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
@ -32,24 +32,24 @@ $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||||
if (!$accessop->check_view_access($view, $_GET)) {
|
if (!$accessop->check_view_access($view, $_GET)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
UI::exitError(getMLText("admin_tools"), getMLText("access_denied"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$type = 'docsperuser';
|
$type = 'docsperuser';
|
||||||
if(!empty($_GET['type'])) {
|
if (!empty($_GET['type'])) {
|
||||||
$type = $_GET['type'];
|
$type = $_GET['type'];
|
||||||
}
|
}
|
||||||
if($data = $dms->getStatisticalData($type)) {
|
if ($data = $dms->getStatisticalData($type)) {
|
||||||
switch($type) {
|
switch ($type) {
|
||||||
case 'docsperstatus':
|
case 'docsperstatus':
|
||||||
foreach($data as &$rec) {
|
foreach ($data as &$rec) {
|
||||||
$rec['key'] = getOverallStatusText((int) $rec['key']);
|
$rec['key'] = getOverallStatusText((int) $rec['key']);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($view) {
|
if ($view) {
|
||||||
$view->setParam('type', $type);
|
$view->setParam('type', $type);
|
||||||
$view->setParam('data', $data);
|
$view->setParam('data', $data);
|
||||||
$view->setParam('accessobject', $accessop);
|
$view->setParam('accessobject', $accessop);
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// This file is needed because SeedDMS_View_Bootstrap::htmlEndPage() includes
|
// This file is needed because SeedDMS_View_Bootstrap::htmlEndPage() includes
|
||||||
// a file out/out.ErrorDlg.php?action=webrootjs and out/out.ErrorDlg.php?action=footerjs
|
// a file out/out.ErrorDlg.php?action=webrootjs and out/out.ErrorDlg.php?action=footerjs
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
@ -35,7 +35,7 @@ require_once("inc/inc.ClassUI.php");
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms));
|
||||||
|
|
||||||
if($view) {
|
if ($view) {
|
||||||
$view($_GET);
|
$view($_GET);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
@ -29,8 +29,8 @@ require_once("inc/inc.DBInit.php");
|
||||||
require_once("inc/inc.ClassUI.php");
|
require_once("inc/inc.ClassUI.php");
|
||||||
require_once("inc/inc.Authentication.php");
|
require_once("inc/inc.Authentication.php");
|
||||||
|
|
||||||
if(isset($_GET['action']) && $_GET['action'] == 'subtree') {
|
if (isset($_GET['action']) && $_GET['action'] == 'subtree') {
|
||||||
if (!isset($_GET["node"]) || !is_numeric($_GET["node"]) || intval($_GET["node"])<1) {
|
if (!isset($_GET["node"]) || !is_numeric($_GET["node"]) || intval($_GET["node"]) < 1) {
|
||||||
$node = $dms->getRootFolder();
|
$node = $dms->getRootFolder();
|
||||||
} else {
|
} else {
|
||||||
$node = $dms->getFolder(intval($_GET["node"]));
|
$node = $dms->getFolder(intval($_GET["node"]));
|
||||||
|
@ -47,9 +47,9 @@ if(isset($_GET['action']) && $_GET['action'] == 'subtree') {
|
||||||
|
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'rootfolderid'=>$settings->_rootFolderID));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'rootfolderid'=>$settings->_rootFolderID));
|
||||||
if($view) {
|
if ($view) {
|
||||||
$view->setParam('orderby', $settings->_sortFoldersDefault);
|
$view->setParam('orderby', $settings->_sortFoldersDefault);
|
||||||
if(isset($_GET['action']) && $_GET['action'] == 'subtree') {
|
if (isset($_GET['action']) && $_GET['action'] == 'subtree') {
|
||||||
$view->setParam('node', $node);
|
$view->setParam('node', $node);
|
||||||
} else {
|
} else {
|
||||||
$view->setParam('form', $form);
|
$view->setParam('form', $form);
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
@ -35,26 +35,26 @@ $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||||
if (!$accessop->check_view_access($view, $_GET)) {
|
if (!$accessop->check_view_access($view, $_GET)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"), false, $isajax);
|
UI::exitError(getMLText("admin_tools"), getMLText("access_denied"), false, $isajax);
|
||||||
}
|
}
|
||||||
|
|
||||||
$allUsers = $dms->getAllUsers($settings->_sortUsersInList);
|
$allUsers = $dms->getAllUsers($settings->_sortUsersInList);
|
||||||
if (is_bool($allUsers)) {
|
if (is_bool($allUsers)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("internal_error"), false, $isajax);
|
UI::exitError(getMLText("admin_tools"), getMLText("internal_error"), false, $isajax);
|
||||||
}
|
}
|
||||||
|
|
||||||
$allGroups = $dms->getAllGroups();
|
$allGroups = $dms->getAllGroups();
|
||||||
if (is_bool($allGroups)) {
|
if (is_bool($allGroups)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("internal_error"), false, $isajax);
|
UI::exitError(getMLText("admin_tools"), getMLText("internal_error"), false, $isajax);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET['groupid']) && $_GET['groupid']) {
|
if (isset($_GET['groupid']) && $_GET['groupid']) {
|
||||||
$selgroup = $dms->getGroup($_GET['groupid']);
|
$selgroup = $dms->getGroup($_GET['groupid']);
|
||||||
} else {
|
} else {
|
||||||
$selgroup = null;
|
$selgroup = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($view) {
|
if ($view) {
|
||||||
$view->setParam('selgroup', $selgroup);
|
$view->setParam('selgroup', $selgroup);
|
||||||
$view->setParam('allgroups', $allGroups);
|
$view->setParam('allgroups', $allGroups);
|
||||||
$view->setParam('allusers', $allUsers);
|
$view->setParam('allusers', $allUsers);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
@ -32,11 +32,12 @@ $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1]);
|
$view = UI::factory($theme, $tmp[1]);
|
||||||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||||
|
|
||||||
if(isset($_GET['context']))
|
if (isset($_GET['context']))
|
||||||
$context = $_GET['context'];
|
$context = $_GET['context'];
|
||||||
else
|
else
|
||||||
$context = '';
|
$context = '';
|
||||||
if($view) {
|
|
||||||
|
if ($view) {
|
||||||
$view->setParam('dms', $dms);
|
$view->setParam('dms', $dms);
|
||||||
$view->setParam('user', $user);
|
$view->setParam('user', $user);
|
||||||
$view->setParam('context', $context);
|
$view->setParam('context', $context);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
@ -32,16 +32,16 @@ $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||||
if (!$accessop->check_view_access($view, $_GET)) {
|
if (!$accessop->check_view_access($view, $_GET)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
UI::exitError(getMLText("admin_tools"), getMLText("access_denied"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["logname"])) $logname=basename($_GET["logname"], '.log').'.log';
|
if (isset($_GET["logname"])) $logname=basename($_GET["logname"], '.log').'.log';
|
||||||
else $logname=NULL;
|
else $logname=null;
|
||||||
|
|
||||||
if (isset($_GET["mode"])) $mode=$_GET["mode"];
|
if (isset($_GET["mode"])) $mode=$_GET["mode"];
|
||||||
else $mode='default';
|
else $mode='default';
|
||||||
|
|
||||||
if($view) {
|
if ($view) {
|
||||||
$view->setParam('logname', $logname);
|
$view->setParam('logname', $logname);
|
||||||
$view->setParam('mode', $mode);
|
$view->setParam('mode', $mode);
|
||||||
$view->setParam('logdir', $settings->_contentDir.'log/');
|
$view->setParam('logdir', $settings->_contentDir.'log/');
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
* @link https://www.seeddms.org Main Site
|
* @link https://www.seeddms.org Main Site
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(!isset($settings)) {
|
if (!isset($settings)) {
|
||||||
require_once "../inc/inc.Settings.php");
|
require_once "../inc/inc.Settings.php");
|
||||||
}
|
}
|
||||||
require_once "inc/inc.Utils.php";
|
require_once "inc/inc.Utils.php";
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
if(!isset($settings))
|
if (!isset($settings))
|
||||||
require_once("../inc/inc.Settings.php");
|
require_once("../inc/inc.Settings.php");
|
||||||
require_once("inc/inc.Utils.php");
|
require_once("inc/inc.Utils.php");
|
||||||
require_once("inc/inc.LogInit.php");
|
require_once("inc/inc.LogInit.php");
|
||||||
|
@ -34,10 +34,10 @@ $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||||
if (!$accessop->check_view_access($view, $_GET)) {
|
if (!$accessop->check_view_access($view, $_GET)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
|
UI::exitError(getMLText("admin_tools"), getMLText("access_denied"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET['workflowactionid']) && $_GET['workflowactionid']) {
|
if (isset($_GET['workflowactionid']) && $_GET['workflowactionid']) {
|
||||||
$selworkflowaction = $dms->getWorkflowAction($_GET['workflowactionid']);
|
$selworkflowaction = $dms->getWorkflowAction($_GET['workflowactionid']);
|
||||||
} else {
|
} else {
|
||||||
$selworkflowaction = null;
|
$selworkflowaction = null;
|
||||||
|
@ -45,10 +45,10 @@ if(isset($_GET['workflowactionid']) && $_GET['workflowactionid']) {
|
||||||
|
|
||||||
$workflowactions = $dms->getAllWorkflowActions();
|
$workflowactions = $dms->getAllWorkflowActions();
|
||||||
if (is_bool($workflowactions)) {
|
if (is_bool($workflowactions)) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("internal_error"));
|
UI::exitError(getMLText("admin_tools"), getMLText("internal_error"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if($view) {
|
if ($view) {
|
||||||
$view->setParam('allworkflowactions', $workflowactions);
|
$view->setParam('allworkflowactions', $workflowactions);
|
||||||
$view->setParam('selworkflowaction', $selworkflowaction);
|
$view->setParam('selworkflowaction', $selworkflowaction);
|
||||||
$view->setParam('accessobject', $accessop);
|
$view->setParam('accessobject', $accessop);
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
"grunt-contrib-copy": "^1.0.0",
|
"grunt-contrib-copy": "^1.0.0",
|
||||||
"jqtree": "^1.5.1",
|
"jqtree": "^1.5.1",
|
||||||
"jquery": "^3.7.1",
|
"jquery": "^3.7.1",
|
||||||
|
"jquery-lazy": "^1.7.11",
|
||||||
"jquery-typeahead": "^2.11.1",
|
"jquery-typeahead": "^2.11.1",
|
||||||
"jquery-validation": "^1.19.2",
|
"jquery-validation": "^1.19.2",
|
||||||
"moment": "^2.29.1",
|
"moment": "^2.29.1",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user