- do not use mydmsDecodeString() anymore

This commit is contained in:
steinm 2011-12-05 14:32:26 +00:00
parent 2414c6599d
commit d44f2911fe
28 changed files with 115 additions and 115 deletions

View File

@ -188,8 +188,8 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
getMLText("comment_for_current_version").": ".$version_comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
$subject=$subject;
$message=$message;
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {

View File

@ -80,8 +80,8 @@ if (is_bool($res) && !$res) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
$subject=$subject;
$message=$message;
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {

View File

@ -88,8 +88,8 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
$subject=$subject;
$message=$message;
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {

View File

@ -204,8 +204,8 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
getMLText("comment_for_current_version").": ".$version_comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
$subject=$subject;
$message=$message;
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {

View File

@ -66,8 +66,8 @@ if (is_object($subFolder)) {
getMLText("user").": ".$user->getFullName()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$subFolder->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {

View File

@ -91,8 +91,8 @@ if ($_POST["approvalType"] == "ind") {
getMLText("comment").": ".$comment."\r\n".
"URL: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$documentid."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $content->getUser(), $subject, $message);
@ -124,8 +124,8 @@ else if ($_POST["approvalType"] == "grp") {
getMLText("comment").": ".$comment."\r\n".
"URL: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$documentid."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $content->getUser(), $subject, $message);
@ -159,8 +159,8 @@ if ($_POST["approvalStatus"]==-1){
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $nl["users"], $subject, $message);
foreach ($nl["groups"] as $grp) {
@ -206,8 +206,8 @@ if ($_POST["approvalStatus"]==-1){
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $nl["users"], $subject, $message);
foreach ($nl["groups"] as $grp) {

View File

@ -129,7 +129,7 @@ function createFolderTar($folder,$ark) { /* {{{ */
TarAddHeader(
$ark,
$dms->contentDir.$latestContent->getPath(),
getFolderPathPlainAST($folder)."/".$document->getID()."_".mydmsDecodeString($latestContent->getOriginalFileName()));
getFolderPathPlainAST($folder)."/".$document->getID()."_".$latestContent->getOriginalFileName());
TarWriteContents($ark, $dms->contentDir.$latestContent->getPath());
}

View File

@ -131,8 +131,8 @@ if ($action == "setowner") {
getMLText("comment").": ".$document->_comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {
@ -160,8 +160,8 @@ else if ($action == "notinherit") {
getMLText("folder").": ".$folder->getFolderPathPlain()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {
@ -181,8 +181,8 @@ else if ($action == "notinherit") {
getMLText("folder").": ".$folder->getFolderPathPlain()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {
@ -221,8 +221,8 @@ else if ($action == "setdefault") {
getMLText("folder").": ".$folder->getFolderPathPlain()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {

View File

@ -111,8 +111,8 @@ if ($action == "delnotify"){
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
if ($isUser) {
$notifier->toIndividual($user, $obj, $subject, $message);
@ -163,8 +163,8 @@ else if ($action == "addnotify") {
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $obj, $subject, $message);
}
@ -206,8 +206,8 @@ else if ($action == "addnotify") {
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toGroup($user, $obj, $subject, $message);
}

View File

@ -62,7 +62,7 @@ if (isset($_GET["version"])) {
//header("Content-Type: application/force-download; name=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($dms->contentDir . $content->getPath() ));
header("Content-Disposition: attachment; filename=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
header("Content-Disposition: attachment; filename=\"" . $content->getOriginalFileName() . "\"");
//header("Expires: 0");
header("Content-Type: " . $content->getMimeType());
//header("Cache-Control: no-cache, must-revalidate");
@ -103,10 +103,10 @@ if (isset($_GET["version"])) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_file_id"));
}
header("Content-Type: application/force-download; name=\"" . mydmsDecodeString($file->getOriginalFileName()) . "\"");
header("Content-Type: application/force-download; name=\"" . $file->getOriginalFileName() . "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($dms->contentDir . $file->getPath() ));
header("Content-Disposition: attachment; filename=\"" . mydmsDecodeString($file->getOriginalFileName()) . "\"");
header("Content-Disposition: attachment; filename=\"" . $file->getOriginalFileName() . "\"");
//header("Expires: 0");
header("Content-Type: " . $file->getMimeType());
//header("Cache-Control: no-cache, must-revalidate");

View File

@ -67,8 +67,8 @@ if (($oldcomment = $version->getComment()) != $comment) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$version->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
if(isset($document->_notifyList["users"])) {
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);

View File

@ -68,8 +68,8 @@ if (($oldname = $document->getName()) != $name) {
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {
@ -101,8 +101,8 @@ if (($oldcomment = $document->getComment()) != $comment) {
getMLText("comment").": ".$comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {

View File

@ -65,8 +65,8 @@ if(($oldname = $folder->getName()) != $name) {
getMLText("comment").": ".$comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {
@ -90,8 +90,8 @@ if(($oldcomment = $folder->getComment()) != $comment) {
getMLText("comment").": ".$comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {

View File

@ -128,8 +128,8 @@ if ($action == "setowner") {
getMLText("comment").": ".$folder->_comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {
@ -156,8 +156,8 @@ else if ($action == "notinherit") {
getMLText("folder").": ".$folder->getFolderPathPlain()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {
@ -176,8 +176,8 @@ else if ($action == "notinherit") {
getMLText("folder").": ".$folder->getFolderPathPlain()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {
@ -212,8 +212,8 @@ else if ($action == "inherit") {
getMLText("folder").": ".$folder->getFolderPathPlain()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {
@ -236,8 +236,8 @@ else if ($action == "setdefault") {
getMLText("folder").": ".$folder->getFolderPathPlain()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {

View File

@ -106,8 +106,8 @@ if ($action == "delnotify") {
getMLText("comment").": ".$folder->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
if ($userid > 0) {
$notifier->toIndividual($user, $obj, $subject, $message);
@ -157,8 +157,8 @@ else if ($action == "addnotify") {
getMLText("comment").": ".$folder->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $obj, $subject, $message);
}
@ -200,8 +200,8 @@ else if ($action == "addnotify") {
getMLText("comment").": ".$folder->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toGroup($user, $obj, $subject, $message);
}

View File

@ -127,8 +127,8 @@ if ($_GET["type"]=="document"){
getMLText("comment").": ".$folder->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $obj, $subject, $message);
}

View File

@ -66,8 +66,8 @@ if ($targetid != $oldFolder->getID()) {
getMLText("new_folder").": ".$targetFolder->getFolderPathPlain()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {

View File

@ -66,8 +66,8 @@ if ($folder->setParent($targetFolder)) {
getMLText("comment").": ".$folder->_comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {

View File

@ -85,8 +85,8 @@ if ($overrideStatus != $overallStatus["status"]) {
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $nl["users"], $subject, $message);
foreach ($nl["groups"] as $grp) {

View File

@ -63,8 +63,8 @@ if (!$document->remove()) {
getMLText("comment").": ".$document->getComment()."\r\n".
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() ."> ";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
// Send notification to subscribers.
$notifier->toList($user, $nl["users"], $subject, $message);

View File

@ -65,8 +65,8 @@ if (!$document->removeDocumentFile($fileid)) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {

View File

@ -57,8 +57,8 @@ if ($folder->remove()) {
getMLText("comment").": ".$folder->_comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $folder->_notifyList["users"], $subject, $message);
foreach ($folder->_notifyList["groups"] as $grp) {

View File

@ -73,8 +73,8 @@ if (count($document->getContent())==1) {
getMLText("comment").": ".$document->getComment()."\r\n".
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() ."> ";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
// Send notification to subscribers.
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
@ -122,8 +122,8 @@ else {
getMLText("comment").": ".$version->getComment()."\r\n".
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() ."> ";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $recipients, $subject, $message);

View File

@ -87,8 +87,8 @@ if ($_POST["reviewType"] == "ind") {
getMLText("comment").": ".$comment."\r\n".
"URL: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$documentid."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $content->getUser(), $subject, $message);
@ -120,8 +120,8 @@ else if ($_POST["reviewType"] == "grp") {
getMLText("comment").": ".$comment."\r\n".
"URL: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$documentid."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $content->getUser(), $subject, $message);
@ -156,8 +156,8 @@ if ($_POST["reviewStatus"]==-1){
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $nl["users"], $subject, $message);
foreach ($nl["groups"] as $grp) {
@ -224,8 +224,8 @@ if ($_POST["reviewStatus"]==-1){
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $nl["users"], $subject, $message);
foreach ($nl["groups"] as $grp) {
@ -248,8 +248,8 @@ if ($_POST["reviewStatus"]==-1){
getMLText("comment").": ".$content->getComment()."\r\n".
"URL: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$documentid."&version=".$version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
foreach ($docApprovalStatus as $dastat) {

View File

@ -126,8 +126,8 @@ foreach ($pIndRev as $p) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $docAccess["users"][$accessIndex["i"][$p]], $subject, $message);
}
@ -184,8 +184,8 @@ if (count($reviewIndex["i"]) > 0) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $docAccess["users"][$accessIndex["i"][$rx]], $subject, $message);
}
@ -229,8 +229,8 @@ foreach ($pGrpRev as $p) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toGroup($user, $docAccess["groups"][$accessIndex["g"][$p]], $subject, $message);
}
@ -285,8 +285,8 @@ if (count($reviewIndex["g"]) > 0) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toGroup($user, $docAccess["groups"][$accessIndex["g"][$rx]], $subject, $message);
}
@ -335,8 +335,8 @@ foreach ($pIndApp as $p) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $docAccess["users"][$accessIndex["i"][$p]], $subject, $message);
}
@ -390,8 +390,8 @@ if (count($approvalIndex["i"]) > 0) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toIndividual($user, $docAccess["users"][$accessIndex["i"][$rx]], $subject, $message);
}
@ -435,8 +435,8 @@ foreach ($pGrpApp as $p) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toGroup($user, $docAccess["groups"][$accessIndex["g"][$p]], $subject, $message);
}
@ -491,8 +491,8 @@ if (count($approvalIndex["g"]) > 0) {
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toGroup($user, $docAccess["groups"][$accessIndex["g"][$rx]], $subject, $message);
}

View File

@ -153,8 +153,8 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["si
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {
@ -181,8 +181,8 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["si
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {

View File

@ -166,8 +166,8 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {
@ -194,8 +194,8 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
getMLText("comment").": ".$document->getComment()."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->_id."\r\n";
$subject=mydmsDecodeString($subject);
$message=mydmsDecodeString($message);
// $subject=mydmsDecodeString($subject);
// $message=mydmsDecodeString($message);
$notifier->toList($user, $document->_notifyList["users"], $subject, $message);
foreach ($document->_notifyList["groups"] as $grp) {

View File

@ -56,7 +56,7 @@ if (!is_object($content)) {
if (isset($settings->_viewOnlineFileTypes) && is_array($settings->_viewOnlineFileTypes) && in_array(strtolower($content->getFileType()), $settings->_viewOnlineFileTypes)) {
header("Content-Type: " . $content->getMimeType());
}
header("Content-Disposition: filename=\"" . mydmsDecodeString( $document->getName().$content->getFileType()) . "\"");
header("Content-Disposition: filename=\"" . $document->getName().$content->getFileType()) . "\"";
header("Content-Length: " . filesize($dms->contentDir . $content->getPath()));
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");