mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +00:00
do not include inc/inc.ClassNotificationService.php and inc.ClassEmailNotify.php
This commit is contained in:
parent
9bde72fe20
commit
7fcb8da860
|
@ -135,16 +135,15 @@ if($reqversion<1)
|
||||||
$reqversion=1;
|
$reqversion=1;
|
||||||
|
|
||||||
include($myincpath."/inc/inc.Settings.php");
|
include($myincpath."/inc/inc.Settings.php");
|
||||||
|
include($myincpath."/inc/inc.LogInit.php");
|
||||||
include($myincpath."/inc/inc.Init.php");
|
include($myincpath."/inc/inc.Init.php");
|
||||||
include($myincpath."/inc/inc.Extension.php");
|
include($myincpath."/inc/inc.Extension.php");
|
||||||
include($myincpath."/inc/inc.DBInit.php");
|
include($myincpath."/inc/inc.DBInit.php");
|
||||||
include($myincpath."/inc/inc.ClassNotificationService.php");
|
|
||||||
include($myincpath."/inc/inc.ClassEmailNotify.php");
|
|
||||||
include($myincpath."/inc/inc.ClassController.php");
|
include($myincpath."/inc/inc.ClassController.php");
|
||||||
|
|
||||||
/* Parse categories {{{ */
|
/* Parse categories {{{ */
|
||||||
$categories = array();
|
$categories = array();
|
||||||
if(isset($options['K'])) {
|
if(isset($options['K'])) {
|
||||||
$categorynames = explode(',', $options['K']);
|
$categorynames = explode(',', $options['K']);
|
||||||
foreach($categorynames as $categoryname) {
|
foreach($categorynames as $categoryname) {
|
||||||
$cat = $dms->getDocumentCategoryByName($categoryname);
|
$cat = $dms->getDocumentCategoryByName($categoryname);
|
||||||
|
@ -154,11 +153,11 @@ if(isset($options['K'])) {
|
||||||
echo "Category '".$categoryname."' not found".PHP_EOL;
|
echo "Category '".$categoryname."' not found".PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/* Parse document attributes. {{{ */
|
/* Parse document attributes. {{{ */
|
||||||
$document_attributes = array();
|
$document_attributes = array();
|
||||||
if (isset($options['a'])) {
|
if (isset($options['a'])) {
|
||||||
$docattr = array();
|
$docattr = array();
|
||||||
if (is_array($options['a'])) {
|
if (is_array($options['a'])) {
|
||||||
$docattr = $options['a'];
|
$docattr = $options['a'];
|
||||||
|
@ -180,11 +179,11 @@ if (isset($options['a'])) {
|
||||||
}
|
}
|
||||||
$document_attributes[$attrdef->getID()] = $attrVal;
|
$document_attributes[$attrdef->getID()] = $attrVal;
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/* Parse version attributes. {{{ */
|
/* Parse version attributes. {{{ */
|
||||||
$version_attributes = array();
|
$version_attributes = array();
|
||||||
if (isset($options['A'])) {
|
if (isset($options['A'])) {
|
||||||
$verattr = array();
|
$verattr = array();
|
||||||
if (is_array($options['A'])) {
|
if (is_array($options['A'])) {
|
||||||
$verattr = $options['A'];
|
$verattr = $options['A'];
|
||||||
|
@ -206,15 +205,15 @@ if (isset($options['A'])) {
|
||||||
}
|
}
|
||||||
$version_attributes[$attrdef->getID()] = $attrVal;
|
$version_attributes[$attrdef->getID()] = $attrVal;
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/* Create a global user object {{{ */
|
/* Create a global user object {{{ */
|
||||||
if($username) {
|
if($username) {
|
||||||
if(!($user = $dms->getUserByLogin($username))) {
|
if(!($user = $dms->getUserByLogin($username))) {
|
||||||
echo "No such user '".$username."'.";
|
echo "No such user '".$username."'.";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
$user = $dms->getUser(1);
|
$user = $dms->getUser(1);
|
||||||
|
|
||||||
$dms->setUser($user);
|
$dms->setUser($user);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user