mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
fix line endings, remove some old code
This commit is contained in:
parent
e78fdaf32a
commit
49d6099462
|
@ -1,26 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
// MyDMS. Document Management System
|
// MyDMS. Document Management System
|
||||||
// Copyright (C) 2010 Matteo Lucarelli
|
// Copyright (C) 2010 Matteo Lucarelli
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation; either version 2 of the License, or
|
// the Free Software Foundation; either version 2 of the License, or
|
||||||
// (at your option) any later version.
|
// (at your option) any later version.
|
||||||
//
|
//
|
||||||
// This program is distributed in the hope that it will be useful,
|
// This program is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// 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.
|
||||||
|
|
||||||
include("../inc/inc.Settings.php");
|
include("../inc/inc.Settings.php");
|
||||||
include("../inc/inc.DBInit.php");
|
include("../inc/inc.DBInit.php");
|
||||||
include("../inc/inc.Language.php");
|
include("../inc/inc.Language.php");
|
||||||
include("../inc/inc.ClassUI.php");
|
include("../inc/inc.ClassUI.php");
|
||||||
include("../inc/inc.ClassEmail.php");
|
include("../inc/inc.ClassEmail.php");
|
||||||
include("../inc/inc.Authentication.php");
|
include("../inc/inc.Authentication.php");
|
||||||
|
|
||||||
if ($user->isGuest()) {
|
if ($user->isGuest()) {
|
||||||
|
@ -36,7 +36,7 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) {
|
||||||
|
|
||||||
// include all folder's document
|
// include all folder's document
|
||||||
|
|
||||||
$documents = $folder->getDocuments();
|
$documents = $folder->getDocuments();
|
||||||
$documents = SeedDMS_Core_DMS::filterAccess($documents, $dms->getUser($userid), M_READ);
|
$documents = SeedDMS_Core_DMS::filterAccess($documents, $dms->getUser($userid), M_READ);
|
||||||
|
|
||||||
foreach($documents as $document)
|
foreach($documents as $document)
|
||||||
|
@ -47,16 +47,16 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) {
|
||||||
|
|
||||||
// recurse all folder's folders
|
// recurse all folder's folders
|
||||||
|
|
||||||
$subFolders = $folder->getSubFolders();
|
$subFolders = $folder->getSubFolders();
|
||||||
$subFolders = SeedDMS_Core_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ);
|
$subFolders = SeedDMS_Core_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ);
|
||||||
|
|
||||||
foreach($subFolders as $subFolder)
|
foreach($subFolders as $subFolder)
|
||||||
add_folder_notify($subFolder,$userid,$recursefolder,$recursedoc);
|
add_folder_notify($subFolder,$userid,$recursefolder,$recursedoc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($_GET["type"])) UI::exitError(getMLText("my_account"),getMLText("error_occured"));
|
if (!isset($_GET["type"])) UI::exitError(getMLText("my_account"),getMLText("error_occured"));
|
||||||
if (!isset($_GET["action"])) UI::exitError(getMLText("my_account"),getMLText("error_occured"));
|
if (!isset($_GET["action"])) UI::exitError(getMLText("my_account"),getMLText("error_occured"));
|
||||||
|
|
||||||
$userid=$user->getID();
|
$userid=$user->getID();
|
||||||
|
|
||||||
|
@ -127,9 +127,6 @@ if ($_GET["type"]=="document"){
|
||||||
getMLText("comment").": ".$folder->getComment()."\r\n".
|
getMLText("comment").": ".$folder->getComment()."\r\n".
|
||||||
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->getID()."\r\n";
|
"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->getID()."\r\n";
|
||||||
|
|
||||||
// $subject=mydmsDecodeString($subject);
|
|
||||||
// $message=mydmsDecodeString($message);
|
|
||||||
|
|
||||||
$notifier->toIndividual($user, $obj, $subject, $message);
|
$notifier->toIndividual($user, $obj, $subject, $message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -137,5 +134,5 @@ if ($_GET["type"]=="document"){
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Location:../out/out.ManageNotify.php");
|
header("Location:../out/out.ManageNotify.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user