mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
Merge branch 'seeddms-4.3.9' into develop
Conflicts: SeedDMS_Core/Core/inc.ClassDMS.php
This commit is contained in:
commit
31da6d4f5f
|
@ -716,6 +716,7 @@ class SeedDMS_Core_DMS {
|
|||
|
||||
/*--------- Do it all over again for documents -------------*/
|
||||
|
||||
$totalDocs = 0;
|
||||
if($mode & 0x1) {
|
||||
$searchKey = "";
|
||||
$searchFields = array();
|
||||
|
|
|
@ -55,9 +55,12 @@ if (!isset($login) || strlen($login)==0) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$pwd = (string) $_POST["pwd"];
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$pwd = stripslashes($pwd);
|
||||
$pwd = '';
|
||||
if(isset($_POST['pwd'])) {
|
||||
$pwd = (string) $_POST["pwd"];
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$pwd = stripslashes($pwd);
|
||||
}
|
||||
}
|
||||
|
||||
$guestUser = $dms->getUser($settings->_guestID);
|
||||
|
|
|
@ -67,7 +67,10 @@ if (!is_object($object)) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]);
|
||||
if(!empty($_GET["width"]))
|
||||
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]);
|
||||
else
|
||||
$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir);
|
||||
if(!$previewer->hasPreview($object))
|
||||
$previewer->createPreview($object);
|
||||
header('Content-Type: image/png');
|
||||
|
|
|
@ -341,8 +341,8 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) {
|
|||
* also all folders of that user because the status doesn't apply
|
||||
* to folders.
|
||||
*/
|
||||
if($status)
|
||||
$resultmode = 0x01;
|
||||
// if($status)
|
||||
// $resultmode = 0x01;
|
||||
|
||||
// category
|
||||
$categories = array();
|
||||
|
@ -354,8 +354,8 @@ if(isset($_GET["fullsearch"]) && $_GET["fullsearch"]) {
|
|||
}
|
||||
|
||||
/* Do not search for folders if result shall be filtered by categories. */
|
||||
if($categories)
|
||||
$resultmode = 0x01;
|
||||
// if($categories)
|
||||
// $resultmode = 0x01;
|
||||
|
||||
if (isset($_GET["attributes"]))
|
||||
$attributes = $_GET["attributes"];
|
||||
|
|
|
@ -23,6 +23,7 @@ include("../inc/inc.Utils.php");
|
|||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.Language.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.ClassAccessOperation.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
|
||||
|
@ -41,11 +42,16 @@ if (!is_object($version)) {
|
|||
}
|
||||
|
||||
$folder = $document->getFolder();
|
||||
|
||||
/* Create object for checking access to certain operations */
|
||||
$accessop = new SeedDMS_AccessOperation($document, $user, $settings);
|
||||
|
||||
$attrdefs = $dms->getAllAttributeDefinitions(array(SeedDMS_Core_AttributeDefinition::objtype_documentcontent, SeedDMS_Core_AttributeDefinition::objtype_all));
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'folder'=>$folder, 'document'=>$document, 'version'=>$version, 'attrdefs'=>$attrdefs));
|
||||
if($view) {
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view->show();
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user