- move all sources into trunk

This commit is contained in:
steinm 2010-10-29 13:19:51 +00:00
commit b5bc621318
299 changed files with 36647 additions and 0 deletions

929
CHANGELOG Normal file
View File

@ -0,0 +1,929 @@
--------------------------------------------------------------------------------
Changes in version 2.0.1
--------------------------------------------------------------------------------
ADDED A GRAPHIC LOGO
The user can personalize it changing the image in styles/logo.png
Reviewed the style to accomplish with the logo
New settings' flag "_expandFolderTree" to start with the navigation tree
hidden, expanded or expanded at the first level
The tree status (hide/show) will be preserved through folder actions
The witdh of open/closed tree can be defined using CSS (in "clean" CSS style
"tree-open" and "tree-closed" )
DIFFERENT COMMENTS FOR DOCUMENT AND VERSION
Creating a document user can insert a different comment for version and for
entire document. If the version comment is leaved empty the document comment
will be used for both
Added a warning about the maximum upload file size in the upload pages
(add document and add files). The size is a server setting and does not depend
by letoDMS
Better allignment in the view document page (Thanks to alekseyn). Better
allignment in the view document version page.
Note: the allignement is simply suggested setting width in table columns, thus
can be modified by very long strings.
Now checking none between keywords,name and comment in search form means
searching all. That's a more logical way (same as behaviour of status checks)
Added a settings var for default calendar view (week,month or year)
Simplified the "Related documents" table: now the public yes/no is visible
only to the user tha can edit it
Removed a small bug with calendar function inclusion (thanks to c8900219)
Bugfixed the control of empty document names (thanks to turkeburgr)
Fixed a compatiblity bug in log management page (removed the unused readlink function)
Restyled the warnings appearance in clean style
Fixed a bug with empty vars on user management
Fixed a small bug when trying to download deleted files from folder view
Fixed a smal bug with logging on version removing (Thanks to larppaxyz)
Reviewed print css according to folder tree and logo
In print view the status was hide by css. Fixed
EXPERIMENTAL: review the LDAP autentication by Doudoux. The old code is leaved
commented in op.Login.php and in inc.Settings.php.
the submit review/approval has moved in the reviewer/approvers list
--------------------------------------------------------------------------------
Changes in version 2.0.0
--------------------------------------------------------------------------------
ADDED MULTIPLE DOCUMENT INCLUSION
in "Add document" page there's a new switch to add multiple files
for every file a new document will be created in the folder
the size limit depends on server settings
if multiple file are added:
- the file name is used to name the document
- expiration, reviewers, approvers, comment, etc will be the same for every
document
ADDED HUMAN-READABLE OPTION ON ARCHIVE CREATION:
with a flag in the "archive creation" tool the archive can be created using
DMS paths and original file names. The archive contains only the last version
of every file. Clearly a human readable archive cannot be used to restore a
server backup but they are handyer for external uses.
ADDED A SIDEBAR WITH TREE VIEW on the folder browsing
the feature is optional an there's a new settings flag
var $_enableFolderTree = true;
The sidebar shows only folders (a complete tree wich includes document would be
very heavy on most installation)
ADDED A SHARED CALENDAR for DMS users
- there'a new menu item ("calendar") to access the calendar
- the starting view is current week
- calendar has 3 view : year, month and week
- every event has start/end time (only date), user, creation and date, name and comment
- no hour/minute management (is not intent as personal/daily calendar)
- events can be added and viewed by everyone (are public)
- the event can be edit and delete by the user who insert it or by administrators
- the feature is optional (can be deactivated in inc.Settings)
ADDED A SIMPLE DB DUMP UTILITY in the Admin-Tools/Backup tools
- the feature should complete the backup utilities toolkit
- THE DB DUMP IS EXPERIMENTAL AND MUST BE TESTED WITH YOUR DB
- The created will require an empty existing db to restore data (content only)
IMPROVED THE DOCUMENT SEARCH FOR DOCUMENT STATUS
now one can search all document rejected, expired, obsolete, ecc.
reordered and restyled search form and result list
Beautyfied e-mail messages
The document expiration date (if any) is now showed near the status
lined up the reviewer approvers table in view document and document details
fixed a bug with group notify list administration
reverse alphabetical order (newer first) for log list, backup list, dump list
minor bugfix in versioning file creation/notification list editing
added confirmation page for user/group deletion
improve some log lines in user/group management
minor bugfix in myDocuments view
Now when editing a user the password can be leaved unchanged
(if nothing is inserted the password will not be changed)
Completed (not translated) some languages files
fixed some bug with user deletion (there were some tables not updated)
Fixed a bug with the time picker
improved the folder chooser dialog
Now the "view on line" works regardless to the case of the extension string
(the extension can be upper, lower or mixed case)
Same bugfix for the icon used in folder/document view
Removed the javascript hide/show for reviewers/approvers list (buggy with some browser)
Resolved a bug with hidden user flag
Improved the log view page
Reordered document action casistics (lock/unlock, permissiones, ecc.)
Removed the js source folder and file (not used)
Added new features description to the on-line help
On update operation the mandatory users/reviwers where not used: fixed
Bugfix again on View online function
Bugfix in personal keyword list editing
Removed a lot of php notice (viable only on some servers with php Notice enabled)
Removed a bug with direcotry creation and safe_mod activated
Reordered the theme folders
Fixed a not define accessmode in document chooser
--------------------------------------------------------------------------------
Changes in version 1.9
--------------------------------------------------------------------------------
This is a first major release with a lot of changes, then some new features
can contain new bugs. The DB require a small change: update.sql is included
in the folder UPDATE-v1.9
ADDED THE MANDATORY REVIEWERS AND APPROVERS LIST (per user):
Administrator can associate to every user one or more users as mandatory
reviewer/approver. Every document inserted by that user will be forced
to be reviewed/approved by the users in that list. Note that if document is
not readable by the mandatory approver/reviewer then the appoval/review
will not be required (for example will not be required for private documents).
ADDED A LOGGING SYSTEM:
- works with plain files
- administrator tools includes a page to view/download/delete log files
- log files are rotated with a time parameter in settings ($_logFileRotation)
The logging system is an experimental feature and must be carefully tested in
large multiuser environments. There are two new parameters in inc.Settings to enable.
USERS CAN NOW BE HIDDEN FROM USERS LISTS viewed by all (there's a "hide" checkbox in user manager page)
this function works with the "user view" list shown to all users
clearly if "$_enableUsersView = false" in configuration the option is useless
Restyled and improve the notify management:
- the new personal administration is included in "myAccount" menu of every user
- ADDED RECURSIVE INCLUSION (folder with all subfolders and/or all documents)
Viewonline now works (but should be tested again with different platforms)
Owner of a document is now emailed if someone else rename/move/update the document
When a document is reviewed/approved the mail is now correclty sent to the
document updater (the user who update the version) not necessarly to the owner.
ADDED SWITCH BETWEEN ALPHABETICAL OR ORIGINAL ORDER in the folder view
clicking on the "name" column header
The archive includes an older version of adodb working with MySQL-4
The downloadable text file with versioning infos is now updated immediatly before download
Bugfixed the create_table.sql
Removed a bug in english language file
Removed last references to the old name "myDMS"
Restyled and improved the "backup tools" page
Bugfixed the datechooser (was limited to 2010)
ADDED THE EDITABLE "MANAGER" FLAG TO GROUP MEMBER
now one (or more) user can be flagged as "manager" group member
Currently group notification are editable only by group managers
but the flag will be required for future use
IMPROVED THE GROUP/USER MANAGEMENT PAGES
- operation are ordered in a more clear way
- the "add new" operation uses the hide/show javascript
- now the page refresh immediatly when new data are saved
Restyled and improve the "edit access permission" pages
Improved the keyword category editing
- operation are ordered in a more clear way
- the "add new" operation uses the hide/show javascript
- now the page refresh immediatly when new data are saved
- the keyword category operation has been removed from administration
personal account menu (the operation has gone in administration tool's menu
because administrator edits the global keywords categories)
Improved Keword chooser
Added quick installation instruction on the README file
THE USER IMAGES ARE NOW OPTIONAL (the implementation is poor and doesn't work
on every system, then can be disabled)
-------------------------------------------------------------------
Changes in version 1.8.3
-------------------------------------------------------------------
Improved portuguese (thanks to Pedro.broggini), slovak (thanks to deb00t) and
german (thanks to Vault) languages translations.
Resolved some minor bugs (undefined variables) in inc.Class document and inc.ClassUI
Bugfixed UPDATE script - added update instruction in README file
Resolved a bug on ViewOnline feature (thanks to doudoux)
-------------------------------------------------------------------
Changes in version 1.8.2
-------------------------------------------------------------------
The link in revision/approval request email now is for the ViewDocument
Fix a bug in big backup file creation
Review ad reorganized the ViewFolder page: removed Reviewers/Approvers
list and added directory contents (file and subfolder count) and comments
Added directory dimension and content in out.Statistics
Now thwe initial version number of a new document can be set (you can
start a document with a version > 1)
Some mail are corrected
The various input field has been enlarged (using clean style)
-------------------------------------------------------------------
Changes in version 1.8.1
-------------------------------------------------------------------
REDESIGNED THE ORGANIZATION OF DATA FOLDER
Now the data folder (where files are located) has a more efficient organization:
data_dir / id / version.filetype
This scheme makes backups much more intuitive (the folder name corresponds
to the id of the document, all versions and attached files
are in the same folder.
- Removed no longer needed tdbDirPath and tdlPathList
- Removed no longer needed free path lookup functions
- Modified sql create_tables.sql for changes to the DB in accordance with the new organization
WARNING: This change makes the version incompatible with existing archives/DB
but is required by the all thennew features (read ahead)
The "UPDATE" folder contais two script for updating existing installations
To update an existing archive:
- Backup all (including DB)
- Install the new DMS version
- Install the "UPDATE" folder containing two files update.php and update.sql
- Log in as administrator
- Manually invoke the script (http://indirizzo/UPDATE/update.php
- Remove the folder "UPDATE"
If everything works well the old content has ben renamed "old" and can be removed (eg via ftp)
ADDITIONAL FILES
Added the ability to upload additional files associated to a document (as attachments)
these files are not versioned and are designed as accessories to the document
(Eg the PDF version or reductions in the image). The files are associated with
the document, not to version.
NOTE: To add attachments the user must have write permission on the document
The attachment can be removed by the user who added it or having total permissions
BACKUP
Added some useful tools for backing up files and folders (real files, not the DB).
Especially useful for working with entire folders which, being virtual,
can not easily be backupped via ftp.
There are three operations designed to be eventually applied in sequence.
Data Backup versioning:
Create for each document in a DMS folder a file containing the main versioning informations
This allows you to make backup copies of which also contain information from the DB.
This is meant to be performed before the creation of an archive,
After creating the file versioning file can be viewed from out.ViewDocument
Creating Archives:
Creates a tar.gz file containing all files related to a specific
DMS folder. The file is created in settings->_contentDir
The file is constructed so that it can be unpacked again in the settings->_contentDir
to restore removed files. In the page is presented the list of existing backup files
which you can downloaded or delete
Deleting files:
you can delete from the server all the files related to a specific
DMS folder and all its subfolders. By doing this you can
free space on the server without removing the version information
saved in the database that will be available for regular consultation.
Having a backup deleted files can easily be restored when needed.
All backups operations can be performed on the entire archive or only on a DMS folder.
All backups operations are accessible only to administrators.
OTHER FEATURES
Added the possibility to change a approval/review already done.
The editing is possible at any moment only to the user who made it.
The time is retained (so you can understand subsequent amendments).
The document status is updated automatically following a change.
The editing is only possible on the latest version of the document.
If a document expire date is set editing is only possible within that time
Added delete_all_contents script. Cleaning DB tool for test use
Proper content of some e-mail
Added general information to the statistic page:
- No. of documents
- No. of folders
- No. of files in every document
- Number of total files
- Total size of the archive
Fixed the view of system notify list
The comments related to the update opration (versione comment) are now editable
Adjusted out.DefaultKeywords now equal to out.UserDefaultKeyword
Added function formatted_size (view size in Bytes / Kb / Mb / Gb) in inc.Utils and applied where necessary
Fixed a bug on documents cancellation (was not removed the corresponding list of notification)
The files in data folder can be removed without cause errors in the DMS.
When a file is not effectively present in out.ViewDocument displays a warning "file removed"
and, of course, is no longer given the option to download.
This feature can be used to free up space on the server, removing old files, while leaving available the corresponding
version information.
Fixed the view in out.AddSubFolder.php (default font size)
Added icons for openoffice.org mime-type
Added icons for some types of extensions (bz, dot, docx, etc.).
Added (in inc.settings) option to disable the user administrator as a reviewer / approver (not listed)
Remove the untranslated instructions "die" (replaced by UI:: exitError)
Proper control permissions for internal links (related document):
- The guest user can not add links
- Users without write permission can only add links private
- Add link publici the user must have write permission
- To cancel link should be the user that added or have permission to total
-------------------------------------------------------------------
Changes in version 1.8
-------------------------------------------------------------------
The reviewer/approver can edit his review/approval after having submitted it.
Only the user whom effectivly submitted the review/approval can edit it,
even if he was required as group member. The document status will be updated
autmatically according with the modified submission. The edit is possible only
on the last version of a document (there's no reason to edit a old version).
If expiration date is set the edit is possible (obviously) only within that date.
Account menu has been reviewed.
Two new pages containing general views of groups and users are integrated in
the account menu. The feature can be disabled in inc.Settings.php.
The email notification can be completely disabled in inc.Settings.php. Every
users can leave empty his e-mail field to not receive e-mail even if
strictFormCheck is on.
Fix of two redirection bugs after deleting documents or folders.
The notification list is now integrated in the myDocument page/menu.
The general tree view has been enhance.
Fix of some e-mail composition errors.
Fix of some italian translation errors.
The owner is no longer automatically added to the notification list of
a document. The notification lists should not be modified automatically
(if not required the notification are annoying)
-------------------------------------------------------------------
Changes in version 1.7.3
-------------------------------------------------------------------
- removed vulnerability lang/theme at login (TODO: referuri in op.Login.php)
- completed translation calls
- a print css added
- added "warning" and "error" styles
- new css clean e hc (high contrast for visually impaired folks)
- guest login must be default false
- reorderer the first level menu
- reordered personal document navigation
- reorderd personal account navigation
- out.info is now linked to administrator only and access protected
- added permission control on root folder (no inheritance)
- removed "remove" and "move" commands for root folder
- reorganized permission pages
- added disclaimer note (shown on every page) with setting flag and translation
- where possible ALL the operation feedback are removed (where no errors the page return immedatly to the contents)
- added and exitError function in ClassUI and review ALL pages to comply
- syled the out.KeywordChooser page
- deleted inc.OutUtils
- deleted op.NotifyMailer (not used)
- added a "legend" to out.Statistics
-------------------------------------------------------------------
Changes in version 1.7.2
-------------------------------------------------------------------
- Style Sheet modifications to improve IE6 compatibility, contributed by
Juan Lago (thanks Juan!). This fixes some placement issues with elements
that have the position attribute set to "absolute".
- The div elements that are used to clear floats have been fixed so that they
have zero height in IE6. It is not enough to specify "height: 0"; one must
also set "font-size:0" otherwise IE6 will set the height of the element to
match the standard font size.
- UI layout improvements. Various changes to the user interface to improve
the page flow and allow for further expansion in the future. The context
menu bar has been separated from the page heading into its own container
underneath the title. It's a more logical place to present the menu, and
will allow for the easy addition of further sub-headings in the future
without compromising the page flow.
- The last dependency on the original theme system has been eliminated with
the introduction of updated chooser dialogues for selecting files and
folders. These dialogues have the new themes and the code has been revamped,
replacing the old table structures with unordered lists.
- LDAP update. A minor change to the LDAP authentication code to allow for
the use of URIs to identify the server name (e.g. ldaps://host.com).
Also, the LDAP version is set to 3 in order to support secure connections.
- New language translations for Czech and Slovak. Contributed by SF user
helix84 (thanks!).
-------------------------------------------------------------------
Changes in version 1.7.1
-------------------------------------------------------------------
- Re-vamped Notification system allows users to receive an email when a
document or folder is changed. This is a new, event-based mechanism that
notifies the user as soon as the change has been made and replaces the
cron mechanism originally developed. Any user that has read access to a
document or folder can subscribe to be notified of changes. Users that
have been assigned as reviewers or approvers for a document are
automatically added to the notification system for that document.
A new page has been created for users to assist with the management of
their notification subscriptions. This can be found in the "My Account"
section under "Notification List".
- The test used to identify HTTPS connections has been improved so that it
correctly identifies IIS servers that have ISAPI enabled but are not
using HTTPS protocol.
-------------------------------------------------------------------
Changes in version 1.7.0
-------------------------------------------------------------------
- Fixes to CSS display bugs. Minor updates to the display.
- Improved handling of character escape sequences.
- Review / Approve dates added to folder views and search results.
- New file system directory management code to accommodate limitations in the
underlying filesystem which restrict the number of files that MyDMS can
store. MyDMS now uses a nested directory structure to store files, rather
than a flat one. However, note that individual files are still stored one
per directory in order to preserve compatibility with older versions of
MyDMS.
For details of the problem and the solution implemented, please refer to:
http://mydms.sf.net/2007/08/15/new-file-system-storage-structure/
- Hungarian translation.
- And as a bonus, there is a Drupal theme compatible with MyDMS.
-------------------------------------------------------------------
Changes in version 1.6.1
-------------------------------------------------------------------
- Theme and language choice are now saved as user attributes between
sessions. Read update-1.6.1.txt for changes to database schema.
- Link to document review / approval page from out.ViewDocument.php.
- French translation.
- Brazilian Portuguese translation.
- Traditional Chinese translation.
- Relaxation of criteria for selecting reviewers / approvers. Users now only
require read access to be eligible reviewers or approvers.
- Documents are now displayed in the correct sequence in the folder view.
- Documents can be downloaded directly from the folder view by clicking their
icon.
- Document icons in the folder view now reflect the document type.
- Empty passwords are not accepted, even when JS is disabled in the browser.
- New restricted access mode rejects login from users who are not entered
into the internal database, even if LDAP authentication was successful.
-------------------------------------------------------------------
Changes in version 1.6.0
-------------------------------------------------------------------
- Introduction of a document workflow system that manages the life-cycle of a
document, including review and approval stages.
Details:
Document Class:
Created new methods:
Document::addIndReviewer()
Document::addGrpReviewer()
Document::addIndApprover()
Document::addGrpApprover()
Changes to:
Document::addContent()
New Class: Email.
out.AddDocument.php
op.AddDocument.php
Changes to allow selection of reviewers and approvers.
Group Class:
Changes to:
Group::getUsers() -- query optimised
New Methods:
Group::getReviewStatus()
Group::getApprovalStatus()
User Class:
New Methods:
User::getReviewStatus()
User::getApprovalStatus()
Class Folder:
Changes to:
Folder::addDocument() -- accept reviewers, approvers as parameters.
New Class: AddContentResultSet.
Database:
Document version field changed from TINYINT to unsigned SMALLINT throughout
database.
`tblGroupMembers`:
`id` field removed as it is unnecessary.
Created a primary of `groupID`, `userID`.
DocumentContent Class:
Created new methods:
DocumentContent::getStatus()
DocumentContent::getReviewStatus()
DocumentContent::getApprovalStatus()
DocumentContent::delIndReviewer()
DocumentContent::delGrpReviewer()
DocumentContent::delIndApprover()
DocumentContent::delGrpApprover()
out.ViewDocument.php
op.ViewDocument.php
Changes to incorporate display of workflow status.
Links to allow user to change status of a document revision.
out.UpdateDocument.php
op.UpdateDocument.php
Changes to allow selection of reviewers and approvers.
out.Login.php
op.Login.php
redirect user to originally requested URL upon successful login.
out.ReviewDocument.php
op.ReviewDocument.php
out.ApproveDocument.php
op.ApproveDocument.php
Created to enable users to review and approve documents.
out.OverrideContentStatus.php
op.OverrideContentStatus.php
Allows document owner or site administrator to override the status of a
document.
out.SetReviewersApprovers.php
op.SetReviewersApprovers.php
Allows document owner or site administrator to re-assign reviewers and
approvers to a document revision that is pending review or approval.
out.ActionSummary.php
Lists all the documents owned by current user that are pending review or
approval. Lists all documents that are awaiting review or approval by the
user.
Search page now allows user to search for documents pending review or
approval. Search results display overall document status.
- Admin user cannot be deleted, and admin privilege cannot be removed from
the admin user. Previously, both actions were possible.
- Users can be assigned administrative privileges in the User Manager.
- Deleting document revisions or the document itself notifies all affected
users by email, deletes entries from all status logs.
-------------------------------------------------------------------
Changes in version 1.5.1
-------------------------------------------------------------------
- Fixed a bug in the keyword editing code which was preventing users from
adding default keywords into global keyword categories.
-------------------------------------------------------------------
Changes in version 1.5.0
-------------------------------------------------------------------
- Optimised search. Improved the performance of the search function by
placing more of the work on the database and by applying indexes to some of
the tables. Sub-folder searches are also dramatically improved due to the
incorporation of a folderList field in the tblDocuments table.
- Optimised display. New compact theme significantly reduces the page load
times. This is the default theme. The original is still available as a
selection.
- Changed file download headers such that downloading works with IE over SSL.
- Changed all instances of $HTTP_COOKIES_VARS, which has been deprecated, to
$_COOKIE.
- Replaced all short open tags (<?) with <?php tags, including <?= tags.
- Removed the dependency upon register_globals.
- Database: removed the id column from tblDocumentContent. Changed the
primary key to be (document, version) with the auto_increment on the
version field. This enables the database to automatically assign the next
appropriate version number to any new row inserted into the table without
having to explicitly look up the existing version value, increment the
result and store that as part of the insert statement. It guarantees that
there will be no conflicts or duplication of version numbers by
simultaneous inserts. The id field was not required as it was not used
anywhere except as a convenient identifier. It was easily replaced by
(document id, version).
- Database: Moved the lock field into a separate table for managing locks.
Fixes a problem where it was possible, although unlikely, for two people to
simultaneously request a lock on a document.
- The settings file, inc/inc.Settings.php, is renamed in the distribution to
inc/inc.Settings-sample.php. This is to avoid any existing settings being
deleted during an upgrade. To use MyDMS for the first time, users must now
copy (or move) this file to inc/inc.Settings.php and edit before
using MyDMS.
-------------------------------------------------------------------
Changes in version 1.4.4
-------------------------------------------------------------------
- All files released as GPL as license recommends.
-------------------------------------------------------------------
Changes in Version 1.4.3
-------------------------------------------------------------------
- Downloading document: fixed security bug
-------------------------------------------------------------------
Changes in Version 1.4.2
-------------------------------------------------------------------
- SQL injection bug fixed
-------------------------------------------------------------------
Changes in Version 1.4.1
-------------------------------------------------------------------
- Security Bug fixed that allowed unauthorized users to view
documents
-------------------------------------------------------------------
Changes in Version 1.4
-------------------------------------------------------------------
- New interface for user- and group-administration
- Delete old revisions
- Folder- and document-chooser now show a collapsed tree by default
- You can now prepare both personal and global lists of keywords and
insert them easily for your documents
-------------------------------------------------------------------
Changes in Version 1.3.1
-------------------------------------------------------------------
- Choose language and theme
Users can now choose their preferred language and theme on the
login-screen.
- Split of language file
inc.Language.php has been splitted so that every language is
provided in its own file.
- Added ADOdb
Due to ADOdb MyDMS is no longer limited to MySQL. Every database
that is supported by ADOdb can be used together with MyDMS
- Admin-Tool: Overview of folders and documents
A tool that shows a list of all folders and documents together
with the ACLs has been added. The section "admin-tools" will
become bigger in the next versions (import files etc).
-------------------------------------------------------------------
Changes in Version 1.3.0
-------------------------------------------------------------------
- New feature: Auto-Conversion to HTML
When uploading files they are now converted to HTML automatically.
So you can now even view Winword-files online with your favourite
browser.
- Integrated themes
Themes (again: thanks to Marcel van Groenigen), which were only
available by a seperate download so far, are now fully integrated
into MyDMS.
I'm looking forward to MacOS X Themes :-)
- Fixed bug: Search function
An error occured if no folder had been chosen. This has been fixed.
-------------------------------------------------------------------
Changes in Version 1.2.1
-------------------------------------------------------------------
- Improved searching functionality
MyDMS now offers you a lot more options to help you find exactly
what you were looking for.
This is only the first stop of improvement: Look forward to an
even more powerful search engine in the next versions :-)
- Security-Bug: Session-ID
One could guess the session-id very easily, since it was only a
two digit number. This has been corrected so that it should now
be impossible to get illegal access this way.
Tip: Empty tblSessions once a day (by a cron-job for example).
-------------------------------------------------------------------
Changes in Version 1.2.0
-------------------------------------------------------------------
- Move documents and folders
If you have put folders or documents to the wrong place or just
want to re-organize the structure you can now easily move
documents and folders.
- New languages
A Russian (thanks to Dmitri) and a Durch version (thanks to André
Koot) are now available, too.
- Upload-Bug
With certain configurations moving the temporary file of on upload
caused problems. MyDMS now uses the built-in move_uploaded_file()
function to prevent this error.
-------------------------------------------------------------------
Changes in Version 1.1.2
-------------------------------------------------------------------
- Sequence of Documents and Folders
One of the most wanted features has been realized: The user has
now full control of the sequence in which documents and folders
appear in the system.
- Related Documents
Every documents now has a list of link to related documents.
There are two kinds of links: public and private ones; public
links can be seen by anyone, while private ones are only visible
to the user that created them.
Users with read-only access can only add private links, while
users with at least read-write access can decide which type of
link they want to add.
Private links can only be deleted by the user that has created
them while public links - no matter who created them - can be
deleted by all users with read-write access.
- Fixed Bug: Delete documents
When deleting documents they were removed only from the database.
The files in the content-directory were kept.
- Fixed Bug: View and download documents.
Very ling filenames (more than 70 characters) caused problems
with viewing and downloading of documents. By runnning the
db-update filenames with up to 150 characters are now possible.
-------------------------------------------------------------------
Changes in Version 1.1.1
-------------------------------------------------------------------
- Spanish translation
Eugenio Ramajo has completely translated MyDMS to Spanish
- Disable guest-login
You can now disable the guest-login introduced in Version 1.1.0
by setting $_enableGuestLogin to false.
- Confirmation for deletion
When deleting documents or folders you now have to confirm this
action to prevent you from accidentaly deleting important data.
- Security improved
By manually changing the folder-ID in the URL it was possible to
"illegaly" show folders or documents (but downloading or viewing
the actual content was not possible).
-------------------------------------------------------------------
Changes in Version 1.1.0
-------------------------------------------------------------------
- Guest-Login
You can now choose to log-in as guest so that you can access your
documents more quickly. The guest user cannot be added to the ACLs.
So take care that the default access is at least "read" if you wish
to have access with the guest-user.
You cannot edit the guest-users's account.
- Download documents more quickly
If you want to download the current version (or view it online) there
is no more need to scroll to the end of the document's page: Now there
is a button just on top of the site for downloading the current version.
- Icons for Mime-Types
According to the document's MIME-type an additional icon is show.
(Icons from KDE3).
- Correct filename when downloading
When downloading a file it was named data.[extension] up to know. This has
been replaced by the original filename.
-------------------------------------------------------------------
Changes in Version 1.0.1
-------------------------------------------------------------------
- if you had the GNU test-package installed on your machine, the function
getText() caused a fatal error. The problem was solved by renaming the
function.

124
CHANGELOG-1.8.1 Normal file
View File

@ -0,0 +1,124 @@
Changelog for LetoDMS version 1.8.1 - (C)2010 Matteo Lucarelli
================================================================================
REDESIGNED THE ORGANIZATION OF DATA FOLDER ===============================
Now the data folder (where files are located) has a more efficient organization:
data_dir / id / version.filetype
This scheme makes backups much more intuitive (the folder name has
corresponding to the id of the document, all versions and attached files
are in the same folder.
- Removed no longer needed tdbDirPath and tdlPathList
- Removed no longer needed free path lookup functions
- Modified sql create_tables.sql for changes to the DB in accordance with the new organization
WARNING: This change makes the version incompatible with existing archives/DB
but is required by the all thennew features (read ahead)
The "UPDATE" folder contais two script for updating existing installations
To update an existing archive:
- Backup all (including DB)
- Install the new DMS version
- Install the "UPDATE" folder containing two files update.php and update.sql
- Log in as administrator
- Manually invoke the script (http://indirizzo/UPDATE/update.php
- Remove the folder "UPDATE"
If everything works well the old content has ben renamed "old" and can be removed (eg via ftp)
ADDITION FILES ================================================================
Added the ability to upload additional files associated to a document (as attachments)
these files are not versioned and are designed as accessories to the document
(Eg the PDF version or reductions in the image). The files are associated with
the document, not to version.
NOTE: To add attachments the user must have write permission on the document
The attachment can be removed by the user who added it or having total permissions
BACKUP ================================================= ========================
Added some useful tools for backing up files and folders (real files, not the DB).
Especially useful for working with entire folders which, being virtual,
can not easily be backupped via ftp.
There are three operations designed to be eventually applied in sequence.
Data Backup versioning:
Create for each document in a DMS folder a file containing the main versioning informations
This allows you to make backup copies of which also contain information from the DB.
This is meant to be performed before the creation of an archive,
After creating the file versioning file can be viewed from out.ViewDocument
Creating Archives:
Creates a tar.gz file containing all files related to a specific
DMS folder. The file is created in settings->_contentDir
The file is constructed so that it can be unpacked again in the settings->_contentDir
to restore removed files. In the page is presented the list of existing backup files
which you can downloaded or delete
Deleting files:
you can delete from the server all the files related to a specific
DMS folder and all its subfolders. By doing this you can
free space on the server without removing the version information
saved in the database that will be available for regular consultation.
Having a backup deleted files can easily be restored when needed.
All backups operations can be performed on the entire archive or only on a DMS folder.
All backups operations are accessible only to administrators.
OTHER FEATURES ================================================ ==========
Added the possibility to change a approval/review already done.
The editing is possible at any moment only to the user who made it.
The time is retained (so you can understand subsequent amendments).
The document status is updated automatically following a change.
The editing is only possible on the latest version of the document.
If a document expire date is set editing is only possible within that time
Added delete_all_contents script. Cleaning DB tool for test use
Proper content of some e-mail
Added general information to the statistic page:
- No. of documents
- No. of folders
- No. of files in every document
- Number of total files
- Total size of the archive
Fixed the view of system notify list
The comments related to the update opration (versione comment) are now editable
Adjusted out.DefaultKeywords now equal to out.UserDefaultKeyword
Added function formatted_size (view size in Bytes / Kb / Mb / Gb) in inc.Utils and applied where necessary
Fixed a bug on documents cancellation (was not removed the corresponding list of notification)
The files in data folder can be removed without cause errors in the DMS.
When a file is not effectively present in out.ViewDocument displays a warning "file removed"
and, of course, is no longer given the option to download.
This feature can be used to free up space on the server, removing old files, while leaving available the corresponding
version information.
Fixed the view in out.AddSubFolder.php (default font size)
Added icons for openoffice.org mime-type
Added icons for some types of extensions (bz, dot, docx, etc.).
Added (in inc.settings) option to disable the user administrator as a reviewer / approver (not listed)
Remove the untranslated instructions "die" (replaced by UI:: exitError)
Proper control permissions for internal links (related document):
- The guest user can not add links
- Users without write permission can only add links private
- Add link publici the user must have write permission
- To cancel link should be the user that added or have permission to total

339
LICENSE Normal file
View File

@ -0,0 +1,339 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

255
README Normal file
View File

@ -0,0 +1,255 @@
-------------------------------------------------------------------
LetoDMS Installation Instructions
-------------------------------------------------------------------
IMPORTANT NOTE ABOUT TRANSLATIONS ==============================================
as you can see letoDMS provide a lot of languages but we are not professional
translators then we wait for users contributions.
If your language is not present in the login panel:
- copy the language/english/ folder and rename it appropriately for your
language
- open the file languages/your_lang/lang.inc and translate it
- open the help file languages/your_lang/help.htm and translate it too
If you see some wrong or not translated messages:
- open the file languages/your_lang/lang.inc
- search the wrong messages and translate them
if you have some "error getting text":
- search the string in the english file (languages/english/lang.inc)
- copy to your language file (languages/your_lang/lang.inc)
- translate it
If there is no help in your language:
- Copy the English help (english/help.htm) file to your language folder
- translate it
If you apply any changes to the language files please send them to the
letoDMS developers (www.letodms.com).
0. Quick installation instructions =============================================
You need a working web server with MySQL/PHP support.
* Unpack all the files in a public web server folder. If you're working on a
host machine your provider will tell you where to upload the files.
* Unless ADODB is not already installed on your system, download
(http://adodb.sourceforge.net/) and unpack it in the letDMS
directory (for PHP4 there are old version of adodb)
* Create a data folder somewhere in your web server. The data folder created by
the letoDMS archive should work for a test installation and must be set as
writable to the web-server user.
For security reason the data folder should not be inside the public folders.
The directory must have read/write permission for the web-server user.
* Create a new database on your web server
e.g. for mysql:
create database letodms;
* Create a new user for the database with all permissions on the new database
e.g. for mysql:
grant all privileges on letodms.* to letodms@localhost identified by 'secret';
* Execute "create_tables.sql" in the new database
* Edit the inc/inc.Settings.php to match your preference and settings.
At least $_rootDir, $_httpRoot, $_contentDir, $_ADOdbPath, $_dbHostname,
$_dbDatabase, $_dbUser, $_dbPass must be edited. Note that for the path you
probably need to ask your provider because the absolute path on the server
is not immediatly viewable in a hosted system.
NOTE: UPDATING FROM A PREVIOUS VERSION
- make a backup archive of your installation folder
- make a backup archive of your data folder
- dump your current database
- extract the letoDMS archive to your web server
- edit the inc/inc.Settings.php file to match your previuos settings
(you can even replace the file with your own one eventualy adding by hand
the missing new parameters)
- login as administrator
-execute all the update.php script pointing your browser directly:
http://www.yoursite/path/to/dms/UPDATE-vX.X.X/update.php
Each update script must be run, starting from the version previous to the
one in the folder name. For example to update from a 1.7.1 to 1.9 you need
to run both UPDATE-v1.8.1/update.php and UPDATE-v1.9/update.php.
1. Requirements ================================================================
letoDMS is a web-based application written in PHP. It uses the MySQL RDBMS to
manage the documents that were uploaded into the application.
Make sure you have PHP 4.0 and MySQL 4 or higher installed. letoDMS
will work with PHP running in CGI-mode as well as running as module under
apache. If you want to give your users the opportunity of uploading passport
photos you have to enable the gd-library (but the rest of letoDMS will
work without gd, too).
You will also need to download and install the ADODB database
abstraction library from http://adodb.sf.net/ unless it is not installed
on your system already.
2. Installation & Configuration ================================================
<<<<<<< .mine
Unzip the downloaded file (letodms-<version>.zip) in a directory that is
accessible via your web server.
=======
Unzip the downloaded archive in a directory that is accessible via your web server.
>>>>>>> .r12
You will also need to create a directory where the uploaded files
are stored. This directory should not be accessible via your
web-server for security reasons (create it outside of your www-root
directory or put an appropriate .htaccess file in it).
Download the ADODB package from SourceForge. The URL for the ADODB project
page is:
http://adodb.sourceforge.net/
Extract the distribution into a suitable directory. For example, one can
extract the files into the MyDMS root directory.
Now, set up your Database. Use the included script create_tables.sql to
create all tables. Since the exact procedure differs on the
different database-systems I cannot give you a detailed instruction
here. Post any questions concering this problem to the letoDMS-Forum. In
general, create the database, make sure that the database has been selected
(e.g. "USE mydms;"), then run the script. As of 1.6.0, you must make sure
that the database user has "create temporary table" privileges.
N.B. If the create_tables.sql script fails, it may be because the database
has been configured to use InnoDB tables by default instead of MyISAM tables.
If this is the case, it will be necessary to alter the sript such that each
create table command has the text " ENGINE = MyISAM" appended to the end,
immediately prior to the semi-colon. For example:
Before:
CREATE TABLE `tblDocumentLocks` (
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`document`)
) ;
After:
CREATE TABLE `tblDocumentLocks` (
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`document`)
) ENGINE = MyISAM ;
Now edit the configuration file. First, go to the "inc" directory and copy
(or move) "inc.Settings-sample.php" to "inc.Settings.php". Open the file and
set the variables to the correct values (you will find a short description
for each variable in the file itself).
TIP: You can find out your root-directory by placing the following
line into a php-file: <?php phpInfo(); ?>
Open it with your browser and look for "DOCUMENT_ROOT".
When running into problems with the db-settings, read the readme-file
in the adodb-directory or post questions to the letoDMS-Forum.
By default PHP allows only files to be uploaded that are up to 2Mb
in size. You can change this limit by editing php.ini: Search for
"upload_max_filesize" and set it to the appropriate value (you
should also change the value for "post_max_size" and make sure that
your web-server does not limit the size either).
3. Email Notification ==========================================================
A new, re-vamped notification system allows users to receive an email when a
document or folder is changed. This is a new, event-based mechanism that
notifies the user as soon as the change has been made and replaces the
cron mechanism originally developed. Any user that has read access to a
document or folder can subscribe to be notified of changes. Users that
have been assigned as reviewers or approvers for a document are
automatically added to the notification system for that document.
A new page has been created for users to assist with the management of
their notification subscriptions. This can be found in the "My Account"
section under "Notification List".
4. Auto-conversion to HTML =====================================================
Version 1.3.0 introduces a new feature: Documents can automatically be
converted to HTML when uploading.
You can enable this feature by setting $_enableConverting (in
inc.Settings.php) to true.
You will also need to edit $_convertFileTypes (again in
inc.Settings.php). This array defines which file-types are converted
and how.
Under windows Word-, Excel- and Powerpoint-Files are automatically
converted using js-Scipts and MS-Office. I tested it with Office 2000
and it worked just fine.
Under Linux mswordview is used to convert Word-Files by default.
Warning: Getting this feature working can be very tricky but if it
works it is a great enhancement I think.
Especially IIS could cause problems with its IIS-Guest-Account not
having enough rights to execute Word or Excel...
You will also have to edit your httpd.conf to be able to view the converted
files online. Load mod_rewrite and add to following lines to your conf:
RewriteEngine on
RewriteCond %{REQUEST_URI} (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$
RewriteRule (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$ $1op.ViewOnline.php?request=$2:$3 [PT]
IIS Users can download the IIS Rewrite Engine for example:
http://www.qwerksoft.com/products/iisrewrite/
Post any questions to the MyDMS forum, please.
5. Nearly finished =============================================================
Now point your browser to http://your.server.com/mydms/index.php
and login with "admin" both as username and password.
After having logged in you should first choose "My Account" and
change the Administrator's password and email-address.
CONFIGURING MULTIPLE INSTANCES =================================================
Since version 2.0.x, letoDMS can be set up to run several parallel instances
sharing the same source but each instance has its own configuration. This is
quite useful if you intend to host letodms for several customers.
1. Do a regular letoDMS installation ===========================================
Actually there is no need to set up the database at this point but it won't
hurt since you'll need one in the next step anyway. The sources of letodms
can be anywhere you like. The do not have to be in you www-root.
2. Setup the instance ==========================================================
Create a directory in your www-root or use www-root for your instance. In the
second case, you will not be able to create a second instance.
Go into that directory create the following links (<letoDMS-source> is the
directory of your initial letoDMS intallation).
inc -> <letoDMS-source>/inc
op -> <letoDMS-source>/op
out -> <letoDMS-source>/out
languages -> <letoDMS-source>/languages
styles -> <letoDMS-source>/styles
index.php -> <letoDMS-source>/index.php
Create a new directory conf and copy conf.Settings.php from your letoDMS source
into it. Modify it as explained above.
Point your web browser towards the index.php file in your new instance.

26
TODO Normal file
View File

@ -0,0 +1,26 @@
installation script:
- user simply unpack the tar.gz in a server folder and access that folder
- on startup if there are installation problems php automatically run the configuration script
- the data folder creation can be automatic (user/password for server) or manual (yet ready folder)
- same for the db and the db user
- db creation (run of create table.sql) shoul control if db is yet filled and control for update to do
- the inc/inc.Setting.php is filled asking user entry
- the script can be used to test installation problem without affecting the current installation
The document state is currently not updated when a user is deleted from users list.
For example user A is the only pending approver for a document, then the document is in draft state.
When A is deleted the document should pass automatically in release status.
This could be done with a new function controlling the existance of all the pending approver/reviewer
and eventually updating the status of the document. This function will be called by user-remove function.
Sometimes in the DB are written messages strings in plain language whose
language depends on the current user and will never be translated.
This can be avoided using only coded messages
The mail language is translated using the current user language but should use
the receiver language (not easy).
In my Documents->all documents there should be two lists: one (the current) with
the user's document, and another with the user's updated document (that's because
one user could have updated a document not owned by himself)

124
UPDATE-v1.8.1/update.php Normal file
View File

@ -0,0 +1,124 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Authentication.php");
print "<html></body>";
if (!$user->isAdmin()) {
print "<b>ERROR: You must be administrator to execute the update</b>";
die;
}
function update_content()
{
GLOBAL $db,$settings;
// create temp folder
if (!makedir($settings->_contentDir."/temp")) return false;
// for all contents
$queryStr = "SELECT * FROM tblDocumentContent";
$contents = $db->getResultArray($queryStr);
if (is_bool($contents)&&!$contents) return false;
for ($i=0;$i<count($contents);$i++){
// create temp/documentID folder
if (!makedir($settings->_contentDir."/temp/".$contents[$i]["document"])) return false;
// move every content in temp/documentID/version.fileType
$source = $settings->_contentDir."/".$contents[$i]["dir"]."/data".$contents[$i]["fileType"];
$target = $settings->_contentDir."/temp/".$contents[$i]["document"]."/".$contents[$i]["version"].$contents[$i]["fileType"];
if (!copyFile($source, $target)) return false;
}
// change directory
if (!renameDir($settings->_contentDir."/".$settings->_contentOffsetDir,$settings->_contentDir."/old")) return false;
if (!renameDir($settings->_contentDir."/temp",$settings->_contentDir."/".$settings->_contentOffsetDir)) return false;
return true;
}
function update_db()
{
GLOBAL $db,$settings;
// for all contents
$queryStr = "SELECT * FROM tblDocumentContent";
$contents = $db->getResultArray($queryStr);
if (is_bool($contents)&&!$contents) return false;
for ($i=0;$i<count($contents);$i++){
$queryStr = "UPDATE tblDocumentContent set dir = '". $settings->_contentOffsetDir."/".$contents[$i]["document"]."/' WHERE document = ".$contents[$i]["document"];
if (!$db->getResult($queryStr)) return false;
}
// run the update-2.0.sql
$fd = fopen ("update.sql", "r");
if (is_bool($fd)&&!$fd) return false;
$queryStr = fread($fd, filesize("update.sql"));
if (is_bool($queryStr)&&!$queryStr) return false;
fclose ($fd);
if (!$db->getResult($queryStr)) return false;
return true;
}
print "<b>Updating ...please wait</b><br>";
if (!update_content()) {
print "<b>ERROR: An error occurred during the directory reordering</b>";
die;
}
if (!update_db()) {
print "<b>ERROR: An error occurred during the DB update</b>";
print "<br><b>Please try to execute the update.sql manually</b>";
die;
}
print "<b>Update done</b><br>";
print "</body></html>";
?>

33
UPDATE-v1.8.1/update.sql Normal file
View File

@ -0,0 +1,33 @@
-- mysql -uroot -ppassword mydms < update.sql
-- this script must be executed when updating form a version < 1.8.1
-- --------------------------------------------------------
--
-- New table for document-related files
--
CREATE TABLE `tblDocumentFiles` (
`id` int(11) NOT NULL auto_increment,
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`comment` text,
`name` varchar(150) default NULL,
`date` int(12) default NULL,
`dir` varchar(255) NOT NULL default '',
`orgFileName` varchar(150) NOT NULL default '',
`fileType` varchar(10) NOT NULL default '',
`mimeType` varchar(70) NOT NULL default '',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Not longer required by new filesystem structure
--
DROP TABLE `tblDirPath`;
DROP TABLE `tblPathList`;

73
UPDATE-v1.9/update.php Normal file
View File

@ -0,0 +1,73 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Authentication.php");
print "<html></body>";
if (!$user->isAdmin()) {
print "<b>ERROR: You must be administrator to execute the update</b>";
die;
}
function update_db()
{
global $db;
$fd = fopen ("update.sql", "r");
if (is_bool($fd)&&!$fd) return false;
$queryStr = fread($fd, filesize("update.sql"));
if (is_bool($queryStr)&&!$queryStr) return false;
fclose ($fd);
if (!$db->getResult($queryStr)) return false;
return true;
}
print "<b>Updating ...please wait</b><br>";
print "<pre>";
if (!update_db()) {
print "</pre>";
print "<b>ERROR: An error occurred during the DB update</b>";
print "<br><b>Please try to execute the update.sql manually</b>";
die;
}else print "</pre><b>Update done</b><br>";
print "</body></html>";
?>

38
UPDATE-v1.9/update.sql Normal file
View File

@ -0,0 +1,38 @@
-- mysql -uyouruser -pyourpassword yourdb < update.sql
-- this script must be executed when updating form a version < 1.9
-- --------------------------------------------------------
--
-- New field for hidden users
--
ALTER TABLE `tblUsers` ADD `hidden` smallint(1) NOT NULL default '0' ;
--
-- New field for group manager permission
--
ALTER TABLE `tblGroupMembers` ADD `manager` smallint(1) NOT NULL default '0' ;
--
-- Table structure for mandatory reviewers
--
CREATE TABLE `tblMandatoryReviewers` (
`userID` int(11) NOT NULL default '0',
`reviewerUserID` int(11) NOT NULL default '0',
`reviewerGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`reviewerUserID`,`reviewerGroupID`)
) ;
--
-- Table structure for mandatory approvers
--
CREATE TABLE `tblMandatoryApprovers` (
`userID` int(11) NOT NULL default '0',
`approverUserID` int(11) NOT NULL default '0',
`approverGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`approverUserID`,`approverGroupID`)
) ;

73
UPDATE-v2.0.1/update.php Normal file
View File

@ -0,0 +1,73 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Authentication.php");
print "<html></body>";
if (!$user->isAdmin()) {
print "<b>ERROR: You must be administrator to execute the update</b>";
die;
}
function update_db()
{
global $db;
$fd = fopen ("update.sql", "r");
if (is_bool($fd)&&!$fd) return false;
$queryStr = fread($fd, filesize("update.sql"));
if (is_bool($queryStr)&&!$queryStr) return false;
fclose ($fd);
if (!$db->getResult($queryStr)) return false;
return true;
}
print "<b>Updating ...please wait</b><br>";
print "<pre>";
if (!update_db()) {
print "</pre>";
print "<b>ERROR: An error occurred during the DB update</b>";
print "<br><b>Please try to execute the update.sql manually</b>";
die;
}else print "</pre><b>Update done</b><br>";
print "</body></html>";
?>

19
UPDATE-v2.0.1/update.sql Normal file
View File

@ -0,0 +1,19 @@
-- mysql -uyouruser -pyourpassword yourdb < update.sql
-- this script must be executed when updating form a version < 2.0
-- --------------------------------------------------------
--
-- Table structure for events (calendar)
--
CREATE TABLE `tblEvents` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(150) default NULL,
`comment` text,
`start` int(12) default NULL,
`stop` int(12) default NULL,
`date` int(12) default NULL,
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;

View File

@ -0,0 +1,166 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
class Settings
{
// Name of site -- used in the page titles. Default: MyDMS
var $_siteName = "letoDMS";
// Message to display at the bottom of every page.
var $_footNote = "letoDMS free document management system - www.letodms.com";
// if true the disclaimer message the lang.inc files will be print on the bottom of the page
var $_printDisclaimer = true;
// Default page on login. Defaults to out/out.ViewFolder.php
var $_siteDefaultPage = "";
// IDs of admin-user, guest-user and root-folder (no need to change)
var $_adminID = 1;
var $_guestID = 2;
var $_rootFolderID = 1;
// If you want anybody to login as guest, set the following line to true
// note: guest login should be used only in a trusted environment
var $_enableGuestLogin = false;
// Restricted access: only allow users to log in if they have an entry in
// the local database (irrespective of successful authentication with LDAP).
var $_restricted = true;
// Strict form checking. If set to true, then all fields in the form will
// be checked for a value. If set to false, then (most) comments and
// keyword fields become optional. Comments are always required when
// submitting a review or overriding document status.
var $_strictFormCheck = false;
// path to where mydms is located
var $_rootDir = "/var/www/letoDMS-1.10/";
// The relative path in the URL, after the domain part. Do not include the
// http:// prefix or the web host name. e.g. If the full URL is
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
// If the URL is http://www.example.com/, set $_httpRoot = "/".
var $_httpRoot = "/letoDMS-1.10/";
// Where the uploaded files are stored (best to choose a directory that
// is not accessible through your web-server)
var $_contentDir = "/var/www/letoDMS-1.10/data/";
// To work around limitations in the underlying file system, a new
// directory structure has been devised that exists within the content
// directory ($_contentDir). This requires a base directory from which
// to begin. Usually leave this to the default setting, 1048576, but can
// be any number or string that does not already exist within $_contentDir.
var $_contentOffsetDir = "1048576";
// Maximum number of sub-directories per parent directory. Default: 32700.
var $_maxDirID = 32700;
// default language (name of a subfolder in folder "languages")
var $_language = "English";
// users are notified about document-changes that took place within the last $_updateNotifyTime seconds
var $_updateNotifyTime = 86400; //means 24 hours
// files with one of the following endings can be viewed online (USE ONLY LOWER CASE CHARACTERS)
// to disable: var $_viewOnlineFileTypes = array();
var $_viewOnlineFileTypes = array(".txt", ".text", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg", ".jpeg");
// enable/disable converting of files
var $_enableConverting = true;
// default style (name of a subfolder in folder "styles")
var $_theme = "clean";
// Workaround for page titles that go over more than 2 lines.
var $_titleDisplayHack = true;
// enable/disable automatic email notification
var $_enableEmail = true;
// enable/disable group and user view for all users
var $_enableUsersView = true;
// false to don't list administrator as reviewer/approver
var $_enableAdminRevApp = false;
// the name of the versioning info file created by the backup tool
var $_versioningFileName = "versioning_info.txt";
// set false to disable log system
var $_logFileEnable = true;
// the log file rotation (h=hourly, d=daily, m=monthly)
var $_logFileRotation = "d";
// enable users images
var $_enableUserImage = false;
// enable calendar
var $_enableCalendar = true;
// first day of the week (0=sunday, 6=saturday)
var $_firstDayOfWeek = 0;
// false to don't show the folder tree
var $_enableFolderTree = true;
// -------------------------------- Database-Setup --------------------------------------------
//Path to adodb
var $_ADOdbPath = "/var/www/letoDMS-1.10/adodb/";
//DB-Driver used by adodb (see adodb-readme)
var $_dbDriver = "mysql";
//DB-Server
var $_dbHostname = "localhost";
//database where the tables for mydms are stored (optional - see adodb-readme)
var $_dbDatabase = "letodms";
//username for database-access
var $_dbUser = "letodms";
//password for database-access
var $_dbPass = "letodms";
// -------------------------------- LDAP Authentication Setup --------------------------------------------
// var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com
// var $_ldapPort = 389; // Optional.
// var $_ldapBaseDN = "";
function Settings()
{
//files with one of the following endings will be converted with the given commands
//for windows users
$this->_convertFileTypes = array(".doc" => "cscript \"" . $this->_rootDir."op/convert_word.js\" {SOURCE} {TARGET}",
".xls" => "cscript \"".$this->_rootDir."op/convert_excel.js\" {SOURCE} {TARGET}",
".ppt" => "cscript \"".$this->_rootDir."op/convert_pp.js\" {SOURCE} {TARGET}");
// For linux users
// $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}");
}
}
$settings = new Settings();
?>

406
create_tables.sql Normal file
View File

@ -0,0 +1,406 @@
--
-- Table structure for table `tblACLs`
--
CREATE TABLE `tblACLs` (
`id` int(11) NOT NULL auto_increment,
`target` int(11) NOT NULL default '0',
`targetType` tinyint(4) NOT NULL default '0',
`userID` int(11) NOT NULL default '-1',
`groupID` int(11) NOT NULL default '-1',
`mode` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentApproveLog`
--
CREATE TABLE `tblDocumentApproveLog` (
`approveLogID` int(11) NOT NULL auto_increment,
`approveID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`approveLogID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentApprovers`
--
CREATE TABLE `tblDocumentApprovers` (
`approveID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
`type` tinyint(4) NOT NULL default '0',
`required` int(11) NOT NULL default '0',
PRIMARY KEY (`approveID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentContent`
--
CREATE TABLE `tblDocumentContent` (
`document` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL auto_increment,
`comment` text,
`date` int(12) default NULL,
`createdBy` int(11) default NULL,
`dir` varchar(255) NOT NULL default '',
`orgFileName` varchar(150) NOT NULL default '',
`fileType` varchar(10) NOT NULL default '',
`mimeType` varchar(70) NOT NULL default '',
PRIMARY KEY (`document`,`version`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentLinks`
--
CREATE TABLE `tblDocumentLinks` (
`id` int(11) NOT NULL auto_increment,
`document` int(11) NOT NULL default '0',
`target` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`public` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentFiles`
--
CREATE TABLE `tblDocumentFiles` (
`id` int(11) NOT NULL auto_increment,
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`comment` text,
`name` varchar(150) default NULL,
`date` int(12) default NULL,
`dir` varchar(255) NOT NULL default '',
`orgFileName` varchar(150) NOT NULL default '',
`fileType` varchar(10) NOT NULL default '',
`mimeType` varchar(70) NOT NULL default '',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentLocks`
--
CREATE TABLE `tblDocumentLocks` (
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`document`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewLog`
--
CREATE TABLE `tblDocumentReviewLog` (
`reviewLogID` int(11) NOT NULL auto_increment,
`reviewID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`reviewLogID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewers`
--
CREATE TABLE `tblDocumentReviewers` (
`reviewID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
`type` tinyint(4) NOT NULL default '0',
`required` int(11) NOT NULL default '0',
PRIMARY KEY (`reviewID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatus`
--
CREATE TABLE `tblDocumentStatus` (
`statusID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`statusID`),
UNIQUE KEY `documentID` (`documentID`,`version`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatusLog`
--
CREATE TABLE `tblDocumentStatusLog` (
`statusLogID` int(11) NOT NULL auto_increment,
`statusID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`statusLogID`),
KEY `statusID` (`statusID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocuments`
--
CREATE TABLE `tblDocuments` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(150) default NULL,
`comment` text,
`date` int(12) default NULL,
`expires` int(12) default NULL,
`owner` int(11) default NULL,
`folder` int(11) default NULL,
`folderList` text NOT NULL,
`inheritAccess` tinyint(1) NOT NULL default '1',
`defaultAccess` tinyint(4) NOT NULL default '0',
`locked` int(11) NOT NULL default '-1',
`keywords` text NOT NULL,
`sequence` double NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblFolders`
--
CREATE TABLE `tblFolders` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(70) default NULL,
`parent` int(11) default NULL,
`comment` text,
`owner` int(11) default NULL,
`inheritAccess` tinyint(1) NOT NULL default '1',
`defaultAccess` tinyint(4) NOT NULL default '0',
`sequence` double NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `parent` (`parent`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblGroupMembers`
--
CREATE TABLE `tblGroupMembers` (
`groupID` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`manager` smallint(1) NOT NULL default '0',
PRIMARY KEY (`groupID`,`userID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblGroups`
--
CREATE TABLE `tblGroups` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(50) default NULL,
`comment` text NOT NULL,
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblKeywordCategories`
--
CREATE TABLE `tblKeywordCategories` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`owner` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblKeywords`
--
CREATE TABLE `tblKeywords` (
`id` int(11) NOT NULL auto_increment,
`category` int(11) NOT NULL default '0',
`keywords` text NOT NULL,
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblNotify`
--
CREATE TABLE `tblNotify` (
`target` int(11) NOT NULL default '0',
`targetType` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '-1',
`groupID` int(11) NOT NULL default '-1',
PRIMARY KEY (`target`,`targetType`,`userID`,`groupID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblSessions`
--
CREATE TABLE `tblSessions` (
`id` varchar(50) NOT NULL default '',
`userID` int(11) NOT NULL default '0',
`lastAccess` int(11) NOT NULL default '0',
`theme` varchar(30) NOT NULL default '',
`language` varchar(30) NOT NULL default '',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblUserImages`
--
CREATE TABLE `tblUserImages` (
`id` int(11) NOT NULL auto_increment,
`userID` int(11) NOT NULL default '0',
`image` blob NOT NULL,
`mimeType` varchar(10) NOT NULL default '',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblUsers`
--
CREATE TABLE `tblUsers` (
`id` int(11) NOT NULL auto_increment,
`login` varchar(50) default NULL,
`pwd` varchar(50) default NULL,
`fullName` varchar(100) default NULL,
`email` varchar(70) default NULL,
`language` varchar(32) NOT NULL,
`theme` varchar(32) NOT NULL,
`comment` text NOT NULL,
`isAdmin` smallint(1) NOT NULL default '0',
`hidden` smallint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- dirID is the current target content subdirectory. The last file loaded
-- into MyDMS will be physically stored here. Is updated every time a new
-- file is uploaded.
--
-- dirPath is a essentially a foreign key from tblPathList, referencing the
-- parent directory path for dirID, relative to MyDMS's _contentDir.
--
CREATE TABLE `tblDirPath` (
`dirID` int(11) NOT NULL auto_increment,
`dirPath` varchar(255) NOT NULL,
PRIMARY KEY (`dirPath`,`dirID`)
) ;
-- --------------------------------------------------------
CREATE TABLE `tblPathList` (
`id` int(11) NOT NULL auto_increment,
`parentPath` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for mandatory reviewers
--
CREATE TABLE `tblMandatoryReviewers` (
`userID` int(11) NOT NULL default '0',
`reviewerUserID` int(11) NOT NULL default '0',
`reviewerGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`reviewerUserID`,`reviewerGroupID`)
) ;
--
-- Table structure for mandatory approvers
--
CREATE TABLE `tblMandatoryApprovers` (
`userID` int(11) NOT NULL default '0',
`approverUserID` int(11) NOT NULL default '0',
`approverGroupID` int(11) NOT NULL default '0',
PRIMARY KEY (`userID`,`approverUserID`,`approverGroupID`)
) ;
--
-- Table structure for events (calendar)
--
CREATE TABLE `tblEvents` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(150) default NULL,
`comment` text,
`start` int(12) default NULL,
`stop` int(12) default NULL,
`date` int(12) default NULL,
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
--
-- Initial content for database
--
INSERT INTO tblFolders VALUES (1, 'DMS', 0, 'DMS root', 1, 0, 2, 0);
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'address@server.com', '', '', '', 1, 0);
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 0, 0);

309
delete_all_contents.sql Normal file
View File

@ -0,0 +1,309 @@
-- this delete all the db content except users
-- mysql -uroot -ppassword mydms < delete_all_contents.sql
--
-- Table structure for table `tblACLs`
--
DROP TABLE `tblACLs`;
CREATE TABLE `tblACLs` (
`id` int(11) NOT NULL auto_increment,
`target` int(11) NOT NULL default '0',
`targetType` tinyint(4) NOT NULL default '0',
`userID` int(11) NOT NULL default '-1',
`groupID` int(11) NOT NULL default '-1',
`mode` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentApproveLog`
--
DROP TABLE `tblDocumentApproveLog`;
CREATE TABLE `tblDocumentApproveLog` (
`approveLogID` int(11) NOT NULL auto_increment,
`approveID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`approveLogID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentApprovers`
--
DROP TABLE `tblDocumentApprovers`;
CREATE TABLE `tblDocumentApprovers` (
`approveID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
`type` tinyint(4) NOT NULL default '0',
`required` int(11) NOT NULL default '0',
PRIMARY KEY (`approveID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentContent`
--
DROP TABLE `tblDocumentContent`;
CREATE TABLE `tblDocumentContent` (
`document` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL auto_increment,
`comment` text,
`date` int(12) default NULL,
`createdBy` int(11) default NULL,
`dir` varchar(255) NOT NULL default '',
`orgFileName` varchar(150) NOT NULL default '',
`fileType` varchar(10) NOT NULL default '',
`mimeType` varchar(70) NOT NULL default '',
PRIMARY KEY (`document`,`version`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentLinks`
--
DROP TABLE `tblDocumentLinks`;
CREATE TABLE `tblDocumentLinks` (
`id` int(11) NOT NULL auto_increment,
`document` int(11) NOT NULL default '0',
`target` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`public` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentFiles`
--
DROP TABLE `tblDocumentFiles`;
CREATE TABLE `tblDocumentFiles` (
`id` int(11) NOT NULL auto_increment,
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
`comment` text,
`name` varchar(150) default NULL,
`date` int(12) default NULL,
`dir` varchar(255) NOT NULL default '',
`orgFileName` varchar(150) NOT NULL default '',
`fileType` varchar(10) NOT NULL default '',
`mimeType` varchar(70) NOT NULL default '',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentLocks`
--
DROP TABLE `tblDocumentLocks`;
CREATE TABLE `tblDocumentLocks` (
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`document`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewLog`
--
DROP TABLE `tblDocumentReviewLog`;
CREATE TABLE `tblDocumentReviewLog` (
`reviewLogID` int(11) NOT NULL auto_increment,
`reviewID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`reviewLogID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentReviewers`
--
DROP TABLE `tblDocumentReviewers`;
CREATE TABLE `tblDocumentReviewers` (
`reviewID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
`type` tinyint(4) NOT NULL default '0',
`required` int(11) NOT NULL default '0',
PRIMARY KEY (`reviewID`),
UNIQUE KEY `documentID` (`documentID`,`version`,`type`,`required`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatus`
--
DROP TABLE `tblDocumentStatus`;
CREATE TABLE `tblDocumentStatus` (
`statusID` int(11) NOT NULL auto_increment,
`documentID` int(11) NOT NULL default '0',
`version` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`statusID`),
UNIQUE KEY `documentID` (`documentID`,`version`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocumentStatusLog`
--
DROP TABLE `tblDocumentStatusLog`;
CREATE TABLE `tblDocumentStatusLog` (
`statusLogID` int(11) NOT NULL auto_increment,
`statusID` int(11) NOT NULL default '0',
`status` tinyint(4) NOT NULL default '0',
`comment` text NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`statusLogID`),
KEY `statusID` (`statusID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblDocuments`
--
DROP TABLE `tblDocuments`;
CREATE TABLE `tblDocuments` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(150) default NULL,
`comment` text,
`date` int(12) default NULL,
`expires` int(12) default NULL,
`owner` int(11) default NULL,
`folder` int(11) default NULL,
`folderList` text NOT NULL,
`inheritAccess` tinyint(1) NOT NULL default '1',
`defaultAccess` tinyint(4) NOT NULL default '0',
`locked` int(11) NOT NULL default '-1',
`keywords` text NOT NULL,
`sequence` double NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblFolders`
--
DROP TABLE `tblFolders`;
CREATE TABLE `tblFolders` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(70) default NULL,
`parent` int(11) default NULL,
`comment` text,
`owner` int(11) default NULL,
`inheritAccess` tinyint(1) NOT NULL default '1',
`defaultAccess` tinyint(4) NOT NULL default '0',
`sequence` double NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `parent` (`parent`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblKeywordCategories`
--
DROP TABLE `tblKeywordCategories`;
CREATE TABLE `tblKeywordCategories` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`owner` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblKeywords`
--
DROP TABLE `tblKeywords`;
CREATE TABLE `tblKeywords` (
`id` int(11) NOT NULL auto_increment,
`category` int(11) NOT NULL default '0',
`keywords` text NOT NULL,
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblNotify`
--
DROP TABLE `tblNotify`;
CREATE TABLE `tblNotify` (
`target` int(11) NOT NULL default '0',
`targetType` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '-1',
`groupID` int(11) NOT NULL default '-1',
PRIMARY KEY (`target`,`targetType`,`userID`,`groupID`)
) ;
-- --------------------------------------------------------
--
-- Table structure for table `tblSessions`
--
DROP TABLE `tblSessions`;
CREATE TABLE `tblSessions` (
`id` varchar(50) NOT NULL default '',
`userID` int(11) NOT NULL default '0',
`lastAccess` int(11) NOT NULL default '0',
`theme` varchar(30) NOT NULL default '',
`language` varchar(30) NOT NULL default '',
PRIMARY KEY (`id`)
) ;
-- --------------------------------------------------------
--
-- Initial content for database
--
INSERT INTO tblFolders VALUES (1, 'DMS', 0, 'DMS root', 1, 0, 2, 0);

132
inc.Settings.php Normal file
View File

@ -0,0 +1,132 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
class Settings
{
// Name of site -- used in the page titles. Default: MyDMS
var $_siteName = "LetoDMS Demo 1.8.1 Beta";
// Message to display at the bottom of every page.
var $_footNote = "LetoDMS Powered By Trilex Labs Group";
// Default page on login. Defaults to out/out.ViewFolder.php
var $_siteDefaultPage = "";
//IDs of admin-user, guest-user and root-folder (no need to change)
var $_adminID = 1;
var $_guestID = 2;
var $_rootFolderID = 1;
//If you don't want anybody to login as guest, set the following line to false
var $_enableGuestLogin = true;
// Restricted access: only allow users to log in if they have an entry in
// the local database (irrespective of successful authentication with LDAP).
var $_restricted = false;
// Strict form checking. If set to true, then all fields in the form will
// be checked for a value. If set to false, then (most) comments and
// keyword fields become optional. Comments are always required when
// submitting a review or overriding document status.
var $_strictFormCheck = false;
//path to where mydms is located
var $_rootDir = "/home/letodms/public_html/beta/";
// The relative path in the URL, after the domain part. Do not include the
// http:// prefix or the web host name. e.g. If the full URL is
// http://www.example.com/mydms/, set $_httpRoot = "/mydms/".
// If the URL is http://www.example.com/, set $_httpRoot = "/".
var $_httpRoot = "/beta/";
// Where the uploaded files are stored (best to choose a directory that
// is not accessible through your web-server)
var $_contentDir = "/beta/content/";
// To work around limitations in the underlying file system, and to
// preserve backwards compatibility, a new directory structure has been
// devised that exists within the content directory ($_contentDir). This
// requires a base directory from which to begin. Usually leave this to the
// default setting, 1048576, but can be any number or string that does not
// already exist within $_contentDir.
//
// To continue using the old directory structure, set $_useLegacyDir = true;
var $_useLegacyDir=false;
var $_contentOffsetDir = "1048576";
// Maximum number of sub-directories per parent directory. Default: 32700.
var $_maxDirID = 32700;
//default language (name of a subfolder in folder "languages")
var $_language = "English";
//users are notified about document-changes that took place within the last $_updateNotifyTime seconds
var $_updateNotifyTime = 86400; //means 24 hours
//files with one of the following endings can be viewed online
var $_viewOnlineFileTypes = array(".txt", ".html", ".htm", ".pdf", ".gif", ".png", ".jpg");
//enable/disable converting of files
var $_enableConverting = true;
//default style (name of a subfolder in folder "styles")
var $_theme = "blue";
// Workaround for page titles that go over more than 2 lines.
var $_titleDisplayHack = true;
// -------------------------------- Database-Setup --------------------------------------------
//Path to adodb
var $_ADOdbPath = "/home/letodms/public_html/beta/adodb/";
//DB-Driver used by adodb (see adodb-readme)
var $_dbDriver = "mysql";
//DB-Server
var $_dbHostname = "localhost";
//database where the tables for mydms are stored (optional - see adodb-readme)
var $_dbDatabase = "letodms_demobeta";
//username for database-access
var $_dbUser = "letodms_admin";
//password for database-access
var $_dbPass = "admin";
// -------------------------------- LDAP Authentication Setup --------------------------------------------
// var $_ldapHost = ""; // URIs are supported, e.g.: ldaps://ldap.host.com
// var $_ldapPort = 389; // Optional.
// var $_ldapBaseDN = "";
function Settings()
{
//files with one of the following endings will be converted with the given commands
//for windows users
$this->_convertFileTypes = array(".doc" => "cscript \"" . $this->_rootDir."op/convert_word.js\" {SOURCE} {TARGET}",
".xls" => "cscript \"".$this->_rootDir."op/convert_excel.js\" {SOURCE} {TARGET}",
".ppt" => "cscript \"".$this->_rootDir."op/convert_pp.js\" {SOURCE} {TARGET}");
// For linux users
// $this->_convertFileTypes = array(".doc" => "mswordview -o {TARGET} {SOURCE}");
}
}
$settings = new Settings();
?>

63
inc/inc.AccessUtils.php Normal file
View File

@ -0,0 +1,63 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
define("M_ANY", -1); //Used to indicate that a search should return all
// results in the ACL table. See Folder::getAccessList().
define("M_NONE", 1); //Keine Rechte
define("M_READ", 2); //Lese-Recht
define("M_READWRITE", 3); //Schreib-Lese-Recht
define("M_ALL", 4); //Unbeschränkte Rechte
define ("O_GTEQ", ">=");
define ("O_LTEQ", "<=");
define ("O_EQ", "=");
define("T_FOLDER", 1); //TargetType = Folder
define("T_DOCUMENT", 2); // " = Document
//Sortiert aus dem Array $objArr (entweder Folder- oder Document-Objeckte) alle Elemente heraus, auf
//die der Benutzer $user nicht mindestens den Zugriff $minMode hat und gib die restlichen Elemente zurück
function filterAccess($objArr, $user, $minMode)
{
if (!is_array($objArr)) {
return array();
}
$newArr = array();
foreach ($objArr as $obj)
{
if ($obj->getAccessMode($user) >= $minMode)
array_push($newArr, $obj);
}
return $newArr;
}
//Sortiert aus dem Benutzer-Array $users alle Benutzer heraus, die auf den Ordner oder das Dokument $obj
//nicht mindestens den Zugriff $minMode haben und gibt die restlichen Benutzer zurück
function filterUsersByAccess($obj, $users, $minMode)
{
$newArr = array();
foreach ($users as $currUser)
{
if ($obj->getAccessMode($currUser) >= $minMode)
array_push($newArr, $currUser);
}
return $newArr;
}
?>

View File

@ -0,0 +1,62 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$refer=urlencode($_SERVER["REQUEST_URI"]);
if (!strncmp("/op", $refer, 3)) {
$refer="";
}
if (!isset($_COOKIE["mydms_session"]))
{
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
include_once("inc.Utils.php");
$dms_session = sanitizeString($_COOKIE["mydms_session"]);
$queryStr = "SELECT * FROM tblSessions WHERE id = '".$dms_session."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
die ("Error while reading from tblSessions: " . $db->getErrorMsg());
if (count($resArr) == 0)
{
setcookie("mydms_session", $dms_session, time()-3600, $settings->_httpRoot); //delete cookie
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
$resArr = $resArr[0];
$queryStr = "UPDATE tblSessions SET lastAccess = " . mktime() . " WHERE id = '" . $resArr["id"] . "'";
if (!$db->getResult($queryStr))
die ("Error while updating tblSessions: " . $db->getErrorMsg());
$user = getUser($resArr["userID"]);
if (!is_object($user)) {
setcookie("mydms_session", $dms_session, time()-3600, $settings->_httpRoot); //delete cookie
header("Location: " . $settings->_httpRoot . "out/out.Login.php?referuri=".$refer);
exit;
}
$theme = $resArr["theme"];
include $settings->_rootDir . "languages/" . $resArr["language"] . "/lang.inc";
?>

253
inc/inc.Calendar.php Normal file
View File

@ -0,0 +1,253 @@
<?php
// Copyright (C) 2010 Matteo Lucarelli
//
// Some code from PHP Calendar Class Version 1.4 (5th March 2001)
// (C)2000-2001 David Wilkinson
// URL: http://www.cascade.org.uk/software/php/calendar/
// Email: davidw@cascade.org.uk
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
// DB //////////////////////////////////////////////////////////////////////////
function getEvents($day, $month, $year){
global $db;
$date = mktime(12,0,0, $month, $day, $year);
$queryStr = "SELECT * FROM tblEvents WHERE start <= " . $date . " AND stop >= " . $date;
$ret = $db->getResultArray($queryStr);
return $ret;
}
function getEventsInInterval($start, $stop){
global $db;
$queryStr = "SELECT * FROM tblEvents WHERE ( start <= " . $start . " AND stop >= " . $start . " ) ".
"OR ( start <= " . $stop . " AND stop >= " . $stop . " ) ".
"OR ( start >= " . $start . " AND stop <= " . $stop . " )";
$ret = $db->getResultArray($queryStr);
return $ret;
}
function addEvent($from, $to, $name, $comment ){
global $db,$user;
$queryStr = "INSERT INTO tblEvents (name, comment, start, stop, date, userID) VALUES ".
"('".$name."', '".$comment."', ".$from.", ".$to.", ".mktime().", ".$user->getID().")";
$ret = $db->getResult($queryStr);
return $ret;
}
function getEvent($id){
if (!is_numeric($id)) return false;
global $db;
$queryStr = "SELECT * FROM tblEvents WHERE id = " . $id;
$ret = $db->getResultArray($queryStr);
if (is_bool($ret) && $ret == false) return false;
else if (count($ret) != 1) return false;
return $ret[0];
}
function editEvent($id, $from, $to, $name, $comment ){
if (!is_numeric($id)) return false;
global $db;
$queryStr = "UPDATE tblEvents SET start = " . $from . ", stop = " . $to . ", name = '" . $name . "', comment = '" . $comment . "', date = " . mktime() . " WHERE id = ". $id;
$ret = $db->getResult($queryStr);
return $ret;
}
function delEvent($id){
if (!is_numeric($id)) return false;
global $db;
$queryStr = "DELETE FROM tblEvents WHERE id = " . $id;
$ret = $db->getResult($queryStr);
return $ret;
}
// utilities ///////////////////////////////////////////////////////////////////
function generateCalendarArrays()
{
global $dayNames,$monthNames,$dayNamesLong;
$monthNames = array( getMLText("january"),
getMLText("february"),
getMLText("march"),
getMLText("april"),
getMLText("may"),
getMLText("june"),
getMLText("july"),
getMLText("august"),
getMLText("september"),
getMLText("october"),
getMLText("november"),
getMLText("december") );
$dayNamesLong = array( getMLText("sunday"),
getMLText("monday"),
getMLText("tuesday"),
getMLText("wednesday"),
getMLText("thursday"),
getMLText("friday"),
getMLText("saturday") );
$dayNames = array();
foreach ( $dayNamesLong as $dn ){
$dayNames[] = substr($dn,0,2);
}
}
// Calculate the number of days in a month, taking into account leap years.
function getDaysInMonth($month, $year)
{
if ($month < 1 || $month > 12) return 0;
$daysInMonth = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
$d = $daysInMonth[$month - 1];
if ($month == 2){
if ($year%4 == 0){
if ($year%100 == 0){
if ($year%400 == 0) $d = 29;
}
else $d = 29;
}
}
return $d;
}
// Adjust dates to allow months > 12 and < 0 and day<0 or day>days of the month
function adjustDate(&$day,&$month,&$year)
{
$d=getDate(mktime(12,0,0, $month, $day, $year));
$month=$d["mon"];
$day=$d["mday"];
$year=$d["year"];
}
// output //////////////////////////////////////////////////////////////////////
// Generate the HTML for a given month
function getMonthHTML($month, $year)
{
global $dayNames,$monthNames,$settings;
if (!isset($monthNames)) generateCalendarArrays();
if (!isset($dayNames)) generateCalendarArrays();
$startDay = $settings->_firstDayOfWeek;
$day=1;
adjustDate($day,$month,$year);
$daysInMonth = getDaysInMonth($month, $year);
$date = getdate(mktime(12, 0, 0, $month, 1, $year));
$first = $date["wday"];
$monthName = $monthNames[$month - 1];
$s = "<table border=0>\n";
$s .= "<tr>\n";
$s .= "<td align=\"center\" class=\"header\" colspan=\"7\"><a href=\"../out/out.Calendar.php?mode=m&year=".$year."&month=".$month."\">".$monthName."</a></td>\n"; ;
$s .= "</tr>\n";
$s .= "<tr>\n";
$s .= "<td class=\"header\">" . $dayNames[($startDay)%7] . "</td>\n";
$s .= "<td class=\"header\">" . $dayNames[($startDay+1)%7] . "</td>\n";
$s .= "<td class=\"header\">" . $dayNames[($startDay+2)%7] . "</td>\n";
$s .= "<td class=\"header\">" . $dayNames[($startDay+3)%7] . "</td>\n";
$s .= "<td class=\"header\">" . $dayNames[($startDay+4)%7] . "</td>\n";
$s .= "<td class=\"header\">" . $dayNames[($startDay+5)%7] . "</td>\n";
$s .= "<td class=\"header\">" . $dayNames[($startDay+6)%7] . "</td>\n";
$s .= "</tr>\n";
// We need to work out what date to start at so that the first appears in the correct column
$d = $startDay + 1 - $first;
while ($d > 1) $d -= 7;
// Make sure we know when today is, so that we can use a different CSS style
$today = getdate(time());
while ($d <= $daysInMonth)
{
$s .= "<tr>\n";
for ($i = 0; $i < 7; $i++){
$class = ($year == $today["year"] && $month == $today["mon"] && $d == $today["mday"]) ? "today" : "";
$s .= "<td class=\"$class\">";
if ($d > 0 && $d <= $daysInMonth){
$s .= "<a href=\"../out/out.Calendar.php?mode=w&year=".$year."&month=".$month."&day=".$d."\">".$d."</a>";
}
else $s .= "&nbsp;";
$s .= "</td>\n";
$d++;
}
$s .= "</tr>\n";
}
$s .= "</table>\n";
return $s;
}
function printYearTable($year)
{
print "<table class=\"calendaryear\"border=\"0\">\n";
print "<tr>";
print "<td>" . getMonthHTML(1 , $year) ."</td>\n";
print "<td>" . getMonthHTML(2 , $year) ."</td>\n";
print "<td>" . getMonthHTML(3 , $year) ."</td>\n";
print "<td>" . getMonthHTML(4 , $year) ."</td>\n";
print "</tr>\n";
print "<tr>\n";
print "<td>" . getMonthHTML(5 , $year) ."</td>\n";
print "<td>" . getMonthHTML(6 , $year) ."</td>\n";
print "<td>" . getMonthHTML(7 , $year) ."</td>\n";
print "<td>" . getMonthHTML(8 , $year) ."</td>\n";
print "</tr>\n";
print "<tr>\n";
print "<td>" . getMonthHTML(9 , $year) ."</td>\n";
print "<td>" . getMonthHTML(10, $year) ."</td>\n";
print "<td>" . getMonthHTML(11, $year) ."</td>\n";
print "<td>" . getMonthHTML(12, $year) ."</td>\n";
print "</tr>\n";
print "</table>\n";
}
?>

72
inc/inc.ClassAccess.php Normal file
View File

@ -0,0 +1,72 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
/*
* Repräsentiert einen Eintrag in der tblACLs für einen User.
* Änderungen an der Berechtigung können nicht vorgenommen werden;
* dafür sind die Klassen Folder und Document selbst
* verantwortlich.
*/
class UserAccess
{
var $_userID;
var $_mode;
function UserAccess($userID, $mode)
{
$this->_userID = $userID;
$this->_mode = $mode;
}
function getUserID() { return $this->_userID; }
function getMode() { return $this->_mode; }
function getUser()
{
if (!isset($this->_user))
$this->_user = getUser($this->_userID);
return $this->_user;
}
}
class GroupAccess
{
var $_groupID;
var $_mode;
function GroupAccess($groupID, $mode)
{
$this->_groupID = $groupID;
$this->_mode = $mode;
}
function getGroupID() { return $this->_groupID; }
function getMode() { return $this->_mode; }
function getGroup()
{
if (!isset($this->_group))
$this->_group = getGroup($this->_groupID);
return $this->_group;
}
}
?>

2678
inc/inc.ClassDocument.php Normal file

File diff suppressed because it is too large Load Diff

106
inc/inc.ClassEmail.php Normal file
View File

@ -0,0 +1,106 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
class Email {
function toIndividual($sender, $recipient, $subject, $message) {
global $settings;
if ($settings->_enableEmail==FALSE) return 0;
if ($recipient->getEmail()=="") return 0;
if ((!is_object($sender) && strcasecmp(get_class($sender), "User")) ||
(!is_object($recipient) && strcasecmp(get_class($recipient), "User"))) {
return -1;
}
$header = "From: ". $sender->getFullName() ." <". $sender->getEmail() .">\r\n" .
"Reply-To: ". $sender->getFullName() ." <". $sender->getEmail() .">\r\n";
$message = getMLText("email_header")."\r\n\r\n".$message;
$message .= "\r\n\r\n".getMLText("email_footer");
return (mail($recipient->getEmail(), $subject, $message, $header) ? 0 : -1);
}
function toGroup($sender, $groupRecipient, $subject, $message) {
global $settings;
if (!$settings->_enableEmail) return 0;
if ((!is_object($sender) && strcasecmp(get_class($sender), "User")) ||
(!is_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "Group"))) {
return -1;
}
$header = "From: ". $sender->getFullName() ." <". $sender->getEmail() .">\r\n" .
"Reply-To: ". $sender->getFullName() ." <". $sender->getEmail() .">\r\n";
$toList = "";
foreach ($groupRecipient->getUsers() as $recipient) {
if ($recipient->getEmail()!="")
$toList .= (strlen($toList)==0 ? "" : ", ") . $recipient->getEmail();
}
if (strlen($toList)==0) {
return -1;
}
$message = getMLText("email_header")."\r\n\r\n".$message;
$message .= "\r\n\r\n".getMLText("email_footer");
return (mail($toList, $subject, $message, $header) ? 0 : -1);
}
function toList($sender, $recipients, $subject, $message) {
global $settings;
if (!$settings->_enableEmail) return 0;
if ((!is_object($sender) && strcasecmp(get_class($sender), "User")) ||
(!is_array($recipients) && count($recipients)==0)) {
return -1;
}
$header = "From: ". $sender->getFullName() ." <". $sender->getEmail() .">\r\n" .
"Reply-To: ". $sender->getFullName() ." <". $sender->getEmail() .">\r\n";
$toList = "";
foreach ($recipients as $recipient) {
if (is_object($recipient) && !strcasecmp(get_class($recipient), "User")) {
if ($recipient->getEmail()!="")
$toList .= (strlen($toList)==0 ? "" : ", ") . $recipient->getEmail();
}
}
if (strlen($toList)==0) {
return -1;
}
$message = getMLText("email_header")."\r\n\r\n".$message;
$message .= "\r\n\r\n".getMLText("email_footer");
return (mail($toList, $subject, $message, $header) ? 0 : -1);
}
}
?>

1166
inc/inc.ClassFolder.php Normal file

File diff suppressed because it is too large Load Diff

340
inc/inc.ClassGroup.php Normal file
View File

@ -0,0 +1,340 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
/**********************************************************************\
| statische, Group-bezogene Funktionen |
\**********************************************************************/
function getGroup($id)
{
global $db;
if (!is_numeric($id))
die ("invalid groupid");
$queryStr = "SELECT * FROM tblGroups WHERE id = " . $id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
else if (count($resArr) != 1) //wenn, dann wohl eher 0 als > 1 ;-)
return false;
$resArr = $resArr[0];
return new Group($resArr["id"], $resArr["name"], $resArr["comment"]);
}
function getGroupByName($name) {
global $db;
$queryStr = "SELECT `tblGroups`.* FROM `tblGroups` WHERE `tblGroups`.`name` = '".$name."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
else if (count($resArr) != 1) //wenn, dann wohl eher 0 als > 1 ;-)
return false;
$resArr = $resArr[0];
return new Group($resArr["id"], $resArr["name"], $resArr["comment"]);
}
function getAllGroups()
{
global $db;
$queryStr = "SELECT * FROM tblGroups ORDER BY name";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
$groups = array();
for ($i = 0; $i < count($resArr); $i++)
$groups[$i] = new Group($resArr[$i]["id"], $resArr[$i]["name"], $resArr[$i]["comment"]);
return $groups;
}
function addGroup($name, $comment)
{
global $db;
if (is_object(getGroupByName($name))) {
return false;
}
$queryStr = "INSERT INTO tblGroups (name, comment) VALUES ('".$name."', '" . $comment . "')";
if (!$db->getResult($queryStr))
return false;
return getGroup($db->getInsertID());
}
/**********************************************************************\
| Group-Klasse |
\**********************************************************************/
class Group
{
var $_id;
var $_name;
function Group($id, $name, $comment)
{
$this->_id = $id;
$this->_name = $name;
$this->_comment = $comment;
}
function getID() { return $this->_id; }
function getName() { return $this->_name; }
function setName($newName)
{
global $db;
$queryStr = "UPDATE tblGroups SET name = '" . $newName . "' WHERE id = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$this->_name = $newName;
return true;
}
function getComment() { return $this->_comment; }
function setComment($newComment)
{
global $db;
$queryStr = "UPDATE tblGroups SET comment = '" . $newComment . "' WHERE id = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$this->_comment = $newComment;
return true;
}
function getUsers()
{
global $db;
if (!isset($this->_users))
{
$queryStr = "SELECT `tblUsers`.* FROM `tblUsers` ".
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`userID`=`tblUsers`.`id` ".
"WHERE `tblGroupMembers`.`groupID` = '". $this->_id ."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
$this->_users = array();
foreach ($resArr as $row)
{
$user = new LetoDMS_User($row["id"], $row["login"], $row["pwd"], $row["fullName"], $row["email"], $row["language"], $row["theme"], $row["comment"], $row["isAdmin"]);
array_push($this->_users, $user);
}
}
return $this->_users;
}
function addUser($user,$asManager=false)
{
global $db;
$queryStr = "INSERT INTO tblGroupMembers (groupID, userID, manager) VALUES (".$this->_id.", ".$user->getID(). ", " . ($asManager?"1":"0") ." )";
$res = $db->getResult($queryStr);
if ($res) return false;
unset($this->_users);
return true;
}
function removeUser($user)
{
global $db;
$queryStr = "DELETE FROM tblGroupMembers WHERE groupID = ".$this->_id." AND userID = ".$user->getID();
$res = $db->getResult($queryStr);
if ($res) return false;
unset($this->_users);
return true;
}
// $asManager=false: verify if user is in group
// $asManager=true : verify if user is in group as manager
function isMember($user,$asManager=false)
{
if (isset($this->_users)&&!$asManager)
{
foreach ($this->_users as $usr)
if ($usr->getID() == $user->getID())
return true;
return false;
}
global $db;
if ($asManager) $queryStr = "SELECT * FROM tblGroupMembers WHERE groupID = " . $this->_id . " AND userID = " . $user->getID() . " AND manager = 1";
else $queryStr = "SELECT * FROM tblGroupMembers WHERE groupID = " . $this->_id . " AND userID = " . $user->getID();
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false) return false;
if (count($resArr) != 1) return false;
return true;
}
function toggleManager($user)
{
global $db;
if (!$this->isMember($user)) return false;
if ($this->isMember($user,true)) $queryStr = "UPDATE tblGroupMembers SET manager = 0 WHERE groupID = ".$this->_id." AND userID = ".$user->getID();
else $queryStr = "UPDATE tblGroupMembers SET manager = 1 WHERE groupID = ".$this->_id." AND userID = ".$user->getID();
if (!$db->getResult($queryStr)) return false;
return true;
}
/**
* Entfernt die Gruppe aus dem System.
* Dies ist jedoch nicht mit einem Löschen des entsprechenden Eintrags aus tblGroups geschehen - vielmehr
* muss dafür gesorgt werden, dass die Gruppe nirgendwo mehr auftaucht. D.h. auch die Tabellen tblACLs,
* tblNotify und tblGroupMembers müssen berücksichtigt werden.
*/
function remove()
{
GLOBAl $db, $user;
$queryStr = "DELETE FROM tblGroups WHERE id = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$queryStr = "DELETE FROM tblGroupMembers WHERE groupID = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$queryStr = "DELETE FROM tblACLs WHERE groupID = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$queryStr = "DELETE FROM tblNotify WHERE groupID = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$queryStr = "DELETE FROM tblMandatoryReviewers WHERE reviewerGroupID = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$queryStr = "DELETE FROM tblMandatoryApprovers WHERE approverGroupID = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
// TODO : update document status if reviewer/approver has been deleted
$reviewStatus = $this->getReviewStatus();
foreach ($reviewStatus as $r) {
$queryStr = "INSERT INTO `tblDocumentReviewLog` (`reviewID`, `status`, `comment`, `date`, `userID`) ".
"VALUES ('". $r["reviewID"] ."', '-2', 'Review group removed from process', NOW(), '". $user->getID() ."')";
$res=$db->getResult($queryStr);
}
$approvalStatus = $this->getApprovalStatus();
foreach ($approvalStatus as $a) {
$queryStr = "INSERT INTO `tblDocumentApproveLog` (`approveID`, `status`, `comment`, `date`, `userID`) ".
"VALUES ('". $a["approveID"] ."', '-2', 'Approval group removed from process', NOW(), '". $user->getID() ."')";
$res=$db->getResult($queryStr);
}
return true;
}
function getReviewStatus($documentID=null, $version=null) {
global $db;
if (!$db->createTemporaryTable("ttreviewid")) {
return false;
}
$status = array();
// See if the group is assigned as a reviewer.
$queryStr = "SELECT `tblDocumentReviewers`.*, `tblDocumentReviewLog`.`status`, ".
"`tblDocumentReviewLog`.`comment`, `tblDocumentReviewLog`.`date`, ".
"`tblDocumentReviewLog`.`userID` ".
"FROM `tblDocumentReviewers` ".
"LEFT JOIN `tblDocumentReviewLog` USING (`reviewID`) ".
"LEFT JOIN `ttreviewid` on `ttreviewid`.`maxLogID` = `tblDocumentReviewLog`.`reviewLogID` ".
"WHERE `ttreviewid`.`maxLogID`=`tblDocumentReviewLog`.`reviewLogID` ".
($documentID==null ? "" : "AND `tblDocumentReviewers`.`documentID` = '". $documentID ."' ").
($version==null ? "" : "AND `tblDocumentReviewers`.`version` = '". $version ."' ").
"AND `tblDocumentReviewers`.`type`='1' ".
"AND `tblDocumentReviewers`.`required`='". $this->_id ."' ";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr)>0) {
foreach ($resArr as $res)
$status[] = $res;
}
return $status;
}
function getApprovalStatus($documentID=null, $version=null) {
global $db;
if (!$db->createTemporaryTable("ttapproveid")) {
return false;
}
$status = array();
// See if the group is assigned as an approver.
$queryStr = "SELECT `tblDocumentApprovers`.*, `tblDocumentApproveLog`.`status`, ".
"`tblDocumentApproveLog`.`comment`, `tblDocumentApproveLog`.`date`, ".
"`tblDocumentApproveLog`.`userID` ".
"FROM `tblDocumentApprovers` ".
"LEFT JOIN `tblDocumentApproveLog` USING (`approveID`) ".
"LEFT JOIN `ttapproveid` on `ttapproveid`.`maxLogID` = `tblDocumentApproveLog`.`approveLogID` ".
"WHERE `ttapproveid`.`maxLogID`=`tblDocumentApproveLog`.`approveLogID` ".
($documentID==null ? "" : "AND `tblDocumentApprovers`.`documentID` = '". $documentID ."' ").
($version==null ? "" : "AND `tblDocumentApprovers`.`version` = '". $version ."' ").
"AND `tblDocumentApprovers`.`type`='1' ".
"AND `tblDocumentApprovers`.`required`='". $this->_id ."' ";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr)>0) {
foreach ($resArr as $res)
$status[] = $res;
}
return $status;
}
}
?>

188
inc/inc.ClassKeywords.php Normal file
View File

@ -0,0 +1,188 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
function getKeywordCategory($id) {
GLOBAL $db;
if (!is_numeric($id))
die ("invalid id");
$queryStr = "SELECT * FROM tblKeywordCategories WHERE id = " . $id;
$resArr = $db->getResultArray($queryStr);
if ((is_bool($resArr) && !$resArr) || (count($resArr) != 1))
return false;
$resArr = $resArr[0];
return new Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
}
function getKeywordCategoryByName($name, $owner) {
GLOBAL $db;
$queryStr = "SELECT * FROM tblKeywordCategories WHERE name = '" . $name . "' AND owner = '" . $owner. "'";
$resArr = $db->getResultArray($queryStr);
if ((is_bool($resArr) && !$resArr) || (count($resArr) != 1))
return false;
$resArr = $resArr[0];
return new Keywordcategory($resArr["id"], $resArr["owner"], $resArr["name"]);
}
function getAllKeywordCategories($userID = -1) {
GLOBAL $db, $settings;
$queryStr = "SELECT * FROM tblKeywordCategories";
if ($userID != -1)
$queryStr .= " WHERE owner = $userID OR owner = " . $settings->_adminID;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && !$resArr)
return false;
$categories = array();
foreach ($resArr as $row)
array_push($categories, new KeywordCategory($row["id"], $row["owner"], $row["name"]));
return $categories;
}
function getAllUserKeywordCategories($userID) {
GLOBAL $db, $settings;
$queryStr = "SELECT * FROM tblKeywordCategories";
if ($userID != -1)
$queryStr .= " WHERE owner = " . $userID;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && !$resArr)
return false;
$categories = array();
foreach ($resArr as $row)
array_push($categories, new KeywordCategory($row["id"], $row["owner"], $row["name"]));
return $categories;
}
function addKeywordCategory($owner, $name) {
global $db;
if (is_object(getKeywordCategoryByName($name, owner))) {
return false;
}
$queryStr = "INSERT INTO tblKeywordCategories (owner, name) VALUES ($owner, '$name')";
if (!$db->getResult($queryStr))
return false;
return getKeywordCategory($db->getInsertID());
}
//----------------------------------------------------------------------------------------------
class KeywordCategory
{
var $_id;
var $_ownerID;
var $_name;
function KeywordCategory($id, $ownerID, $name)
{
$this->_id = $id;
$this->_name = $name;
$this->_ownerID = $ownerID;
}
function getID() { return $this->_id; }
function getName() { return $this->_name; }
function getOwner() {
if (!isset($this->_owner))
$this->_owner = getUser($this->_ownerID);
return $this->_owner;
}
function setName($newName)
{
GLOBAL $db;
$queryStr = "UPDATE tblKeywordCategories SET name = '$newName' WHERE id = ". $this->_id;
if (!$db->getResult($queryStr))
return false;
$this->_name = $newName;
return true;
}
function setOwner($user) {
GLOBAL $db;
$queryStr = "UPDATE tblKeywordCategories SET owner = " . $user->getID() . " WHERE id " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$this->_ownerID = $user->getID();
$this->_owner = $user;
return true;
}
function getKeywordLists() {
GLOBAL $db;
$queryStr = "SELECT * FROM tblKeywords WHERE category = " . $this->_id;
return $db->getResultArray($queryStr);
}
function editKeywordList($listID, $keywords) {
GLOBAL $db;
$queryStr = "UPDATE tblKeywords SET keywords = '$keywords' WHERE id = $listID";
return $db->getResult($queryStr);
}
function addKeywordList($keywords) {
GLOBAL $db;
$queryStr = "INSERT INTO tblKeywords (category, keywords) VALUES (" . $this->_id . ", '$keywords')";
return $db->getResult($queryStr);
}
function removeKeywordList($listID) {
GLOBAL $db;
$queryStr = "DELETE FROM tblKeywords WHERE id = $listID";
return $db->getResult($queryStr);
}
function remove()
{
GLOBAL $db;
$queryStr = "DELETE FROM tblKeywords WHERE category = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$queryStr = "DELETE FROM tblKeywordCategories WHERE id = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
return true;
}
}
?>

719
inc/inc.ClassUI.php Normal file
View File

@ -0,0 +1,719 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
if (!isset($theme) || strlen($theme)==0) {
$theme = $settings->_theme;
}
if (strlen($theme)==0) {
$theme="blue";
}
// for extension use LOWER CASE only
$icons = array();
$icons["txt"] = "txt.png";
$icons["text"] = "txt.png";
$icons["doc"] = "word.png";
$icons["dot"] = "word.png";
$icons["docx"] = "word.png";
$icons["dotx"] = "word.png";
$icons["rtf"] = "document.png";
$icons["xls"] = "excel.png";
$icons["xlt"] = "excel.png";
$icons["xlsx"] = "excel.png";
$icons["xltx"] = "excel.png";
$icons["ppt"] = "powerpoint.png";
$icons["pot"] = "powerpoint.png";
$icons["pptx"] = "powerpoint.png";
$icons["potx"] = "powerpoint.png";
$icons["exe"] = "binary.png";
$icons["html"] = "html.png";
$icons["htm"] = "html.png";
$icons["gif"] = "image.png";
$icons["jpg"] = "image.png";
$icons["jpeg"] = "image.png";
$icons["bmp"] = "image.png";
$icons["png"] = "image.png";
$icons["tif"] = "image.png";
$icons["tiff"] = "image.png";
$icons["log"] = "log.png";
$icons["midi"] = "midi.png";
$icons["pdf"] = "pdf.png";
$icons["wav"] = "sound.png";
$icons["mp3"] = "sound.png";
$icons["c"] = "source_c.png";
$icons["cpp"] = "source_cpp.png";
$icons["h"] = "source_h.png";
$icons["java"] = "source_java.png";
$icons["py"] = "source_py.png";
$icons["tar"] = "tar.png";
$icons["gz"] = "gz.png";
$icons["7z"] = "gz.png";
$icons["bz"] = "gz.png";
$icons["bz2"] = "gz.png";
$icons["tgz"] = "gz.png";
$icons["zip"] = "gz.png";
$icons["mpg"] = "video.png";
$icons["avi"] = "video.png";
$icons["tex"] = "tex.png";
$icons["ods"] = "ooo_spreadsheet.png";
$icons["ots"] = "ooo_spreadsheet.png";
$icons["sxc"] = "ooo_spreadsheet.png";
$icons["stc"] = "ooo_spreadsheet.png";
$icons["odt"] = "ooo_textdocument.png";
$icons["ott"] = "ooo_textdocument.png";
$icons["sxw"] = "ooo_textdocument.png";
$icons["stw"] = "ooo_textdocument.png";
$icons["odp"] = "ooo_presentation.png";
$icons["otp"] = "ooo_presentation.png";
$icons["sxi"] = "ooo_presentation.png";
$icons["sti"] = "ooo_presentation.png";
$icons["odg"] = "ooo_drawing.png";
$icons["otg"] = "ooo_drawing.png";
$icons["sxd"] = "ooo_drawing.png";
$icons["std"] = "ooo_drawing.png";
$icons["odf"] = "ooo_formula.png";
$icons["sxm"] = "ooo_formula.png";
$icons["smf"] = "ooo_formula.png";
$icons["mml"] = "ooo_formula.png";
$icons["default"] = "default.png";
class UI {
function getStyles() {
GLOBAL $settings;
$themes = array();
$path = $settings->_rootDir . "styles/";
$handle = opendir($path);
while ($entry = readdir($handle) ) {
if ($entry == ".." || $entry == ".")
continue;
else if (is_dir($path . $entry))
array_push($themes, $entry);
}
closedir($handle);
return $themes;
}
function htmlStartPage($title="", $bodyClass="") {
global $theme, $settings;
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n".
"\"http://www.w3.org/TR/html4/strict.dtd\">\n";
echo "<html>\n<head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n";
echo "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../styles/".$theme."/style.css\"/>\n";
echo "<link rel=\"STYLESHEET\" type=\"text/css\" href=\"../styles/print.css\" media=\"print\"/>\n";
echo "<link rel='shortcut icon' href='../styles/".$theme."/favicon.ico' type='image/x-icon'/>\n";
echo "<title>".(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS").(strlen($title)>0 ? ": " : "").$title."</title>\n";
echo "</head>\n";
echo "<body".(strlen($bodyClass)>0 ? " class=\"".$bodyClass."\"" : "").">\n";
}
function htmlEndPage() {
UI::footNote();
echo "</body>\n</html>\n";
}
function footNote() {
global $settings;
if ($settings->_printDisclaimer){
echo "<div class=\"disclaimer\">".getMLText("disclaimer")."</div>";
}
if (isset($settings->_footNote) && strlen((string)$settings->_footNote)>0) {
echo "<div class=\"footNote\">".(string)$settings->_footNote."</div>";
}
return;
}
function globalBanner() {
global $settings;
echo "<div class=\"globalBox\" id=\"noNav\">\n";
echo "<div class=\"globalTR\"></div>\n";
echo "<div id=\"logo\"><img src='../styles/logo.png'></div>\n";
echo "<div class=\"siteNameLogin\">".
(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS").
"</div>\n";
echo "<div style=\"clear: both; height: 0px; font-size:0;\">&nbsp;</div>\n".
"</div>\n";
return;
}
function globalNavigation($folder=null) {
global $settings, $user;
echo "<div class=\"globalBox\">\n";
echo "<div class=\"globalTR\"></div>\n";
echo "<ul class=\"globalNav\">\n";
echo "<li id=\"first\"><a href=\"../out/out.ViewFolder.php?folderid=".$settings->_rootFolderID."\">".getMLText("content")."</a></li>\n";
if ($settings->_enableCalendar) echo "<li><a href=\"../out/out.Calendar.php?mode=".$settings->_calendarDefaultView."\">".getMLText("calendar")."</a></li>\n";
echo "<li><a href=\"../out/out.MyDocuments.php?inProcess=1\">".getMLText("my_documents")."</a></li>\n";
echo "<li><a href=\"../out/out.MyAccount.php\">".getMLText("my_account")."</a></li>\n";
if ($user->isAdmin()) echo "<li><a href=\"../out/out.AdminTools.php\">".getMLText("admin_tools")."</a></li>\n";
echo "<li><a href=\"../out/out.Help.php\">".getMLText("help")."</a></li>\n";
echo "<li id=\"search\">\n";
echo "<form action=\"../op/op.Search.php\">";
if ($folder!=null && is_object($folder) && !strcasecmp(get_class($folder), "Folder")) {
echo "<input type=\"hidden\" name=\"folderid\" value=\"".$folder->getID()."\" />";
}
echo "<input type=\"hidden\" name=\"navBar\" value=\"1\" />";
echo "<input type=\"hidden\" name=\"searchin[]\" value=\"1\" />";
echo "<input type=\"hidden\" name=\"searchin[]\" value=\"2\" />";
echo "<input type=\"hidden\" name=\"searchin[]\" value=\"3\" />";
echo "<input name=\"query\" type=\"text\" size=\"20\" /><input type=\"submit\" value=\"".getMLText("search")."\" id=\"searchButton\"/></form>\n";
echo "</li>\n</ul>\n";
echo "<div id=\"logo\"><img src='../styles/logo.png'></div>\n";
echo "<div class=\"siteName\">".
(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS").
"</div>\n";
echo "<span class=\"absSpacerNorm\"></span>\n";
echo "<div id=\"signatory\">".getMLText("signed_in_as")." ".$user->getFullName().
" (<a href=\"../op/op.Logout.php\">".getMLText("sign_out")."</a>).</div>\n";
echo "<div style=\"clear: both; height: 0px; font-size:0;\">&nbsp;</div>\n".
"</div>\n";
return;
}
function pageNavigation($pageTitle, $pageType=null, $extra=null) {
global $settings, $user;
echo "<div class=\"headingContainer\">\n";
// This spacer span is an awful hack, but it is the only way I know to
// get the spacer to match the mainheading content's size.
echo "<span class=\"absSpacerTitle\">".($settings->_titleDisplayHack ? $pageTitle : "")."</span>\n";
echo "<div class=\"mainHeading\">".$pageTitle."</div>\n";
echo "<div style=\"clear: both; height: 0px; font-size:0;\"></div>\n</div>\n";
if ($pageType!=null && strcasecmp($pageType, "noNav")) {
echo "<div class=\"localNavContainer\">\n";
switch ($pageType) {
case "view_folder":
UI::folderNavigationBar($extra);
break;
case "view_document":
UI::documentNavigationBar();
break;
case "my_documents":
UI::myDocumentsNavigationBar();
break;
case "my_account":
UI::accountNavigationBar();
break;
case "admin_tools":
UI::adminToolsNavigationBar();
break;
case "calendar";
UI::calendarNavigationBar($extra);
break;
}
echo "<div style=\"clear: both; height: 0px; font-size:0;\"></div>\n</div>\n";
}
return;
}
function folderNavigationBar($folder) {
global $user, $settings, $theme;
if (!is_object($folder) || strcasecmp(get_class($folder), "Folder")) {
echo "<ul class=\"localNav\">\n";
echo "</ul>\n";
return;
}
$accessMode = $folder->getAccessMode($user);
$folderID = $folder->getID();
echo "<ul class=\"localNav\">\n";
if ($accessMode == M_READ && $user->getID() != $settings->_guestID) {
echo "<li id=\"first\"><a href=\"../out/out.FolderNotify.php?folderid=". $folderID ."&showtree=".showtree()."\">".getMLText("edit_folder_notify")."</a></li>\n";
}
else if ($accessMode >= M_READWRITE) {
echo "<li id=\"first\"><a href=\"../out/out.AddSubFolder.php?folderid=". $folderID ."&showtree=".showtree()."\">".getMLText("add_subfolder")."</a></li>\n";
echo "<li><a href=\"../out/out.AddDocument.php?folderid=". $folderID ."&showtree=".showtree()."\">".getMLText("add_document")."</a></li>\n";
echo "<li><a href=\"../out/out.EditFolder.php?folderid=". $folderID ."&showtree=".showtree()."\">".getMLText("edit_folder_props")."</a></li>\n";
echo "<li><a href=\"../out/out.FolderNotify.php?folderid=". $folderID ."&showtree=".showtree()."\">".getMLText("edit_existing_notify")."</a></li>\n";
if ($folderID != $settings->_rootFolderID && $folder->getParent())
echo "<li><a href=\"../out/out.MoveFolder.php?folderid=". $folderID ."&showtree=".showtree()."\">".getMLText("move_folder")."</a></li>\n";
}
if ($accessMode == M_ALL) {
if ($folderID != $settings->_rootFolderID && $folder->getParent())
echo "<li><a href=\"../out/out.RemoveFolder.php?folderid=". $folderID ."&showtree=".showtree()."\">".getMLText("rm_folder")."</a></li>\n";
echo "<li><a href=\"../out/out.FolderAccess.php?folderid=". $folderID ."&showtree=".showtree()."\">".getMLText("edit_folder_access")."</a></li>\n";
}
echo "</ul>\n";
return;
}
function documentNavigationBar() {
global $user, $settings, $document;
$accessMode = $document->getAccessMode($user);
$docid=".php?documentid=" . $document->getID();
echo "<ul class=\"localNav\">\n";
if ($accessMode >= M_READWRITE) {
if (!$document->isLocked()) {
echo "<li id=\"first\"><a href=\"../out/out.UpdateDocument". $docid ."\">".getMLText("update_document")."</a></li>";
echo "<li><a href=\"../op/op.LockDocument". $docid ."\">".getMLText("lock_document")."</a></li>";
echo "<li><a href=\"../out/out.EditDocument". $docid ."\">".getMLText("edit_document_props")."</a></li>";
echo "<li><a href=\"../out/out.MoveDocument". $docid ."\">".getMLText("move_document")."</a></li>";
}
else {
$lockingUser = $document->getLockingUser();
if (($lockingUser->getID() == $user->getID()) || ($document->getAccessMode($user) == M_ALL)) {
echo "<li id=\"first\"><a href=\"../out/out.UpdateDocument". $docid ."\">".getMLText("update_document")."</a></li>";
echo "<li><a href=\"../op/op.UnlockDocument". $docid ."\">".getMLText("unlock_document")."</a></li>";
echo "<li><a href=\"../out/out.EditDocument". $docid ."\">".getMLText("edit_document_props")."</a></li>";
echo "<li><a href=\"../out/out.MoveDocument". $docid ."\">".getMLText("move_document")."</a></li>";
echo "<li><a href=\"../out/out.SetExpires". $docid ."\">".getMLText("expires")."</a></li>";
}
}
}
if ($accessMode == M_ALL) {
echo "<li><a href=\"../out/out.RemoveDocument". $docid ."\">".getMLText("rm_document")."</a></li>";
echo "<li><a href=\"../out/out.DocumentAccess". $docid ."\">".getMLText("edit_document_access")."</a></li>";
}
if ($accessMode >= M_READ && $user->getID() != $settings->_guestID) {
echo "<li><a href=\"../out/out.DocumentNotify". $docid ."\">".getMLText("edit_existing_notify")."</a></li>";
}
echo "</ul>\n";
return;
}
function accountNavigationBar() {
global $settings,$user;
echo "<ul class=\"localNav\">\n";
echo "<li id=\"first\"><a href=\"../out/out.EditUserData.php\">".getMLText("edit_user_details")."</a></li>\n";
if (!$user->isAdmin())
echo "<li><a href=\"../out/out.UserDefaultKeywords.php\">".getMLText("edit_default_keywords")."</a></li>\n";
if ($settings->_enableUsersView){
echo "<li><a href=\"../out/out.UsrView.php\">".getMLText("users")."</a></li>\n";
echo "<li><a href=\"../out/out.GroupView.php\">".getMLText("groups")."</a></li>\n";
}
echo "<li><a href=\"../out/out.ManageNotify.php\">".getMLText("edit_existing_notify")."</a></li>\n";
echo "</ul>\n";
return;
}
function myDocumentsNavigationBar() {
echo "<ul class=\"localNav\">\n";
echo "<li id=\"first\"><a href=\"../out/out.MyDocuments.php?inProcess=1\">".getMLText("documents_in_process")."</a></li>\n";
echo "<li><a href=\"../out/out.MyDocuments.php\">".getMLText("all_documents")."</a></li>\n";
echo "<li><a href=\"../out/out.ReviewSummary.php\">".getMLText("review_summary")."</a></li>\n";
echo "<li><a href=\"../out/out.ApprovalSummary.php\">".getMLText("approval_summary")."</a></li>\n";
echo "</ul>\n";
return;
}
function adminToolsNavigationBar() {
global $settings;
echo "<ul class=\"localNav\">\n";
echo "<li id=\"first\"><a href=\"../out/out.Statistic.php\">".getMLText("folders_and_documents_statistic")."</a></li>\n";
echo "<li><a href=\"../out/out.BackupTools.php\">".getMLText("backup_tools")."</a></li>\n";
if ($settings->_logFileEnable) echo "<li><a href=\"../out/out.LogManagement.php\">".getMLText("log_management")."</a></li>\n";
echo "<li><a href=\"../out/out.UsrMgr.php\">".getMLText("user_management")."</a></li>\n";
echo "<li><a href=\"../out/out.GroupMgr.php\">".getMLText("group_management")."</a></li>\n";
echo "<li><a href=\"../out/out.DefaultKeywords.php\">".getMLText("global_default_keywords")."</a></li>\n";
echo "</ul>\n";
return;
}
function calendarNavigationBar($d){
$ds="&day=".$d[0]."&month=".$d[1]."&year=".$d[2];
echo "<ul class=\"localNav\">\n";
echo "<li><a href=\"../out/out.Calendar.php?mode=w".$ds."\">".getMLText("week_view")."</a></li>\n";
echo "<li><a href=\"../out/out.Calendar.php?mode=m".$ds."\">".getMLText("month_view")."</a></li>\n";
echo "<li><a href=\"../out/out.Calendar.php?mode=y".$ds."\">".getMLText("year_view")."</a></li>\n";
echo "<li><a href=\"../out/out.AddEvent.php\">".getMLText("add_event")."</a></li>\n";
echo "</ul>\n";
return;
}
function pageList($pageNumber, $totalPages, $baseURI, $params) {
if (!is_numeric($pageNumber) || !is_numeric($totalPages) || $totalPages<2) {
return;
}
// Construct the basic URI based on the $_GET array. One could use a
// regular expression to strip out the pg (page number) variable to
// achieve the same effect. This seems to be less haphazard though...
$resultsURI = $baseURI;
$first=true;
foreach ($params as $key=>$value) {
// Don't include the page number in the basic URI. This is added in
// during the list display loop.
if (!strcasecmp($key, "pg")) {
continue;
}
if (is_array($value)) {
foreach ($value as $subvalue) {
$resultsURI .= ($first ? "?" : "&").$key."%5B%5D=".$subvalue;
$first = false;
}
}
else {
$resultsURI .= ($first ? "?" : "&").$key."=".$value;
}
$first = false;
}
echo "<div class=\"pageList\">";
echo getMLText("results_page").": ";
for ($i = 1; $i <= $totalPages; $i++) {
if ($i == $pageNumber) echo "<span class=\"selected\">".$i."</span> ";
else echo "<a href=\"".$resultsURI.($first ? "?" : "&")."pg=".$i."\">".$i."</a>"." ";
}
if ($totalPages>1) {
echo "<a href=\"".$resultsURI.($first ? "?" : "&")."pg=all\">".getMLText("all_pages")."</a>"." ";
}
echo "</div>";
return;
}
function contentContainer($content) {
echo "<div class=\"contentContainer\">\n";
echo "<div class=\"content\">\n";
echo "<div class=\"content-l\"><div class=\"content-r\"><div class=\"content-br\"><div class=\"content-bl\">\n";
echo $content;
echo "</div></div></div></div>\n</div>\n</div>\n";
return;
}
function contentContainerStart() {
echo "<div class=\"contentContainer\">\n";
echo "<div class=\"content\">\n";
echo "<div class=\"content-l\"><div class=\"content-r\"><div class=\"content-br\"><div class=\"content-bl\">\n";
return;
}
function contentContainerEnd() {
echo "</div></div></div></div>\n</div>\n</div>\n";
return;
}
function contentHeading($heading) {
echo "<div class=\"contentHeading\">".$heading."</div>\n";
return;
}
function contentSubHeading($heading, $first=false) {
echo "<div class=\"contentSubHeading\"".($first ? " id=\"first\"" : "").">".$heading."</div>\n";
return;
}
function getMimeIcon($fileType) {
global $icons;
$ext = strtolower(substr($fileType, 1));
if (isset($icons[$ext])) {
return $icons[$ext];
}
else {
return $icons["default"];
}
}
function printDateChooser($defDate = -1, $varName) {
if ($defDate == -1)
$defDate = mktime();
$day = date("d", $defDate);
$month = date("m", $defDate);
$year = date("Y", $defDate);
print "<select name=\"" . $varName . "day\">\n";
for ($i = 1; $i <= 31; $i++)
{
print "<option value=\"" . $i . "\"";
if (intval($day) == $i)
print " selected";
print ">" . $i . "</option>\n";
}
print "</select> \n";
print "<select name=\"" . $varName . "month\">\n";
for ($i = 1; $i <= 12; $i++)
{
print "<option value=\"" . $i . "\"";
if (intval($month) == $i)
print " selected";
print ">" . $i . "</option>\n";
}
print "</select> \n";
print "<select name=\"" . $varName . "year\">\n";
for ($i = $year-5 ; $i <= $year+5 ; $i++)
{
print "<option value=\"" . $i . "\"";
if (intval($year) == $i)
print " selected";
print ">" . $i . "</option>\n";
}
print "</select>";
}
function printSequenceChooser($objArr, $keepID = -1) {
if (count($objArr) > 0) {
$max = $objArr[count($objArr)-1]->getSequence() + 1;
$min = $objArr[0]->getSequence() - 1;
}
else {
$max = 1.0;
}
print "<select name=\"sequence\">\n";
if ($keepID != -1) {
print " <option value=\"keep\">" . getMLText("seq_keep");
}
print " <option value=\"".$max."\">" . getMLText("seq_end");
if (count($objArr) > 0) {
print " <option value=\"".$min."\">" . getMLText("seq_start");
}
for ($i = 0; $i < count($objArr) - 1; $i++) {
if (($objArr[$i]->getID() == $keepID) || (($i + 1 < count($objArr)) && ($objArr[$i+1]->getID() == $keepID))) {
continue;
}
$index = ($objArr[$i]->getSequence() + $objArr[$i+1]->getSequence()) / 2;
print " <option value=\"".$index."\">" . getMLText("seq_after", array("prevname" => $objArr[$i]->getName() ) );
}
print "</select>";
}
function printDocumentChooser($formName) {
global $settings;
?>
<script language="JavaScript">
var openDlg;
function chooseDoc<?php print $formName ?>() {
openDlg = open("../out/out.DocumentChooser.php?folderid=<?php echo $settings->_rootFolderID?>&form=<?php echo urlencode($formName)?>", "openDlg", "width=480,height=480,scrollbars=yes,resizable=yes,status=yes");
}
</script>
<?php
print "<input type=\"Hidden\" name=\"docid".$formName."\">";
print "<input disabled name=\"docname".$formName."\">";
print "&nbsp;&nbsp;<input type=\"Button\" value=\"".getMLText("document")."...\" onclick=\"chooseDoc".$formName."();\">";
}
function printFolderChooser($formName, $accessMode, $exclude = -1, $default = false) {
global $settings;
?>
<script language="JavaScript">
var openDlg;
function chooseFolder<?php print $formName ?>() {
openDlg = open("out.FolderChooser.php?form=<?php echo $formName?>&mode=<?php echo $accessMode?>&exclude=<?php echo $exclude?>", "openDlg", "width=480,height=480,scrollbars=yes,resizable=yes,status=yes");
}
</script>
<?php
print "<input type=\"Hidden\" name=\"targetid".$formName."\" value=\"". (($default) ? $default->getID() : "") ."\">";
print "<input disabled name=\"targetname".$formName."\" value=\"". (($default) ? $default->getName() : "") ."\">";
print "&nbsp;&nbsp;<input type=\"Button\" value=\"".getMLText("folder")."...\" onclick=\"chooseFolder".$formName."();\">";
}
function getImgPath($img) {
global $theme;
if ( is_file("../styles/$theme/images/$img") ) {
return "../styles/$theme/images/$img";
}
else if ( is_file("../styles/$theme/img/$img") ) {
return "../styles/$theme/img/$img";
}
return "../out/images/$img";
}
function printImgPath($img) {
print UI::getImgPath($img);
}
function exitError($pagetitle,$error){
UI::htmlStartPage($pagetitle);
UI::globalNavigation();
print "<div class=\"error\">";
print $error;
print "</div>";
UI::htmlEndPage();
add_log_line(" UI::exitError error=".$error." pagetitle=".$pagetitle);
exit;
}
// navigation flag is used for items links (navigation or selection)
function printFoldersTree($accessMode, $exclude, $folderID, $currentFolderID=-1, $navigation=false)
{
global $user, $form, $settings;
if ($settings->_expandFolderTree==2){
// folder completely open
$is_open=true;
}else if ($settings->_expandFolderTree==1 && $folderID==$settings->_rootFolderID ){
$is_open=true;
}else{
// open the tree until the current folder
$is_open=false;
if ($currentFolderID!=-1){
$currentFolder=getFolder($currentFolderID);
if (is_object($currentFolder)){
$parent=$currentFolder->getParent();
while (is_object($parent)){
if ($parent->getID()==$folderID){
$is_open=true;
break;
}
$parent=$parent->getParent();
}
}
}
}
$folder = getFolder($folderID);
if (!is_object($folder)) return;
$subFolders = $folder->getSubFolders();
$subFolders = filterAccess($subFolders, $user, M_READ);
if ($folderID == $settings->_rootFolderID) print "<ul style='list-style-type: none;' class='tree'>\n";
print "<li>\n";
if (count($subFolders) > 0){
print "<a href=\"javascript:toggleTree(".$folderID.")\"><img class='treeicon' name=\"treedot".$folderID."\" src=\"";
if ($is_open) UI::printImgPath("minus.png");
else UI::printImgPath("plus.png");
print "\" border=0></a>\n";
}
else{
print "<img class='treeicon' src=\"";
UI::printImgPath("blank.png");
print "\" border=0>\n";
}
if ($folder->getAccessMode($user) >= $accessMode) {
if ($folderID != $currentFolderID){
if ($navigation) print "<a href=\"../out/out.ViewFolder.php?folderid=" . $folderID . "&showtree=1\">";
else print "<a class=\"foldertree_selectable\" href=\"javascript:folderSelected(" . $folderID . ", '" . sanitizeString($folder->getName()) . "')\">";
}else print "<span class=\"selectedfoldertree\">";
if ($is_open) print "<img src=\"".UI::getImgPath("folder_opened.gif")."\" border=0 name=\"treeimg".$folderID."\">".$folder->getName();
else print "<img src=\"".UI::getImgPath("folder_closed.gif")."\" border=0 name=\"treeimg".$folderID."\">".$folder->getName();
if ($folderID != $currentFolderID) print "</a>\n";
else print "</span>";
}
else print "<img src=\"".UI::getImgPath("folder_closed.gif")."\" width=18 height=18 border=0>".$folder->getName()."\n";
if ($is_open) print "<ul style='list-style-type: none;' id=\"tree".$folderID."\" >\n";
else print "<ul style='list-style-type: none; display: none;' id=\"tree".$folderID."\" >\n";
for ($i = 0; $i < count($subFolders); $i++) {
if ($subFolders[$i]->getID() == $exclude) continue;
UI::printFoldersTree( $accessMode, $exclude, $subFolders[$i]->getID(),$currentFolderID,$navigation);
}
print "</ul>\n";
if ($folderID == $settings->_rootFolderID) print "</ul>\n";
}
function printTreeNavigation($folderid,$showtree){
global $settings;
?>
<script language="JavaScript">
function toggleTree(id){
obj = document.getElementById("tree" + id);
if ( obj.style.display == "none" ){
obj.style.display = "";
document["treeimg" + id].src = "<?php UI::printImgPath("folder_opened.gif"); ?>";
document["treedot" + id].src = "<?php UI::printImgPath("minus.png"); ?>";
}else{
obj.style.display = "none";
document["treeimg" + id].src = "<?php UI::printImgPath("folder_closed.gif"); ?>";
document["treedot" + id].src = "<?php UI::printImgPath("plus.png"); ?>";
}
}
</script>
<?php
print "<table width=\"100%\"><tr>";
if ($showtree==1){
print "<td id='tree-open'>";
UI::contentHeading("<a href=\"../out/out.ViewFolder.php?folderid=". $folderid."&showtree=0\"><img src=\"".UI::getImgPath("m.png")."\" border=0></a>");
UI::contentContainerStart();
UI::printFoldersTree(M_READ, -1, $settings->_rootFolderID, $folderid, true);
UI::contentContainerEnd();
}else{
print "<td id='tree-closed'>";
UI::contentHeading("<a href=\"../out/out.ViewFolder.php?folderid=". $folderid."&showtree=1\"><img src=\"".UI::getImgPath("p.png")."\" border=0></a>");
UI::contentContainerStart();
UI::contentContainerEnd();
}
print "</td><td>";
}
}
?>

705
inc/inc.ClassUser.php Normal file
View File

@ -0,0 +1,705 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Uwe Steinmann
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
/**********************************************************************\
| statische, User-bezogene Funktionen |
\**********************************************************************/
function getUser($id)
{
return LetoDMS_User::getUser($id);
}
function getUserByLogin($login)
{
return LetoDMS_User::getUserByLogin($login);
}
function getAllUsers()
{
global $db;
$queryStr = "SELECT * FROM tblUsers ORDER BY login";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
$users = array();
for ($i = 0; $i < count($resArr); $i++)
$users[$i] = new LetoDMS_User($resArr[$i]["id"], $resArr[$i]["login"], $resArr[$i]["pwd"], $resArr[$i]["fullName"], $resArr[$i]["email"], (isset($resArr["language"])?$resArr["language"]:NULL), (isset($resArr["theme"])?$resArr["theme"]:NULL), $resArr[$i]["comment"], $resArr[$i]["isAdmin"], $resArr[$i]["hidden"]);
return $users;
}
function addUser($login, $pwd, $fullName, $email, $language, $theme, $comment, $isAdmin=0, $isHidden=0) {
return LetoDMS_User::addUser($login, $pwd, $fullName, $email, $language, $theme, $comment, $isAdmin, $isHidden);
}
/**********************************************************************\
| User-Klasse |
\**********************************************************************/
class LetoDMS_User
{
var $_id;
var $_login;
var $_pwd;
var $_fullName;
var $_email;
var $_language;
var $_theme;
var $_comment;
var $_isAdmin;
var $_isHidden;
function LetoDMS_User($id, $login, $pwd, $fullName, $email, $language, $theme, $comment, $isAdmin, $isHidden=0)
{
$this->_id = $id;
$this->_login = $login;
$this->_pwd = $pwd;
$this->_fullName = $fullName;
$this->_email = $email;
$this->_language = $language;
$this->_theme = $theme;
$this->_comment = $comment;
$this->_isAdmin = $isAdmin;
$this->_isHidden = $isHidden;
}
function getUser($id) {
GLOBAL $db;
if (!is_numeric($id))
return false;
$queryStr = "SELECT * FROM tblUsers WHERE id = " . $id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false) return false;
if (count($resArr) != 1) return false;
$resArr = $resArr[0];
return new LetoDMS_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["isAdmin"], $resArr["hidden"]);
}
function getUserByLogin($login)
{
global $db;
$queryStr = "SELECT * FROM tblUsers WHERE login = '".$login."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false) return false;
if (count($resArr) != 1) return false;
$resArr = $resArr[0];
return new LetoDMS_User($resArr["id"], $resArr["login"], $resArr["pwd"], $resArr["fullName"], $resArr["email"], $resArr["language"], $resArr["theme"], $resArr["comment"], $resArr["isAdmin"], $resArr["hidden"]);
}
function addUser($login, $pwd, $fullName, $email, $language, $theme, $comment, $isAdmin=0, $isHidden=0) {
global $db;
if (is_object(self::getUserByLogin($login))) {
return false;
}
$queryStr = "INSERT INTO tblUsers (login, pwd, fullName, email, language, theme, comment, isAdmin, hidden) VALUES ('".$login."', '".$pwd."', '".$fullName."', '".$email."', '".$language."', '".$theme."', '".$comment."', '".$isAdmin."', '".$isHidden."')";
$res = $db->getResult($queryStr);
if (!$res)
return false;
return self::getUser($db->getInsertID());
}
function getID() { return $this->_id; }
function getLogin() { return $this->_login; }
function setLogin($newLogin)
{
GLOBAL $db;
$queryStr = "UPDATE tblUsers SET login ='" . $newLogin . "' WHERE id = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_login = $newLogin;
return true;
}
function getFullName() { return $this->_fullName; }
function setFullName($newFullName)
{
GLOBAL $db;
$queryStr = "UPDATE tblUsers SET fullname = '" . $newFullName . "' WHERE id = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_fullName = $newFullName;
return true;
}
function getPwd() { return $this->_pwd; }
function setPwd($newPwd)
{
GLOBAL $db;
$queryStr = "UPDATE tblUsers SET pwd ='" . $newPwd . "' WHERE id = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_pwd = $newPwd;
return true;
}
function getEmail() { return $this->_email; }
function setEmail($newEmail)
{
GLOBAL $db;
$queryStr = "UPDATE tblUsers SET email ='" . $newEmail . "' WHERE id = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_email = $newEmail;
return true;
}
function getLanguage() { return $this->_language; }
function setLanguage($newLanguage)
{
GLOBAL $db;
$queryStr = "UPDATE tblUsers SET language ='" . $newLanguage . "' WHERE id = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_language = $newLanguage;
return true;
}
function getTheme() { return $this->_theme; }
function setTheme($newTheme)
{
GLOBAL $db;
$queryStr = "UPDATE tblUsers SET theme ='" . $newTheme . "' WHERE id = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_theme = $newTheme;
return true;
}
function getComment() { return $this->_comment; }
function setComment($newComment)
{
GLOBAL $db;
$queryStr = "UPDATE tblUsers SET comment ='" . $newComment . "' WHERE id = " . $this->_id;
$res = $db->getResult($queryStr);
if (!$res)
return false;
$this->_comment = $newComment;
return true;
}
function isAdmin() { return $this->_isAdmin; }
function setAdmin($isAdmin)
{
GLOBAL $db;
$isAdmin = ($isAdmin) ? "1" : "0";
$queryStr = "UPDATE tblUsers SET isAdmin = " . $isAdmin . " WHERE id = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$this->_isAdmin = $isAdmin;
return true;
}
function isHidden() { return $this->_isHidden; }
function setHidden($isHidden)
{
GLOBAL $db;
$isHidden = ($isHidden) ? "1" : "0";
$queryStr = "UPDATE tblUsers SET hidden = " . $isHidden . " WHERE id = " . $this->_id;
if (!$db->getResult($queryStr))
return false;
$this->_isHidden = $isAdmin;
return true;
}
/**
* Entfernt den Benutzer aus dem System.
* Dies ist jedoch nicht mit einem Löschen des entsprechenden Eintrags aus tblUsers geschehen - vielmehr
* muss dafür gesorgt werden, dass der Benutzer nirgendwo mehr auftaucht. D.h. auch die Tabellen tblACLs,
* tblNotify, tblGroupMembers, tblFolders, tblDocuments und tblDocumentContent müssen berücksichtigt werden.
*/
function remove() {
GLOBAL $db, $settings, $user;
if ($this->_id==$settings->_adminID) {
return false; // Cannot delete administrator.
}
//Private Stichwortlisten löschen
$queryStr = "SELECT tblKeywords.id FROM tblKeywords, tblKeywordCategories WHERE tblKeywords.category = tblKeywordCategories.id AND tblKeywordCategories.owner = " . $this->_id;
$resultArr = $db->getResultArray($queryStr);
if (count($resultArr) > 0) {
$queryStr = "DELETE FROM tblKeywords WHERE ";
for ($i = 0; $i < count($resultArr); $i++) {
$queryStr .= "id = " . $resultArr[$i]["id"];
if ($i + 1 < count($resultArr))
$queryStr .= " OR ";
}
if (!$db->getResult($queryStr)) return false;
}
$queryStr = "DELETE FROM tblKeywordCategories WHERE owner = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
//Benachrichtigungen entfernen
$queryStr = "DELETE FROM tblNotify WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
//Der Besitz von Dokumenten oder Ordnern, deren bisheriger Besitzer der zu löschende war, geht an den Admin über
$queryStr = "UPDATE tblFolders SET owner = " . $settings->_adminID . " WHERE owner = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
$queryStr = "UPDATE tblDocuments SET owner = " . $settings->_adminID . " WHERE owner = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
$queryStr = "UPDATE tblDocumentContent SET createdBy = " . $settings->_adminID . " WHERE createdBy = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
//Verweise auf Dokumente: Private löschen...
$queryStr = "DELETE FROM tblDocumentLinks WHERE userID = " . $this->_id . " AND public = 0";
if (!$db->getResult($queryStr)) return false;
//... und öffentliche an Admin übergeben
$queryStr = "UPDATE tblDocumentLinks SET userID = " . $settings->_adminID . " WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
// set administrator for deleted user's attachments
$queryStr = "UPDATE tblDocumentFiles SET userID = " . $settings->_adminID . " WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
//Evtl. von diesem Benutzer gelockte Dokumente werden freigegeben
$queryStr = "DELETE FROM tblDocumentLocks WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
//User aus allen Gruppen löschen
$queryStr = "DELETE FROM tblGroupMembers WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
//User aus allen ACLs streichen
$queryStr = "DELETE FROM tblACLs WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
//Eintrag aus tblUsers löschen
$queryStr = "DELETE FROM tblUserImages WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
//Eintrag aus tblUsers löschen
$queryStr = "DELETE FROM tblUsers WHERE id = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
// mandatory review/approve
$queryStr = "DELETE FROM tblMandatoryReviewers WHERE reviewerUserID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
$queryStr = "DELETE FROM tblMandatoryApprovers WHERE approverUserID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
$queryStr = "DELETE FROM tblMandatoryReviewers WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
$queryStr = "DELETE FROM tblMandatoryApprovers WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
// set administrator for deleted user's events
$queryStr = "UPDATE tblEvents SET userID = " . $settings->_adminID . " WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
// TODO : update document status if reviewer/approver has been deleted
// "DELETE FROM tblDocumentApproveLog WHERE userID = " . $this->_id;
// "DELETE FROM tblDocumentReviewLog WHERE userID = " . $this->_id;
$reviewStatus = $this->getReviewStatus();
foreach ($reviewStatus["indstatus"] as $ri) {
$queryStr = "INSERT INTO `tblDocumentReviewLog` (`reviewID`, `status`, `comment`, `date`, `userID`) ".
"VALUES ('". $ri["reviewID"] ."', '-2', 'Reviewer removed from process', NOW(), '". $user->getID() ."')";
$res=$db->getResult($queryStr);
}
$approvalStatus = $this->getApprovalStatus();
foreach ($approvalStatus["indstatus"] as $ai) {
$queryStr = "INSERT INTO `tblDocumentApproveLog` (`approveID`, `status`, `comment`, `date`, `userID`) ".
"VALUES ('". $ai["approveID"] ."', '-2', 'Approver removed from process', NOW(), '". $user->getID() ."')";
$res=$db->getResult($queryStr);
}
// unset($this);
return true;
}
function joinGroup($group)
{
if ($group->isMember($this))
return false;
if (!$group->addUser($this))
return false;
unset($this->_groups);
return true;
}
function leaveGroup($group)
{
if (!$group->isMember($this))
return false;
if (!$group->removeUser($this))
return false;
unset($this->_groups);
return true;
}
function getGroups() {
GLOBAL $db;
if (!isset($this->_groups))
{
$queryStr = "SELECT `tblGroups`.*, `tblGroupMembers`.`userID` FROM `tblGroups` ".
"LEFT JOIN `tblGroupMembers` ON `tblGroups`.`id` = `tblGroupMembers`.`groupID` ".
"WHERE `tblGroupMembers`.`userID`='". $this->_id ."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
$this->_groups = array();
foreach ($resArr as $row) {
$group = new Group($row["id"], $row["name"], $row["comment"]);
array_push($this->_groups, $group);
}
}
return $this->_groups;
}
function isMemberOfGroup($group)
{
return $group->isMember($this);
}
function hasImage()
{
if (!isset($this->_hasImage))
{
GLOBAL $db;
$queryStr = "SELECT COUNT(*) AS num FROM tblUserImages WHERE userID = " . $this->_id;
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if ($resArr[0]["num"] == 0) $this->_hasImage = false;
else $this->_hasImage = true;
}
return $this->_hasImage;
}
function getImageURL()
{
GLOBAL $settings;
// if (!$this->hasImage())
// return false;
return $settings->_httpRoot . "out/out.UserImage.php?userid=" . $this->_id;
}
function setImage($tmpfile, $mimeType)
{
GLOBAL $db;
$fp = fopen($tmpfile, "rb");
if (!$fp) return false;
$content = fread($fp, filesize($tmpfile));
fclose($fp);
if ($this->hasImage())
$queryStr = "UPDATE tblUserImages SET image = '".base64_encode($content)."', mimeType = '". $mimeType."' WHERE userID = " . $this->_id;
else
$queryStr = "INSERT INTO tblUserImages (userID, image, mimeType) VALUES (" . $this->_id . ", '".base64_encode($content)."', '".$mimeType."')";
if (!$db->getResult($queryStr))
return false;
$this->_hasImage = true;
return true;
}
function getReviewStatus($documentID=null, $version=null) {
GLOBAL $db;
if (!$db->createTemporaryTable("ttreviewid")) {
return false;
}
$status = array("indstatus"=>array(), "grpstatus"=>array());
// See if the user is assigned as an individual reviewer.
$queryStr = "SELECT `tblDocumentReviewers`.*, `tblDocumentReviewLog`.`status`, ".
"`tblDocumentReviewLog`.`comment`, `tblDocumentReviewLog`.`date`, ".
"`tblDocumentReviewLog`.`userID` ".
"FROM `tblDocumentReviewers` ".
"LEFT JOIN `tblDocumentReviewLog` USING (`reviewID`) ".
"LEFT JOIN `ttreviewid` on `ttreviewid`.`maxLogID` = `tblDocumentReviewLog`.`reviewLogID` ".
"WHERE `ttreviewid`.`maxLogID`=`tblDocumentReviewLog`.`reviewLogID` ".
($documentID==null ? "" : "AND `tblDocumentReviewers`.`documentID` = '". $documentID ."' ").
($version==null ? "" : "AND `tblDocumentReviewers`.`version` = '". $version ."' ").
"AND `tblDocumentReviewers`.`type`='0' ".
"AND `tblDocumentReviewers`.`required`='". $this->_id ."' ";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr)>0) {
foreach ($resArr as $res)
$status["indstatus"][] = $res;
}
// See if the user is the member of a group that has been assigned to
// review the document version.
$queryStr = "SELECT `tblDocumentReviewers`.*, `tblDocumentReviewLog`.`status`, ".
"`tblDocumentReviewLog`.`comment`, `tblDocumentReviewLog`.`date`, ".
"`tblDocumentReviewLog`.`userID` ".
"FROM `tblDocumentReviewers` ".
"LEFT JOIN `tblDocumentReviewLog` USING (`reviewID`) ".
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`groupID` = `tblDocumentReviewers`.`required` ".
"LEFT JOIN `ttreviewid` on `ttreviewid`.`maxLogID` = `tblDocumentReviewLog`.`reviewLogID` ".
"WHERE `ttreviewid`.`maxLogID`=`tblDocumentReviewLog`.`reviewLogID` ".
($documentID==null ? "" : "AND `tblDocumentReviewers`.`documentID` = '". $documentID ."' ").
($version==null ? "" : "AND `tblDocumentReviewers`.`version` = '". $version ."' ").
"AND `tblDocumentReviewers`.`type`='1' ".
"AND `tblGroupMembers`.`userID`='". $this->_id ."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr)>0) {
foreach ($resArr as $res)
$status["grpstatus"][] = $res;
}
return $status;
}
function getApprovalStatus($documentID=null, $version=null) {
GLOBAL $db;
if (!$db->createTemporaryTable("ttapproveid")) {
return false;
}
$status = array("indstatus"=>array(), "grpstatus"=>array());
// See if the user is assigned as an individual approver.
$queryStr = "SELECT `tblDocumentApprovers`.*, `tblDocumentApproveLog`.`status`, ".
"`tblDocumentApproveLog`.`comment`, `tblDocumentApproveLog`.`date`, ".
"`tblDocumentApproveLog`.`userID` ".
"FROM `tblDocumentApprovers` ".
"LEFT JOIN `tblDocumentApproveLog` USING (`approveID`) ".
"LEFT JOIN `ttapproveid` on `ttapproveid`.`maxLogID` = `tblDocumentApproveLog`.`approveLogID` ".
"WHERE `ttapproveid`.`maxLogID`=`tblDocumentApproveLog`.`approveLogID` ".
($documentID==null ? "" : "AND `tblDocumentApprovers`.`documentID` = '". $documentID ."' ").
($version==null ? "" : "AND `tblDocumentApprovers`.`version` = '". $version ."' ").
"AND `tblDocumentApprovers`.`type`='0' ".
"AND `tblDocumentApprovers`.`required`='". $this->_id ."' ";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr)>0) {
foreach ($resArr as $res)
$status["indstatus"][] = $res;
}
// See if the user is the member of a group that has been assigned to
// approve the document version.
$queryStr = "SELECT `tblDocumentApprovers`.*, `tblDocumentApproveLog`.`status`, ".
"`tblDocumentApproveLog`.`comment`, `tblDocumentApproveLog`.`date`, ".
"`tblDocumentApproveLog`.`userID` ".
"FROM `tblDocumentApprovers` ".
"LEFT JOIN `tblDocumentApproveLog` USING (`approveID`) ".
"LEFT JOIN `tblGroupMembers` ON `tblGroupMembers`.`groupID` = `tblDocumentApprovers`.`required` ".
"LEFT JOIN `ttapproveid` on `ttapproveid`.`maxLogID` = `tblDocumentApproveLog`.`approveLogID` ".
"WHERE `ttapproveid`.`maxLogID`=`tblDocumentApproveLog`.`approveLogID` ".
($documentID==null ? "" : "AND `tblDocumentApprovers`.`documentID` = '". $documentID ."' ").
($version==null ? "" : "AND `tblDocumentApprovers`.`version` = '". $version ."' ").
"AND `tblDocumentApprovers`.`type`='1' ".
"AND `tblGroupMembers`.`userID`='". $this->_id ."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
if (count($resArr)>0) {
foreach ($resArr as $res)
$status["grpstatus"][] = $res;
}
return $status;
}
function getDocuments() {
GLOBAL $db;
if (!isset($this->_documents))
{
$queryStr = "SELECT `tblDocuments`.*, `tblDocumentLocks`.`userID` as `lockUser` ".
"FROM `tblDocuments` ".
"LEFT JOIN `tblDocumentLocks` ON `tblDocuments`.`id`=`tblDocumentLocks`.`document` ".
"WHERE `tblDocuments`.`owner` = " . $this->_id . " ORDER BY `sequence`";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && !$resArr)
return false;
$this->_documents = array();
foreach ($resArr as $row) {
array_push($this->_documents, new Document($row["id"], $row["name"], $row["comment"], $row["date"], $row["expires"], $row["owner"], $row["folder"], $row["inheritAccess"], $row["defaultAccess"], $row["lockUser"], $row["keywords"], $row["sequence"]));
}
}
return $this->_documents;
}
function getMandatoryReviewers()
{
GLOBAL $db;
$queryStr = "SELECT * FROM tblMandatoryReviewers WHERE userID = " . $this->_id;
$resArr = $db->getResultArray($queryStr);
return $resArr;
}
function getMandatoryApprovers()
{
GLOBAL $db;
$queryStr = "SELECT * FROM tblMandatoryApprovers WHERE userID = " . $this->_id;
$resArr = $db->getResultArray($queryStr);
return $resArr;
}
function setMandatoryReviewer($id, $isgroup=false)
{
GLOBAL $db;
if ($isgroup){
$queryStr = "SELECT * FROM tblMandatoryReviewers WHERE userID = " . $this->_id . " AND reviewerGroupID = " . $id;
$resArr = $db->getResultArray($queryStr);
if (count($resArr)!=0) return;
$queryStr = "INSERT INTO tblMandatoryReviewers (userID, reviewerGroupID) VALUES (" . $this->_id . ", " . $id .")";
$resArr = $db->getResult($queryStr);
if (is_bool($resArr) && !$resArr) return false;
}else{
$queryStr = "SELECT * FROM tblMandatoryReviewers WHERE userID = " . $this->_id . " AND reviewerUserID = " . $id;
$resArr = $db->getResultArray($queryStr);
if (count($resArr)!=0) return;
$queryStr = "INSERT INTO tblMandatoryReviewers (userID, reviewerUserID) VALUES (" . $this->_id . ", " . $id .")";
$resArr = $db->getResult($queryStr);
if (is_bool($resArr) && !$resArr) return false;
}
}
function setMandatoryApprover($id, $isgroup=false)
{
GLOBAL $db;
if ($isgroup){
$queryStr = "SELECT * FROM tblMandatoryApprovers WHERE userID = " . $this->_id . " AND approverGroupID = " . $id;
$resArr = $db->getResultArray($queryStr);
if (count($resArr)!=0) return;
$queryStr = "INSERT INTO tblMandatoryApprovers (userID, approverGroupID) VALUES (" . $this->_id . ", " . $id .")";
$resArr = $db->getResult($queryStr);
if (is_bool($resArr) && !$resArr) return false;
}else{
$queryStr = "SELECT * FROM tblMandatoryApprovers WHERE userID = " . $this->_id . " AND approverUserID = " . $id;
$resArr = $db->getResultArray($queryStr);
if (count($resArr)!=0) return;
$queryStr = "INSERT INTO tblMandatoryApprovers (userID, approverUserID) VALUES (" . $this->_id . ", " . $id .")";
$resArr = $db->getResult($queryStr);
if (is_bool($resArr) && !$resArr) return false;
}
}
function delMandatoryReviewers()
{
GLOBAL $db;
$queryStr = "DELETE FROM tblMandatoryReviewers WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
}
function delMandatoryApprovers()
{
GLOBAL $db;
$queryStr = "DELETE FROM tblMandatoryApprovers WHERE userID = " . $this->_id;
if (!$db->getResult($queryStr)) return false;
}
}
?>

246
inc/inc.DBAccess.php Normal file
View File

@ -0,0 +1,246 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include $settings->_ADOdbPath . "adodb.inc.php";
/**********************************************************************\
| Klasse zum Datenbankzugriff |
\**********************************************************************/
//Zugriff erfolgt auf MySQL-Server
class DatabaseAccess
{
var $_driver;
var $_hostname;
var $_database;
var $_user;
var $_passw;
var $_conn;
var $_connected;
var $_ttreviewid;
var $_ttapproveid;
var $_ttstatid;
var $_ttcontentid;
/*
Backup functions
*/
function TableList()
{
return $this->_conn->MetaTables("TABLES");
}
/**
* Konstruktor
*/
function DatabaseAccess($driver, $hostname, $user, $passw, $database = false)
{
$this->_driver = $driver;
$this->_hostname = $hostname;
$this->_database = $database;
$this->_user = $user;
$this->_passw = $passw;
$this->_connected = false;
// $tt*****id is a hack to ensure that we do not try to create the
// temporary table twice during a single connection. Can be fixed by
// using Views (MySQL 5.0 onward) instead of temporary tables.
// CREATE ... IF NOT EXISTS cannot be used because it has the
// unpleasant side-effect of performing the insert again even if the
// table already exists.
//
// See createTemporaryTable() method for implementation.
$this->_ttreviewid = false;
$this->_ttapproveid = false;
$this->_ttstatid = false;
$this->_ttcontentid = false;
}
/**
* Baut Verbindung zur Datenquelle auf und liefert
* true bei Erfolg, andernfalls false
*/
function connect()
{
$this->_conn = ADONewConnection($this->_driver);
if ($this->_database)
$this->_conn->Connect($this->_hostname, $this->_user, $this->_passw, $this->_database);
else
$this->_conn->Connect($this->_hostname, $this->_user, $this->_passw);
if (!$this->_conn)
return false;
$this->_connected = true;
return true;
}
/**
* Stellt sicher, dass eine Verbindung zur Datenquelle aufgebaut ist
* true bei Erfolg, andernfalls false
*/
function ensureConnected()
{
if (!$this->_connected) return $this->connect();
else return true;
}
/**
* Führt die SQL-Anweisung $queryStr aus und liefert das Ergebnis-Set als Array (d.h. $queryStr
* muss eine select-anweisung sein).
* Falls die Anfrage fehlschlägt wird false geliefert
*/
function getResultArray($queryStr)
{
$resArr = array();
$res = $this->_conn->Execute($queryStr);
if (!$res) {
print "<br>" . $this->getErrorMsg() . "<br>" . $queryStr . "</br>";
return false;
}
$resArr = $res->GetArray();
$res->Close();
return $resArr;
}
/**
* Führt die SQL-Anweisung $queryStr aus (die kein ergebnis-set liefert, z.b. insert, del usw) und
* gibt das resultat zurück
*/
function getResult($queryStr, $silent=false)
{
$res = $this->_conn->Execute($queryStr);
if (!$res && !$silent)
print "<br>" . $this->getErrorMsg() . "<br>" . $queryStr . "</br>";
return $res;
}
function getInsertID()
{
return $this->_conn->Insert_ID();
}
function getErrorMsg()
{
return $this->_conn->ErrorMsg();
}
function getErrorNo()
{
return $this->_conn->ErrorNo();
}
function createTemporaryTable($tableName, $override=false) {
if (!strcasecmp($tableName, "ttreviewid")) {
$queryStr = "CREATE TEMPORARY TABLE IF NOT EXISTS `ttreviewid` (PRIMARY KEY (`reviewID`), INDEX (`maxLogID`)) ".
"SELECT `tblDocumentReviewLog`.`reviewID`, ".
"MAX(`tblDocumentReviewLog`.`reviewLogID`) AS `maxLogID` ".
"FROM `tblDocumentReviewLog` ".
"GROUP BY `tblDocumentReviewLog`.`reviewID` ".
"ORDER BY `tblDocumentReviewLog`.`reviewLogID`";
if (!$this->_ttreviewid) {
if (!$this->getResult($queryStr))
return false;
$this->_ttreviewid=true;
}
else {
if (is_bool($override) && $override) {
if (!$this->getResult("DELETE FROM `ttreviewid`"))
return false;
if (!$this->getResult($queryStr))
return false;
}
}
return $this->_ttreviewid;
}
else if (!strcasecmp($tableName, "ttapproveid")) {
$queryStr = "CREATE TEMPORARY TABLE IF NOT EXISTS `ttapproveid` (PRIMARY KEY (`approveID`), INDEX (`maxLogID`)) ".
"SELECT `tblDocumentApproveLog`.`approveID`, ".
"MAX(`tblDocumentApproveLog`.`approveLogID`) AS `maxLogID` ".
"FROM `tblDocumentApproveLog` ".
"GROUP BY `tblDocumentApproveLog`.`approveID` ".
"ORDER BY `tblDocumentApproveLog`.`approveLogID`";
if (!$this->_ttapproveid) {
if (!$this->getResult($queryStr))
return false;
$this->_ttapproveid=true;
}
else {
if (is_bool($override) && $override) {
if (!$this->getResult("DELETE FROM `ttapproveid`"))
return false;
if (!$this->getResult($queryStr))
return false;
}
}
return $this->_ttapproveid;
}
else if (!strcasecmp($tableName, "ttstatid")) {
$queryStr = "CREATE TEMPORARY TABLE IF NOT EXISTS `ttstatid` (PRIMARY KEY (`statusID`), INDEX (`maxLogID`)) ".
"SELECT `tblDocumentStatusLog`.`statusID`, ".
"MAX(`tblDocumentStatusLog`.`statusLogID`) AS `maxLogID` ".
"FROM `tblDocumentStatusLog` ".
"GROUP BY `tblDocumentStatusLog`.`statusID` ".
"ORDER BY `tblDocumentStatusLog`.`statusLogID`";
if (!$this->_ttstatid) {
if (!$this->getResult($queryStr))
return false;
$this->_ttstatid=true;
}
else {
if (is_bool($override) && $override) {
if (!$this->getResult("DELETE FROM `ttstatid`"))
return false;
if (!$this->getResult($queryStr))
return false;
}
}
return $this->_ttstatid;
}
else if (!strcasecmp($tableName, "ttcontentid")) {
$queryStr = "CREATE TEMPORARY TABLE `ttcontentid` (PRIMARY KEY (`document`), INDEX (`maxVersion`)) ".
"SELECT `tblDocumentContent`.`document`, ".
"MAX(`tblDocumentContent`.`version`) AS `maxVersion` ".
"FROM `tblDocumentContent` ".
"GROUP BY `tblDocumentContent`.`document` ".
"ORDER BY `tblDocumentContent`.`document`";
if (!$this->_ttcontentid) {
if (!$this->getResult($queryStr))
return false;
$this->_ttcontentid=true;
}
else {
if (is_bool($override) && $override) {
if (!$this->getResult("DELETE FROM `ttcontentid`"))
return false;
if (!$this->getResult($queryStr))
return false;
}
}
return $this->_ttcontentid;
}
return false;
}
}
?>

24
inc/inc.DBInit.php Normal file
View File

@ -0,0 +1,24 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Uwe Steinmann
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$db = new DatabaseAccess($settings->_dbDriver, $settings->_dbHostname, $settings->_dbUser, $settings->_dbPass, $settings->_dbDatabase);
$db->connect() or die ("Could not connect to db-server \"" . $settings->_dbHostname . "\"");
?>

175
inc/inc.FileUtils.php Normal file
View File

@ -0,0 +1,175 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
function renameFile($old, $new)
{
return @rename($old, $new);
}
function removeFile($file)
{
return @unlink($file);
}
function copyFile($source, $target)
{
return @copy($source, $target);
}
function moveFile($source, $target)
{
if (!@copyFile($source, $target))
return false;
return @removeFile($source);
}
function renameDir($old, $new)
{
return @rename($old, $new);
}
function makeDir($path)
{
/*
if (strncmp($path, DIRECTORY_SEPARATOR, 1) == 0) {
$mkfolder = DIRECTORY_SEPARATOR;
}
else {
$mkfolder = "";
}
$path = preg_split( "/[\\\\\/]/" , $path );
for( $i=0 ; isset( $path[$i] ) ; $i++ )
{
if(!strlen(trim($path[$i])))continue;
$mkfolder .= $path[$i];
if( !is_dir( $mkfolder ) ){
$res=@mkdir( "$mkfolder" , 0777);
if (!$res) return false;
}
$mkfolder .= DIRECTORY_SEPARATOR;
}
return true;*/
// patch from alekseynfor safe_mod or open_basedir
global $settings;
$path = substr_replace ($path, "/", 0, strlen($settings->_contentDir));
$mkfolder = $settings->_contentDir;
$path = preg_split( "/[\\\\\/]/" , $path );
for( $i=0 ; isset( $path[$i] ) ; $i++ )
{
if(!strlen(trim($path[$i])))continue;
$mkfolder .= $path[$i];
if( !is_dir( $mkfolder ) ){
$res= @mkdir( "$mkfolder" , 0777);
if (!$res) return false;
}
$mkfolder .= DIRECTORY_SEPARATOR;
}
return true;
}
function removeDir($path)
{
$handle = @opendir($path);
while ($entry = @readdir($handle) )
{
if ($entry == ".." || $entry == ".")
continue;
else if (is_dir($path . $entry))
{
if (!removeDir($path . $entry . "/"))
return false;
}
else
{
if (!@unlink($path . $entry))
return false;
}
}
@closedir($handle);
return @rmdir($path);
}
function copyDir($sourcePath, $targetPath)
{
if (mkdir($targetPath, 0777))
{
$handle = @opendir($sourcePath);
while ($entry = @readdir($handle) )
{
if ($entry == ".." || $entry == ".")
continue;
else if (is_dir($sourcePath . $entry))
{
if (!copyDir($sourcePath . $entry . "/", $targetPath . $entry . "/"))
return false;
}
else
{
if (!@copy($sourcePath . $entry, $targetPath . $entry))
return false;
}
}
@closedir($handle);
}
else
return false;
return true;
}
function moveDir($sourcePath, $targetPath)
{
if (!copyDir($sourcePath, $targetPath))
return false;
return removeDir($sourcePath);
}
// code by Kioob (php.net manual)
function gzcompressfile($source,$level=false)
{
$dest=$source.'.gz';
$mode='wb'.$level;
$error=false;
if($fp_out=@gzopen($dest,$mode)){
if($fp_in=@fopen($source,'rb')){
while(!feof($fp_in))
@gzwrite($fp_out,fread($fp_in,1024*512));
@fclose($fp_in);
}
else $error=true;
@gzclose($fp_out);
}
else $error=true;
if($error) return false;
else return $dest;
}
?>

229
inc/inc.Language.php Normal file
View File

@ -0,0 +1,229 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
function getLanguages()
{
GLOBAL $settings;
$languages = array();
$path = $settings->_rootDir . "languages/";
$handle = opendir($path);
while ($entry = readdir($handle) )
{
if ($entry == ".." || $entry == ".")
continue;
else if (is_dir($path . $entry))
array_push($languages, $entry);
}
closedir($handle);
return $languages;
}
include $settings->_rootDir . "languages/" . $settings->_language . "/lang.inc";
function getMLText($key, $replace = array())
{
GLOBAL $settings, $text;
if (!isset($text[$key]))
return "Error getting Text: " . $key . " (" . $settings->_language . ")";
$tmpText = $text[$key];
if (count($replace) == 0)
return $tmpText;
$keys = array_keys($replace);
foreach ($keys as $key)
$tmpText = str_replace("[".$key."]", $replace[$key], $tmpText);
return $tmpText;
}
function printMLText($key, $replace = array())
{
print getMLText($key, $replace);
}
function printReviewStatusText($status, $date=0) {
if (is_null($status)) {
print getMLText("status_unknown");
}
else {
switch ($status) {
case -2:
print getMLText("status_reviewer_removed");
break;
case -1:
print getMLText("status_reviewer_rejected").($date !=0 ? " ".$date : "");
break;
case 0:
print getMLText("status_not_reviewed");
break;
case 1:
print getMLText("status_reviewed").($date !=0 ? " ".$date : "");
break;
default:
print getMLText("status_unknown");
break;
}
}
}
function getReviewStatusText($status, $date=0) {
if (is_null($status)) {
return getMLText("status_unknown");
}
else {
switch ($status) {
case -2:
return getMLText("status_reviewer_removed");
break;
case -1:
return getMLText("status_reviewer_rejected").($date !=0 ? " ".$date : "");
break;
case 0:
return getMLText("status_not_reviewed");
break;
case 1:
return getMLText("status_reviewed").($date !=0 ? " ".$date : "");
break;
default:
return getMLText("status_unknown");
break;
}
}
}
function printApprovalStatusText($status, $date=0) {
if (is_null($status)) {
print getMLText("status_unknown");
}
else {
switch ($status) {
case -2:
print getMLText("status_approver_removed");
break;
case -1:
print getMLText("status_approval_rejected").($date !=0 ? " ".$date : "");
break;
case 0:
print getMLText("status_not_approved");
break;
case 1:
print getMLText("status_approved").($date !=0 ? " ".$date : "");
break;
default:
print getMLText("status_unknown");
break;
}
}
}
function getApprovalStatusText($status, $date=0) {
if (is_null($status)) {
return getMLText("status_unknown");
}
else {
switch ($status) {
case -2:
return getMLText("status_approver_removed");
break;
case -1:
return getMLText("status_approval_rejected").($date !=0 ? " ".$date : "");
break;
case 0:
return getMLText("status_not_approved");
break;
case 1:
return getMLText("status_approved").($date !=0 ? " ".$date : "");
break;
default:
return getMLText("status_unknown");
break;
}
}
}
function printOverallStatusText($status) {
if (is_null($status)) {
print getMLText("assumed_released");
}
else {
switch($status) {
case S_DRAFT_REV:
print getMLText("draft_pending_review");
break;
case S_DRAFT_APP:
print getMLText("draft_pending_approval");
break;
case S_RELEASED:
print getMLText("released");
break;
case S_REJECTED:
print getMLText("rejected");
break;
case S_OBSOLETE:
print getMLText("obsolete");
break;
case S_EXPIRED:
print getMLText("expired");
break;
default:
print getMLText("status_unknown");
break;
}
}
}
function getOverallStatusText($status) {
if (is_null($status)) {
return getMLText("assumed_released");
}
else {
switch($status) {
case S_DRAFT_REV:
return getMLText("draft_pending_review");
break;
case S_DRAFT_APP:
return getMLText("draft_pending_approval");
break;
case S_RELEASED:
return getMLText("released");
break;
case S_REJECTED:
return getMLText("rejected");
break;
case S_OBSOLETE:
return getMLText("obsolete");
break;
case S_EXPIRED:
return getMLText("expired");
break;
default:
return getMLText("status_unknown");
break;
}
}
}
?>

29
inc/inc.Settings.php Normal file
View File

@ -0,0 +1,29 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$_tmp = dirname($_SERVER['SCRIPT_FILENAME']);
if(is_link($_tmp)) {
$_arr = preg_split('/\//', $_tmp);
array_pop($_arr);
include(implode('/', $_arr)."/conf/conf.Settings.php");
} else {
include("../conf/conf.Settings.php");
}
?>

260
inc/inc.Utils.php Normal file
View File

@ -0,0 +1,260 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
function formatted_size($size_bytes)
{
if ($size_bytes>1000000000) return number_format($size_bytes/1000000000,1,".","")." GBytes";
else if ($size_bytes>1000000) return number_format($size_bytes/1000000,1,".","")." MBytes";
else if ($size_bytes>1000) return number_format($size_bytes/1000,1,".","")." KBytes";
return number_format($size_bytes,0,"","")." Bytes";
}
function getReadableDate($timestamp) {
return date("d.m.Y", $timestamp);
}
function getLongReadableDate($timestamp) {
return date("d/m/Y H:i", $timestamp);
}
//
// The original string sanitizer, kept for reference.
//function sanitizeString($string) {
// $string = str_replace("'", "&#0039;", $string);
// $string = str_replace("--", "", $string);
// $string = str_replace("<", "&lt;", $string);
// $string = str_replace(">", "&gt;", $string);
// $string = str_replace("/*", "", $string);
// $string = str_replace("*/", "", $string);
// $string = str_replace("\"", "&quot;", $string);
//
// return $string;
//}
function sanitizeString($string) {
$string = (string) $string;
if (get_magic_quotes_gpc()) {
$string = stripslashes($string);
}
$string = str_replace("\\", "\\\\", $string);
$string = str_replace("--", "\-\-", $string);
$string = str_replace(";", "\;", $string);
// Use HTML entities to represent the other characters that have special
// meaning in SQL. These can be easily converted back to ASCII / UTF-8
// with a decode function if need be.
$string = str_replace("&", "&amp;", $string);
$string = str_replace("%", "&#0037;", $string); // percent
$string = str_replace("\"", "&quot;", $string); // double quote
$string = str_replace("/*", "&#0047;&#0042;", $string); // start of comment
$string = str_replace("*/", "&#0042;&#0047;", $string); // end of comment
$string = str_replace("<", "&lt;", $string);
$string = str_replace(">", "&gt;", $string);
$string = str_replace("=", "&#0061;", $string);
$string = str_replace(")", "&#0041;", $string);
$string = str_replace("(", "&#0040;", $string);
$string = str_replace("'", "&#0039;", $string);
$string = str_replace("+", "&#0043;", $string);
return trim($string);
}
function mydmsDecodeString($string) {
$string = (string)$string;
$string = str_replace("&amp;", "&", $string);
$string = str_replace("&#0037;", "%", $string); // percent
$string = str_replace("&quot;", "\"", $string); // double quote
$string = str_replace("&#0047;&#0042;", "/*", $string); // start of comment
$string = str_replace("&#0042;&#0047;", "*/", $string); // end of comment
$string = str_replace("&lt;", "<", $string);
$string = str_replace("&gt;", ">", $string);
$string = str_replace("&#0061;", "=", $string);
$string = str_replace("&#0041;", ")", $string);
$string = str_replace("&#0040;", "(", $string);
$string = str_replace("&#0039;", "'", $string);
$string = str_replace("&#0043;", "+", $string);
return $string;
}
function createVersionigFile($document)
{
global $settings;
// if directory has been removed recreate it
if (!file_exists($settings->_contentDir . $document->getDir()))
if (!makeDir($settings->_contentDir . $document->getDir())) return false;
$handle = fopen($settings->_contentDir . $document->getDir() .$settings-> _versioningFileName , "wb");
if (is_bool($handle)&&!$handle) return false;
$tmp = mydmsDecodeString($document->getName())." (ID ".$document->getID().")\n\n";
fwrite($handle, $tmp);
$owner = $document->getOwner();
$tmp = getMLText("owner")." = ".$owner->getFullName()." <".$owner->getEmail().">\n";
fwrite($handle, $tmp);
$tmp = getMLText("creation_date")." = ".getLongReadableDate($document->getDate())."\n";
fwrite($handle, $tmp);
$latestContent = $document->getLatestContent();
$tmp = "\n### ".getMLText("current_version")." ###\n\n";
fwrite($handle, $tmp);
$tmp = getMLText("version")." = ".$latestContent->getVersion()."\n";
fwrite($handle, $tmp);
$tmp = getMLText("file")." = ".$latestContent->getOriginalFileName()." (".$latestContent->getMimeType().")\n";
fwrite($handle, $tmp);
$tmp = getMLText("comment")." = ". mydmsDecodeString($latestContent->getComment())."\n";
fwrite($handle, $tmp);
$status = $latestContent->getStatus();
$tmp = getMLText("status")." = ".getOverallStatusText($status["status"])."\n";
fwrite($handle, $tmp);
$reviewStatus = $latestContent->getReviewStatus();
$tmp = "\n### ".getMLText("reviewers")." ###\n";
fwrite($handle, $tmp);
foreach ($reviewStatus as $r) {
switch ($r["type"]) {
case 0: // Reviewer is an individual.
$required = getUser($r["required"]);
if (!is_object($required)) $reqName = getMLText("unknown_user")." = ".$r["required"];
else $reqName = getMLText("user")." = ".$required->getFullName();
break;
case 1: // Reviewer is a group.
$required = getGroup($r["required"]);
if (!is_object($required)) $reqName = getMLText("unknown_group")." = ".$r["required"];
else $reqName = getMLText("group")." = ".$required->getName();
break;
}
$tmp = "\n".$reqName."\n";
fwrite($handle, $tmp);
$tmp = getMLText("status")." = ".getReviewStatusText($r["status"])."\n";
fwrite($handle, $tmp);
$tmp = getMLText("comment")." = ". mydmsDecodeString($r["comment"])."\n";
fwrite($handle, $tmp);
$tmp = getMLText("last_update")." = ".$r["date"]."\n";
fwrite($handle, $tmp);
}
$approvalStatus = $latestContent->getApprovalStatus();
$tmp = "\n### ".getMLText("approvers")." ###\n";
fwrite($handle, $tmp);
foreach ($approvalStatus as $r) {
switch ($r["type"]) {
case 0: // Reviewer is an individual.
$required = getUser($r["required"]);
if (!is_object($required)) $reqName = getMLText("unknown_user")." = ".$r["required"];
else $reqName = getMLText("user")." = ".$required->getFullName();
break;
case 1: // Reviewer is a group.
$required = getGroup($r["required"]);
if (!is_object($required)) $reqName = getMLText("unknown_group")." = ".$r["required"];
else $reqName = getMLText("group")." = ".$required->getName();
break;
}
$tmp = "\n".$reqName."\n";
fwrite($handle, $tmp);
$tmp = getMLText("status")." = ".getApprovalStatusText($r["status"])."\n";
fwrite($handle, $tmp);
$tmp = getMLText("comment")." = ". mydmsDecodeString($r["comment"])."\n";
fwrite($handle, $tmp);
$tmp = getMLText("last_update")." = ".$r["date"]."\n";
fwrite($handle, $tmp);
}
$versions = $document->getContent();
$tmp = "\n### ".getMLText("previous_versions")." ###\n";
fwrite($handle, $tmp);
for ($i = count($versions)-2; $i >= 0; $i--){
$version = $versions[$i];
$status = $version->getStatus();
$tmp = "\n".getMLText("version")." = ".$version->getVersion()."\n";
fwrite($handle, $tmp);
$tmp = getMLText("file")." = ".$version->getOriginalFileName()." (".$version->getMimeType().")\n";
fwrite($handle, $tmp);
$tmp = getMLText("comment")." = ". mydmsDecodeString($version->getComment())."\n";
fwrite($handle, $tmp);
$status = $latestContent->getStatus();
$tmp = getMLText("status")." = ".getOverallStatusText($status["status"])."\n";
fwrite($handle, $tmp);
}
fclose($handle);
return true;
}
function add_log_line($msg="")
{
global $settings,$user;
if ($settings->_logFileEnable!=TRUE) return;
if ($settings->_logFileRotation=="h") $logname=date("YmdH", time());
else if ($settings->_logFileRotation=="d") $logname=date("Ymd", time());
else $logname=date("Ym", time());
if($h = fopen($settings->_contentDir.$logname.".log", "a")) {
fwrite($h,date("Y/m/d H:i", time())." ".$user->getLogin()." (".$_SERVER['REMOTE_ADDR'].") ".basename($_SERVER["REQUEST_URI"], ".php").$msg."\n");
fclose($h);
}
}
function showtree()
{
global $settings;
if (isset($_GET["showtree"])) return $_GET["showtree"];
else if ($settings->_expandFolderTree==0) return 0;
return 1;
}
?>

32
inc/inc.Version.php Normal file
View File

@ -0,0 +1,32 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
class Version {
var $_number = "v2.0.1";
var $_string = "LetoDMS";
function Version() {
return;
}
function banner() {
return $this->_string .", ". $this->_number;
}
}

33
index.php Normal file
View File

@ -0,0 +1,33 @@
<?php
// LetoDMS (Formerly MyDMS) Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("inc/inc.Settings.php");
header("Location: ". (isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php"));
?>
<html>
<head>
<title>LetoDMS</title>
</head>
<body>
</body>
</html>

147
install.txt Normal file
View File

@ -0,0 +1,147 @@
NOTE:
creare il db mydms
crere utente mydms con permessi sul db
mysql -D mydms -u mydms -pmydms < create_tables.sql
installare adodb versione 4
modificare inc/inc.Settings.php
-------------------------------------------------------------------
MyDMS 1.7.2 Installation Instructions
-------------------------------------------------------------------
1. Requirements
MyDMS is a web-based application written in PHP. It uses the MySQL RDBMS to
manage the documents that are loaded into the application.
Make sure you have PHP 4.0 or higher installed, and MySQL 4 or higher. MyDMS
will work with PHP running in CGI-mode as well as running as module under
apache. If you want to give your users the opportunity of uploading passport
photos you have to enable the gd-library (but the rest of MyDMS will
work without gd, too).
You will also need to download and install the ADODB database
abstraction library from http://adodb.sf.net/ since MyDMS relies
upon it for all database connectivity.
2. Installation & Configuration
Unzip the downloaded file (mydms-1.7.2.zip) in a directory that is
accessible via your web server.
You will also need to create a directory where the uploaded files
are stored. This directory should not be accessible via your
web-server for security reasons (create it outside of your www-root
directory or put an appropriate .htaccess file in it).
Download the ADODB package from SourceForge. The URL for the ADODB project
page is:
http://adodb.sourceforge.net/
Extract the distribution into a suitable directory. For example, one can
extract the files into the MyDMS root directory.
Next you should set up your Database. Use the included script
create_tables.sql. Since the exact procedure differs on the
different database-systems I cannot give you a detailed instruction
here. Post any questions concering this problem to the MyDMS-Forum. In
general, create the database, make sure that the database has been selected
(e.g. "USE mydms;"), then run the script. As of 1.6.0, you must make sure
that the database user has "create temporary table" privileges.
N.B. If the create_tables.sql script fails, it may be because the database
has been configured to use InnoDB tables by default instead of MyISAM tables.
If this is the case, it will be necessary to alter the sript such that each
create table command has the text " ENGINE = MyISAM" appended to the end,
immediately prior to the semi-colon. For example:
Before:
CREATE TABLE `tblDocumentLocks` (
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`document`)
) ;
After:
CREATE TABLE `tblDocumentLocks` (
`document` int(11) NOT NULL default '0',
`userID` int(11) NOT NULL default '0',
PRIMARY KEY (`document`)
) ENGINE = MyISAM ;
Now edit the configuration file. First, go to the "inc" directory and copy
(or move) "inc.Settings-sample.php" to "inc.Settings.php". Open the file and
set the variables to the correct values (you will find a short description
for each variable in the file itself).
TIP: You can find out your root-directory by placing the following
line into a php-file: <?php phpInfo(); ?>
Open it with your browser and look for "DOCUMENT_ROOT".
When running into problems with the db-settings, read the readme-file
in the adodb-directory or post questions to the MyDMS-Forum.
By default PHP allows only files to be uploaded that are up to 2Mb
in size. You can change this limit by editing php.ini: Search for
"upload_max_filesize" and set it to the appropriate value (you
should also change the value for "post_max_size" and make sure that
your web-server does not limit the size either).
3. Email Notification
A new, re-vamped Notification system allows users to receive an email when a
document or folder is changed. This is a new, event-based mechanism that
notifies the user as soon as the change has been made and replaces the
cron mechanism originally developed. Any user that has read access to a
document or folder can subscribe to be notified of changes. Users that
have been assigned as reviewers or approvers for a document are
automatically added to the notification system for that document.
A new page has been created for users to assist with the management of
their notification subscriptions. This can be found in the "My Account"
section under "Notification List".
4. Auto-conversion to HTML
Version 1.3.0 introduces a new feature: Documents can automatically be
converted to HTML when uploading.
You can enable this feature by setting $_enableConverting (in
inc.Settings.php) to true.
You will also need to edit $_convertFileTypes (again in
inc.Settings.php). This array defines which file-types are converted
and how.
Under windows Word-, Excel- and Powerpoint-Files are automatically
converted using js-Scipts and MS-Office. I tested it with Office 2000
and it worked just fine.
Under Linux mswordview is used to convert Word-Files by default.
Warning: Getting this feature working can be very tricky but if it
works it is a great enhancement I think.
Especially IIS could cause problems with its IIS-Guest-Account not
having enough rights to execute Word or Excel...
You will also have to edit your httpd.conf to be able to view the converted
files online. Load mod_rewrite and add to following lines to your conf:
RewriteEngine on
RewriteCond %{REQUEST_URI} (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$
RewriteRule (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$ $1op.ViewOnline.php?request=$2:$3 [PT]
IIS Users can download the IIS Rewrite Engine for example:
http://www.qwerksoft.com/products/iisrewrite/
Post any questions to the MyDMS forum, please.
5. Nearly finished
Now point your browser to http://your.server.com/mydms/index.php
and login with "admin" both as username and password.
After having logged in you should first choose "My Account" and
change the Administrator's password and email-address.

35
js/displayFunctions.js Normal file
View File

@ -0,0 +1,35 @@
//
// Function to toggle the display of a block element in a page.
//
// There is a CSS-only mechanism to do this, but it does not work properly
// on Opera and apparently Safari.
//
function showBlock(el) {
var objEl = document.getElementById(el);
// Find out the value of the CSS variable "display".
// Need to use this round-about method since global styles are not
// recognised when looking at an object's style class
// (i.e. objEl.style).
if (objEl.currentStyle) // IE 5
var displayProp = objEl.currentStyle["display"];
else if (window.getComputedStyle) { // MOZILLA
var tstyle = window.getComputedStyle(objEl, "");
var displayProp = tstyle.getPropertyValue("display");
}
// Toggle the display property.
if(displayProp=="block") {
objEl.style.display="none";
}
else {
objEl.style.display="block";
}
}
function hideBlock(el) {
var objEl = document.getElementById(el);
objEl.style.display="none";
}

View File

@ -0,0 +1,7 @@
<h1>TODO</h1>

View File

@ -0,0 +1,579 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$text = array();
$text["accept"] = "…Éî†äÅ";
$text["access_denied"] = "Access denied.";
$text["access_inheritance"] = "Access Inheritance";
$text["access_mode"] = "…¡ÿ…Åû†¿í…­Å";
$text["access_mode_all"] = "…«î…à¿";
$text["access_mode_none"] = "†™Æ†£ë…¡ÿ…Åû†¼è‰ÖÉ";
$text["access_mode_read"] = "…ö¯ˆ«Ç";
$text["access_mode_readwrite"] = "ˆ«Ç…¯½";
$text["account_summary"] = "Account Summary";
$text["action_summary"] = "Action Summary";
$text["actions"] = "Actions";
$text["add"] = "Add";
$text["add_access"] = "…ó¤…èá…¡ÿ…Åû";
$text["add_doc_reviewer_approver_warning"] = "N.B. Documents are automatically marked as released if no reviewer or approver is assigned.";
$text["add_document"] = "…ó¤…èᆬö†íê";
$text["add_document_link"] = "…ó¤…èá‰Çú‡´É";
$text["add_group"] = "†û—…󤇾ñ‡´ä";
$text["add_link"] = "Create Link";
$text["add_member"] = "…ó¤…èá†êÉ…ôí";
$text["add_new_notify"] = "†û—…ó¤‡ò—…ïò‰Ç܇–Ñ";
$text["add_subfolder"] = "…ó¤…èᅡɈþç†ûÖ…ñ¾";
$text["add_user"] = "†û—…󤄻À‡ö¿ˆÇà";
$text["adding_default_keywords"] = "†û—…ó¤‰ù£‰ì´…¡ù...";
$text["adding_document"] = "†¡ú…£¿†û—…󤆬ö†íê\"[documentname]\"…ê—ˆþç†ûÖ…ñ¾\"[foldername]\"...";
$text["adding_document_link"] = "…ó¤…èáˆê燢¹‰ù£†¬ö†íê‡Üä‰Çú‡´É...";
$text["adding_document_notify"] = "†û—…ó¤…ê—‡ò—…ïò‰Ç܇–Ñ...";
$text["adding_folder_notify"] = "†¡ú…£¿‡ò—…ïò‰Ç܇–Ñ„¹¡†û—…ó¤…à⇳á...";
$text["adding_group"] = "…—燾ñ‡´ä…èá…àÑ…ê—‡þ©‡´˜„¹¡...";
$text["adding_member"] = "…ó¤…èá†êÉ…ôí…ê—‡¾ñ‡´ä„¹¡...";
$text["adding_sub_folder"] = "…ó¤…èᅡɈþç†ûÖ…ñ¾\"[subfoldername]\"…ê—ˆþç†ûÖ…ñ¾\"[foldername]\"...";
$text["adding_user"] = "…ó¤…èá„»À‡ö¿ˆÇà…ê—‡þ©‡´˜„¹¡...";
$text["admin"] = "Administrator";
$text["admin_set_owner"] = "Only an Administrator may set a new owner";
$text["admin_tools"] = "‡«í‡É典хà¸";
$text["all_documents"] = "All Documents";
$text["all_users"] = "†ëdž£ë„»À‡ö¿ˆÇà";
$text["and"] = "…ê—";
$text["approval_group"] = "Approval Group";
$text["approval_status"] = "Approval Status";
$text["approval_summary"] = "Approval Summary";
$text["approval_update_failed"] = "Error updating approval status. Update failed.";
$text["approve_document"] = "Approve Document";
$text["approve_document_complete"] = "Approve Document: Complete";
$text["approve_document_complete_records_updated"] = "Document approval completed and records updated";
$text["approver_added"] = "added as an approver";
$text["approver_already_assigned"] = "is already assigned as an approver";
$text["approver_already_removed"] = "has already been removed from approval process or has already submitted an approval";
$text["approver_no_privilege"] = "is not sufficiently privileged to approve this document";
$text["approver_removed"] = "removed from approval process";
$text["approvers"] = "Approvers";
$text["as_approver"] = "as an approver";
$text["as_reviewer"] = "as a reviewer";
$text["assign_privilege_insufficient"] = "Access denied. Privileges insufficient to assign reviewers or approvers to this document.";
$text["assumed_released"] = "Assumed released";
$text["back"] = "ˆÀö…¢¤";
$text["between"] = "…¾¤";
$text["cancel"] = "†ö¾†úä";
$text["cannot_approve_pending_review"] = "Document is currently pending review. Cannot submit an approval at this time.";
$text["cannot_assign_invalid_state"] = "Cannot assign new reviewers to a document that is not pending review or pending approval.";
$text["cannot_change_final_states"] = "Warning: Unable to alter document status for documents that have been rejected, marked obsolete or expired.";
$text["cannot_delete_admin"] = "Unable to delete the primary administrative user.";
$text["cannot_move_root"] = "Error: Cannot move root folder.";
$text["cannot_retrieve_approval_snapshot"] = "Unable to retrieve approval status snapshot for this document version.";
$text["cannot_retrieve_review_snapshot"] = "Unable to retrieve review status snapshot for this document version.";
$text["cannot_rm_root"] = "Error: Cannot delete root folder.";
$text["choose_category"] = "--ˆ½ï‰ü¹†ôç--";
$text["choose_group"] = "--‰ü¹†ô燾ñ‡´ä--";
$text["choose_target_document"] = "‰ü¹†ô熬ö†íê";
$text["choose_target_folder"] = "‰ü¹†ô燢«‡Üäˆþç†ûÖ…ñ¾";
$text["choose_user"] = "--‰ü¹†ôç„»À‡ö¿ˆÇà--";
$text["comment"] = "…éÖˆ¿©";
$text["comment_for_current_version"] = "‡¢«…ëì‡ëꆣ¼ˆ¬¬†ÿÄ";
$text["confirm_pwd"] = "‡ó¦ˆ¬ì…¯å‡ó­";
$text["confirm_rm_document"] = "‡ó¦ˆ¬ì…ꬉÖñ†¬ö†íê…ùÄ\"[documentname]\"?<br>†þ¿†äÅ<C3A4>­Ü †¡ñ†ôì„»£„¹ìˆâ»†ü󅾨ƒÇé";
$text["confirm_rm_folder"] = "‡ó¦ˆ¬ì…ꬉÖñˆþç†ûÖ…ñ¾\"[foldername]\" …Æî…ൄ¹¡‡Üä…຅« …ùÄ?<br>†þ¿†äÅ<C3A4>­Ü †¡ñ†ôì„»£„¹ìˆâ»†ü󅾨ƒÇé";
$text["confirm_rm_version"] = "†é¿‡ó¦…«Üˆªü‡º©‰Öñ†¬ö†íê \"[documentname]\" ‡Üä‡ëꆣ¼ [version] <20>­<br>†þ¿†äÅ<C3A4>­Ü †¡ñ†ôì„»£„¹ìˆâ»†ü󅾨ƒÇé";
$text["content"] = "…຅« ";
$text["continue"] = "Continue";
$text["creating_new_default_keyword_category"] = "†û—…ó¤‰í¤…êÑ...";
$text["creation_date"] = "…©¦‡½ï†ùц£–";
$text["current_version"] = "‡¢«…ëì‡ëꆣ¼";
$text["default_access"] = "‰áɈ¿¡‡Üä…¡ÿ…Åû†¿í…­Å";
$text["default_keyword_category"] = "‰í¤…êÑ<EFBFBD>­Ü";
$text["default_keyword_category_name"] = "…É쇿˜";
$text["default_keywords"] = "…ů„©Ñ„»À‡ö¿‡Üä‰ù£‰ì´…¡ù";
$text["delete"] = "…ꬉÖñ";
$text["delete_last_version"] = "Document has only one revision. Deleting entire document record...";
$text["deleting_document_notify"] = "…¾¤‡ò—…ïò‰Ç܇–Ñ„¹¡…ꬉÖñ...";
$text["deleting_folder_notify"] = "…¾¤‡ò—…ïò‰Ç܇–Ñ„¹¡…ꬉÖñ…à⇳á...";
$text["details"] = "Details";
$text["details_version"] = "Details for version: [version]";
$text["document"] = "Document";
$text["document_access_again"] = "‡¸¿ˆ­¯†¬ö†íê‡Üä…¡ÿ…Åû†¼è‰ÖÉ";
$text["document_add_access"] = "†¡ú…£¿†û—…ó¤…à⇳á…ê—†¼è‰ÖɆĺ…êµˆí¿„¹¡...";
$text["document_already_locked"] = "†¡ñ†¬ö†íê…¸™ˆó½‰Äû…«Ü";
$text["document_del_access"] = "†¡ú…£¿…¾¤†¼è‰ÖɆĺ…êµˆí¿„¹¡…ꬉÖñ…à⇳á...";
$text["document_edit_access"] = "†¡ú…£¿†ö ˆ«è…¡ÿ…Åû†¿í…­Å...";
$text["document_infos"] = "†¬ö†íêˆþ爿è";
$text["document_is_not_locked"] = "†¡ñ†¬ö†íꆙƆ£ëˆó½‰Äû…«Ü";
$text["document_link_by"] = "‰Çú‡´É„¦¦";
$text["document_link_public"] = "…༉ûï";
$text["document_list"] = "†¬ö†íê";
$text["document_notify_again"] = "…å솼í„À«†ö ‡ò—…ïò‰Ç܇–Ñ";
$text["document_overview"] = "†¬ö†íê-†ªé†þü";
$text["document_set_default_access"] = "†¡ú…£¿ˆ¿¡…«Ü†¬ö†íê‰áɈ¿¡‡Üä…¡ÿ…Åû†¼è‰ÖÉ...";
$text["document_set_inherit"] = "†¡ú…£¿†¹à‰Öñ†¼è‰ÖɆĺ…굈í¿<EFBFBD>­î†¬ö†íꅗ燠­†ëÀ…¡ÿ…Åû†¼è‰ÖÉ...";
$text["document_set_not_inherit_copy"] = "†¡ú…£¿ˆñçˆú»…¡ÿ…Åû†¼è‰ÖÉ...";
$text["document_set_not_inherit_empty"] = "†¡ú…£¿†¹à‰Öñ‡ ­†ëÀ‡Üä…¡ÿ…Åû†¼è‰ÖɃÇé…ò–‡ö¿‡¨¦‡Ü䆼è‰ÖɆĺ…굈í¿...";
$text["document_status"] = "Document Status";
$text["document_title"] = "†¬ö†íꇫí‡Éå - †¬ö†íê [documentname]";
$text["document_versions"] = "†ëdž£ë‡ëꆣ¼";
$text["documents_in_process"] = "Documents In Process";
$text["documents_owned_by_user"] = "Documents Owned by User";
$text["documents_to_approve"] = "Documents Awaiting User's Approval";
$text["documents_to_review"] = "Documents Awaiting User's Review";
$text["documents_user_requiring_attention"] = "Documents Owned by User That Require Attention";
$text["does_not_expire"] = "‰é䆙ƉüĆ£–";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">„¹ì†ÿ¯‡ ­†ëÀ‡Üä…¡ÿ…Åû†¼è‰ÖÉ</a>";
$text["download"] = "†¬ö†íꄹë";
$text["draft_pending_approval"] = "Draft - pending approval";
$text["draft_pending_review"] = "Draft - pending review";
$text["edit"] = "edit";
$text["edit_default_keyword_category"] = "‡¸¿ˆ­¯‰í¤…êÑ";
$text["edit_default_keywords"] = "‡¸¿ˆ­¯‰ù£‰ì´…¡ù";
$text["edit_document"] = "‡¸¿ˆ­¯†¬ö†íê";
$text["edit_document_access"] = "„À«†ö ˆ¿¬…òņ¼è‰ÖÉ";
$text["edit_document_notify"] = "‡ò—…ïò‰Ç܇–Ñ";
$text["edit_document_props"] = "‡¸¿ˆ­¯†¬ö†íê…˜¼†Çº";
$text["edit_document_props_again"] = "…å솼퇸¿ˆ­¯†¬ö†íê";
$text["edit_existing_access"] = "‡¸¿ˆ­¯†¼è‰ÖÉ";
$text["edit_existing_notify"] = "‡¸¿ˆ­¯‡ò—…ïò‰Ç܇–Ñ";
$text["edit_folder"] = "‡¸¿ˆ­¯ˆþç†ûÖ…ñ¾";
$text["edit_folder_access"] = "‡¸¿ˆ­¯…¡ÿ…Åû†¼è‰ÖÉ";
$text["edit_folder_notify"] = "‡ò—…ïò‰Ç܇–Ñ";
$text["edit_folder_props"] = "‡¸¿ˆ­¯ˆþç†ûÖ…ñ¾…˜¼†Çº";
$text["edit_folder_props_again"] = "‡¸¿ˆ­¯ˆþç†ûÖ…ñ¾…˜¼†Çº";
$text["edit_group"] = "‡¸¿ˆ­¯‡¾ñ‡´ä\"[groupname]\"";
$text["edit_inherit_access"] = "‡ ­†ëÀ†Çº…¡ÿ…Åû";
$text["edit_personal_default_keywords"] = "‡¸¿ˆ­¯…Ç¦‰ù£‰ì´…¡ù";
$text["edit_user"] = "‡¸¿ˆ­¯„»À‡ö¿ˆÇà\"[username]\"";
$text["edit_user_details"] = "Edit User Details";
$text["editing_default_keyword_category"] = "„À«†ö ‰í¤…êÑ...";
$text["editing_default_keywords"] = "„À«†ö ‰ù£‰ì´…¡ù„¹¡...";
$text["editing_document_props"] = "†¬ö†íꇸ¿ˆ­¯...";
$text["editing_folder_props"] = "†¡ú…£¿‡¸¿ˆ­¯ˆþç†ûÖ…ñ¾...";
$text["editing_group"] = "‡¸¿ˆ­¯„»À‡ö¿ˆÇà‡¾ñ‡´ä...";
$text["editing_user"] = "‡¸¿ˆ­¯„»À‡ö¿ˆÇà...";
$text["editing_user_data"] = "‡¸¿ˆ­¯„»À‡ö¿ˆÇàˆ¿¡…«Ü...";
$text["email"] = "‰¢©…¡É‰â´„©µ";
$text["email_err_group"] = "Error sending email to one or more members of this group.";
$text["email_err_user"] = "Error sending email to user.";
$text["email_sent"] = "Email sent";
$text["empty_access_list"] = "†¼è‰ÖɆÿ¯‡¨¦‡Üä";
$text["empty_notify_list"] = "†™Æ†£ë…຅« ";
$text["error_adding_session"] = "Error occured while creating session.";
$text["error_occured"] = "‰î¯ˆ¬ñ<EFBFBD>­ü";
$text["error_removing_old_sessions"] = "Error occured while removing old sessions";
$text["error_updating_revision"] = "Error updating status of document revision.";
$text["exp_date"] = "‰üĆ£–†ùц£–";
$text["expired"] = "Expired";
$text["expires"] = "‰üĆ£–ˆ¿¡…«Ü";
$text["file"] = "File";
$text["file_info"] = "File Information";
$text["file_size"] = "†¬ö†íê…ñº…—Å";
$text["folder_access_again"] = "‡¸¿ˆ­¯ˆþç†ûÖ…ñ¾‡Üä…¡ÿ…Åû†¼è‰ÖÉ";
$text["folder_add_access"] = "…É憼è‰ÖÉ„¹¡†û—…ó¤…à⇳á...";
$text["folder_contents"] = "Folders";
$text["folder_del_access"] = "†¡ú…£¿…¾¤†¼è‰ÖÉ„¹¡…ꬉÖñ…à⇳á...";
$text["folder_edit_access"] = "‡¸¿ˆ­¯…¡ÿ…Åû†¼è‰ÖÉ...";
$text["folder_infos"] = "ˆþç†ûÖ…ñ¾ˆþ爿è";
$text["folder_notify_again"] = "‡¸¿ˆ­¯‡ò—…ïò‰Ç܇–Ñ";
$text["folder_overview"] = "ˆþç†ûÖ…ñ¾-†ªé†þü";
$text["folder_path"] = "ˆ¸¯…¾æ";
$text["folder_set_default_access"] = "‡é¦ˆþç†ûÖ…ñ¾ˆ¿¡…«Ü‰áɈ¿¡‡Üä…¡ÿ…Åû†¿í…­Å...";
$text["folder_set_inherit"] = "†¡ú…£¿†¹à‰Öñ†¼è‰ÖɆĺ…êµˆí¿ƒÇé…ò–‡ö¿‡ ­†ëÀ†¼è‰ÖÉ";
$text["folder_set_not_inherit_copy"] = "ˆñçˆú»…¡ÿ…Åû†¼è‰ÖÉ…êùˆí¿...";
$text["folder_set_not_inherit_empty"] = "†¡ú…£¿†¹à‰Öñ‡ ­†ëÀ‡Ü䆼è‰ÖɃÇé…ò–‡ö¿‡¨¦‡Ü䆼è‰ÖɆĺ…굈í¿...";
$text["folder_title"] = "†¬ö†íꇫí‡Éå - ˆþç†ûÖ…ñ¾ [foldername]";
$text["folders_and_documents_statistic"] = "†–ч£ï†¬ö†íêˆêçˆþç†ûÖ…ñ¾ˆþ爿è";
$text["foldertree"] = "ˆþç†ûÖ…ñ¾†¿ ";
$text["from_approval_process"] = "from approval process";
$text["from_review_process"] = "from review process";
$text["global_default_keywords"] = "…à¿…––‰ù£‰ì´…¡ù";
$text["goto"] = "…ëì…¾Ç";
$text["group"] = "‡¾ñ‡´ä";
$text["group_already_approved"] = "An approval has already been submitted on behalf of group";
$text["group_already_reviewed"] = "A review has already been submitted on behalf of group";
$text["group_approvers"] = "Group Approvers";
$text["group_email_sent"] = "Email sent to group members";
$text["group_exists"] = "Group already exists.";
$text["group_management"] = "„»À‡ö¿ˆÇà‡¾ñ‡´ä";
$text["group_members"] = "‡¾ñ‡´ä†êÉ…ôí";
$text["group_reviewers"] = "Group Reviewers";
$text["group_unable_to_add"] = "Unable to add group";
$text["group_unable_to_remove"] = "Unable to remove group";
$text["groups"] = "„»À‡ö¿ˆÇà‡¾ñ‡´ä";
$text["guest_login"] = "„©Ñˆ¿¬…«óˆ¦½„©»‡Ö©…àÑ";
$text["guest_login_disabled"] = "Guest login is disabled.";
$text["individual_approvers"] = "Individual Approvers";
$text["individual_reviewers"] = "Individual Reviewers";
$text["individuals"] = "Individuals";
$text["inherits_access_msg"] = "ˆ«Ç…¯½†¼è‰ÖɈ󽇠­†ëÀƒÇé<p><a class=\"inheritAccess\" href=\"[copyurl]\">ˆñçˆú»†¼è‰ÖÉ…êùˆí¿</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">„»À‡ö¿‡¨¦‡Ü䆼è‰ÖÉ…êùˆí¿</a>";
$text["internal_error"] = "Internal error";
$text["internal_error_exit"] = "Internal error. Unable to complete request. Exiting.";
$text["invalid_access_mode"] = "Invalid Access Mode";
$text["invalid_action"] = "Invalid Action";
$text["invalid_approval_status"] = "Invalid Approval Status";
$text["invalid_create_date_end"] = "Invalid end date for creation date range.";
$text["invalid_create_date_start"] = "Invalid start date for creation date range.";
$text["invalid_doc_id"] = "Invalid Document ID";
$text["invalid_folder_id"] = "Invalid Folder ID";
$text["invalid_group_id"] = "Invalid Group ID";
$text["invalid_link_id"] = "Invalid link identifier";
$text["invalid_review_status"] = "Invalid Review Status";
$text["invalid_sequence"] = "Invalid sequence value";
$text["invalid_status"] = "Invalid Document Status";
$text["invalid_target_doc_id"] = "Invalid Target Document ID";
$text["invalid_target_folder"] = "Invalid Target Folder ID";
$text["invalid_user_id"] = "Invalid User ID";
$text["invalid_version"] = "Invalid Document Version";
$text["is_admin"] = "Administrator Privilege";
$text["js_no_approval_group"] = "Please select a approval group";
$text["js_no_approval_status"] = "Please select the approval status";
$text["js_no_comment"] = "†™Æ†£ëˆ¬¬†ÿÄ";
$text["js_no_email"] = "ˆ­¹…àÑ„»á‡Ü䉢©…¡É‰â´„©µ…£—…¥Ç";
$text["js_no_file"] = "ˆ½ï‰ü¹†ô焹DžÇö†íê";
$text["js_no_keywords"] = "†–ш¨ó‰ù£‰ì´ˆ¨¤";
$text["js_no_login"] = "ˆ½ïˆ­¹…àÑ…¹þˆÖ–‡¿˜";
$text["js_no_name"] = "ˆ½ïˆ­¹…àÑ…É쇿˜";
$text["js_no_override_status"] = "Please select the new [override] status";
$text["js_no_pwd"] = "†é¿‰£Çˆªüˆ­¹…àц鿇Üä…¯å‡ó­";
$text["js_no_query"] = "ˆ½ïˆ­¹…àц–ш¨ó…຅« ";
$text["js_no_review_group"] = "Please select a review group";
$text["js_no_review_status"] = "Please select the review status";
$text["js_pwd_not_conf"] = "…¯å‡ó­…Åè…¯å‡ó­‡ó¦ˆ¬ì…຅« „¹ì„¹Çˆç³";
$text["js_select_user"] = "ˆ½ï‰ü¹†ô焹DžÇï„»À‡ö¿ˆÇà";
$text["js_select_user_or_group"] = "ˆçþ…—æ‰ü¹†ô焹DžÇñ‡´ä†êû„»À‡ö¿ˆÇà";
$text["keyword_exists"] = "Keyword already exists";
$text["keywords"] = "‰ù£‰ì´ˆ¨¤";
$text["language"] = "ˆ¬¤ˆ¿Ç";
$text["last_update"] = "†¢³†û—†ùц£–";
$text["last_updated_by"] = "Last updated by";
$text["latest_version"] = "Latest Version";
$text["linked_documents"] = "‡¢¹‰ù£†¬ö†íê";
$text["local_file"] = "†£¼…£—†¬ö†íê";
$text["lock_document"] = "‰Äû…«Ü";
$text["lock_message"] = "†£¼†¬ö†íê…¸™ˆó½<a href=\"mailto:[email]\">[username]</a>‰Äû…«ÜƒÇé<br>…âà†¼è‰ÖÉ„»À‡ö¿ˆÇà…ů„©Ñ„À«†ö ‰Äû…«Ü(ˆªï‰áü…—¾)ƒÇé";
$text["lock_status"] = "‰Äû…«Ü‡ïdžàï";
$text["locking_document"] = "†¬ö†íê‰Äû…«Ü...";
$text["logged_in_as"] = "‡Ö©…àÑ";
$text["login"] = "‡Ö©…àÑ";
$text["login_error_text"] = "Error signing in. User ID or password incorrect.";
$text["login_error_title"] = "Sign in error";
$text["login_not_found"] = "…¹þˆÖ–„¹ì…¡ÿ…£¿";
$text["login_not_given"] = "No username has been supplied";
$text["login_ok"] = "Sign in successful";
$text["logout"] = "‡Ö©…ç¦";
$text["mime_type"] = "Mime‰í¤…¤ï";
$text["move"] = "Move";
$text["move_document"] = "‡º©…ïò†¬ö†íê";
$text["move_folder"] = "‡º©…ïòˆþç†ûÖ…ñ¾";
$text["moving_document"] = "†¡ú…£¿‡º©…ïò†¬ö†íê...";
$text["moving_folder"] = "†¡ú…£¿‡º©…ïòˆþç†ûÖ…ñ¾...";
$text["msg_document_expired"] = "†¬ö†íê\"[documentname]\" (ˆ¸¯…¾æ<C2BE>­Ü \"[path]\") …¸™‡µô…£¿[expires]†Öé‰üĆ£–";
$text["msg_document_updated"] = "†¬ö†íê\"[documentname]\" (ˆ¸¯…¾æ<C2BE>­Ü \"[path]\") †ÿ¯…£¿[updated]†Öé…©¦‡½ï†êû†¢³†û—‡Üä";
$text["my_account"] = "†êæ‡Üä…¹þˆÖ–";
$text["my_documents"] = "My Documents";
$text["name"] = "…É쇿˜";
$text["new_default_keyword_category"] = "†û—…ó¤‰í¤…êÑ";
$text["new_default_keywords"] = "†û—…ó¤‰ù£‰ì´…¡ù";
$text["new_equals_old_state"] = "Warning: Proposed status and existing status are identical. No action required.";
$text["new_user_image"] = "†û—‡àº‡ëç";
$text["no"] = "…ɪ";
$text["no_action"] = "No action required";
$text["no_action_required"] = "n/a";
$text["no_active_user_docs"] = "There are currently no documents owned by the user that require review or approval.";
$text["no_approvers"] = "No approvers assigned.";
$text["no_default_keywords"] = "†™Æ†£ë…ů‡ö¿‡Üä‰ù£‰ì´…¡ù";
$text["no_docs_to_approve"] = "There are currently no documents that require approval.";
$text["no_docs_to_review"] = "There are currently no documents that require review.";
$text["no_document_links"] = "†™Æ†£ë‡¢¹‰ù£‡Üä‰Çú‡´É";
$text["no_documents"] = "†™Æ†£ë†¬ö†íê";
$text["no_group_members"] = "†¡ñ‡¾ñ‡´ä†™Æ†£ë†êÉ…ôí";
$text["no_groups"] = "†™Æ†£ë„»À‡ö¿ˆÇà‡¾ñ‡´ä";
$text["no_previous_versions"] = "No other versions found";
$text["no_reviewers"] = "No reviewers assigned.";
$text["no_subfolders"] = "†™Æ†£ë…¡Éˆþç†ûÖ…ñ¾";
$text["no_update_cause_locked"] = "†é¿„¹ìˆâ»†¢³†û—†¡ñ†¬ö†íê<EFBFBD>­îˆ½ïˆêç‰Äû…«Ü„¦¦ˆü¯‡ ½ƒÇé";
$text["no_user_image"] = "†™Æ†ë¾…ꗇງëç";
$text["not_approver"] = "User is not currently assigned as an approver of this document revision.";
$text["not_reviewer"] = "User is not currently assigned as a reviewer of this document revision.";
$text["notify_subject"] = "†¬ö†íꇫí‡Éå‡þ©‡´˜„¹¡†£ë†û—‡Üä†êû‰üĆ£–‡Ü䆬ö†íê";
$text["obsolete"] = "Obsolete";
$text["old_folder"] = "old folder";
$text["only_jpg_user_images"] = "‡àº‡ëç…Ŭ†ÄÑ…Åù .JPG(JPEG) †á­…­Å";
$text["op_finished"] = "†êÉ…è–";
$text["operation_not_allowed"] = "†é¿‡Ü䆼è‰ÖÉ„¹ì…ñá";
$text["override_content_status"] = "Override Status";
$text["override_content_status_complete"] = "Override Status Complete";
$text["override_privilege_insufficient"] = "Access denied. Privileges insufficient to override the status of this document.";
$text["overview"] = "Overview";
$text["owner"] = "†ëdž£ë„¦¦";
$text["password"] = "…¯å‡ó­";
$text["pending_approval"] = "Documents pending approval";
$text["pending_review"] = "Documents pending review";
$text["personal_default_keywords"] = "…Ç¦‰ù£‰ì´…¡ù";
$text["previous_versions"] = "Previous Versions";
$text["rejected"] = "Rejected";
$text["released"] = "Released";
$text["remove_document_link"] = "…ꬉÖñ‰Çú‡´É";
$text["remove_member"] = "…ꬉÖñ†êÉ…ôí";
$text["removed_approver"] = "has been removed from the list of approvers.";
$text["removed_reviewer"] = "has been removed from the list of reviewers.";
$text["removing_default_keyword_category"] = "…ꬉÖñ‰í¤…êÑ...";
$text["removing_default_keywords"] = "…ꬉÖñ‰ù£‰ì´…¡ù„¹¡...";
$text["removing_document"] = "…ꬉÖñ†¬ö†íê...";
$text["removing_document_link"] = "…ꬉÖñˆê燢¹‰ù£†¬ö†íê‡Üä‰Çú‡´É...";
$text["removing_folder"] = "…ꬉÖñˆþç†ûÖ…ñ¾...";
$text["removing_group"] = "…¾¤‡þ©‡´˜„¹¡…ꬉÖñ†¡ñ‡¾ñ‡´ä...";
$text["removing_member"] = "…¾¤‡¾ñ‡´ä„¹¡…ꬉÖñ†êÉ…ôí...";
$text["removing_user"] = "…¾¤‡þ©‡´˜„¹¡…ꬉÖñ„»À‡ö¿ˆÇà...";
$text["removing_version"] = "‡º©‰Öñ‡ëꆣ¼ [version] „¹¡...";
$text["review_document"] = "Review Document";
$text["review_document_complete"] = "Review Document: Complete";
$text["review_document_complete_records_updated"] = "Document review completed and records updated";
$text["review_group"] = "Review Group";
$text["review_status"] = "Review Status";
$text["review_summary"] = "Review Summary";
$text["review_update_failed"] = "Error updating review status. Update failed.";
$text["reviewer_added"] = "added as a reviewer";
$text["reviewer_already_assigned"] = "is already assigned as a reviewer";
$text["reviewer_already_removed"] = "has already been removed from review process or has already submitted a review";
$text["reviewer_no_privilege"] = "is not sufficiently privileged to review this document";
$text["reviewer_removed"] = "removed from review process";
$text["reviewers"] = "Reviewers";
$text["rm_default_keyword_category"] = "…ꬉÖñˆ¨™‰í¤…êÑ";
$text["rm_default_keywords"] = "…ꬉÖñ‰ù£‰ì´…¡ù";
$text["rm_document"] = "…ꬉÖñ†¬ö†íê";
$text["rm_folder"] = "…ꬉÖñˆþç†ûÖ…ñ¾";
$text["rm_group"] = "…ꬉÖñ†¡ñ‡¾ñ‡´ä";
$text["rm_user"] = "…ꬉÖñ†¡ñ„»À‡ö¿ˆÇà";
$text["rm_version"] = "‡º©‰Öñ‡ëꆣ¼";
$text["root_folder"] = "†á ˆþç†ûÖ…ñ¾";
$text["save"] = "…ä™…¡ÿ";
$text["search"] = "†É£‡³ó";
$text["search_in"] = "†É£…—䅣ì";
$text["search_in_all"] = "†ëdž£ëˆþç†ûÖ…ñ¾";
$text["search_in_current"] = "…Ŭ†£ë([foldername]) …îà…ɽ…¡Éˆþç†ûÖ…ñ¾";
$text["search_mode"] = "†É£…—텭Å";
$text["search_mode_and"] = "†ëdž£ë‡Ü䈨¤";
$text["search_mode_or"] = "ˆçþ…—憣넹DžÇ¤";
$text["search_no_results"] = "†™Æ†£ë†¬ö†íꇼª…Éꆖш¨ó†ó¥„©µƒÇé";
$text["search_query"] = "†É£…—ï";
$text["search_report"] = "†£ë [count] …Çö†íꇼª…Éꆖш¨ó†ó¥„©µ\ƒÇé";
$text["search_result_pending_approval"] = "status 'pending approval'";
$text["search_result_pending_review"] = "status 'pending review'";
$text["search_results"] = "†É£‡³ó‡´É†¤£";
$text["search_results_access_filtered"] = "Search results may contain content to which access has been denied.";
$text["search_time"] = "ш¨óˆÇù†Öé<EFBFBD>­Ü [time] ‡ºÆƒÇé";
$text["select_one"] = "ˆ½ï‰ü¹…ൄ¹Ç";
$text["selected_document"] = "‰ü¹†ôç‡Ü䆬ö†íê";
$text["selected_folder"] = "‰ü¹†ôç‡Üäˆþç†ûÖ…ñ¾";
$text["selection"] = "Selection";
$text["seq_after"] = "…£¿\"[prevname]\"„ ï…¾î";
$text["seq_end"] = "†£Ç…¾î„¹Ç…Çï";
$text["seq_keep"] = "‡¢«…ë섻쇻«";
$text["seq_start"] = "‡¼¼„¹Ç…Çï";
$text["sequence"] = "…èá…àщáå…¦Å";
$text["set_default_access"] = "Set Default Access Mode";
$text["set_expiry"] = "Set Expiry";
$text["set_owner"] = "ˆ¿¡…«Ü†ëdž£ë„¦¦";
$text["set_reviewers_approvers"] = "Assign Reviewers and Approvers";
$text["setting_expires"] = "ˆ¿¡…«Ü‰Ç¾†Öé...";
$text["setting_owner"] = "ˆ¿¡…«Ü†ëdž£ë„¦¦...";
$text["setting_user_image"] = "<br>‡é¦„»À‡ö¿ˆÇàˆ¿¡…«Ü‡àº‡ëç...";
$text["show_all_versions"] = "Show All Revisions";
$text["show_current_versions"] = "Show Current";
$text["start"] = "‰ûï…ºï";
$text["status"] = "Status";
$text["status_approval_rejected"] = "Draft rejected";
$text["status_approved"] = "Approved";
$text["status_approver_removed"] = "Approver removed from process";
$text["status_change_summary"] = "Document revision changed from status '[oldstatus]' to status '[newstatus]'.";
$text["status_changed_by"] = "Status changed by";
$text["status_not_approved"] = "Not approved";
$text["status_not_reviewed"] = "Not reviewed";
$text["status_reviewed"] = "Reviewed";
$text["status_reviewer_rejected"] = "Draft rejected";
$text["status_reviewer_removed"] = "Reviewer removed from process";
$text["status_unknown"] = "Unknown";
$text["subfolder_list"] = "…¡Éˆþç†ûÖ…ñ¾";
$text["submit_approval"] = "Submit approval";
$text["submit_login"] = "Sign in";
$text["submit_review"] = "Submit review";
$text["theme"] = "„»ê†Ö¯";
$text["unable_to_add"] = "Unable to add";
$text["unable_to_remove"] = "Unable to remove";
$text["under_folder"] = "…£¿ˆþç†ûÖ…ñ¾ˆúí";
$text["unknown_command"] = "Command not recognized.";
$text["unknown_group"] = "Unknown group id";
$text["unknown_keyword_category"] = "Unknown category";
$text["unknown_owner"] = "Unknown owner id";
$text["unknown_user"] = "Unknown user id";
$text["unlock_cause_access_mode_all"] = "…¢á‡é¦†é¿†£ë…¡ÿ…Åû†¼è‰ÖÉ\"all\"<EFBFBD>­î†é¿„©ì‡äµ…ů„©Ñ†¢³†û—ƒÇ醢³†û—…¾î‰Äû…«Ü…—çˆç¬…ïòˆºú‰ÖñƒÇé";
$text["unlock_cause_locking_user"] = "…¢á‡é¦†é¿„ †ÿ¯‰Äû…«Ü„¦¦„ ï„¹Ç<EFBFBD>­î†é¿„©ì‡äµ…ů„©Ñ†¢³†û—ƒÇ醢³†û—…¾î‰Äû…«Ü…—çˆç¬…ïòˆºú‰ÖñƒÇé";
$text["unlock_document"] = "†£¬‰Äû…«Ü";
$text["unlocking_denied"] = "†é¿‡Ü䆼è‰ÖÉ„¹ìˆµþ„©Ñˆºú‰Äû†¬ö†íê";
$text["unlocking_document"] = "†¬ö†íꈺú‰Äû...";
$text["update"] = "Update";
$text["update_approvers"] = "Update List of Approvers";
$text["update_document"] = "†¢³†û—";
$text["update_info"] = "Update Information";
$text["update_locked_msg"] = "†¡ñ†¬ö†íêˆÖò†û­‰Äû…«Ü‡ïdžàïƒÇé";
$text["update_reviewers"] = "Update List of Reviewers";
$text["update_reviewers_approvers"] = "Update List of Reviewers and Approvers";
$text["updated_by"] = "Updated by";
$text["updating_document"] = "†¬ö†íꆢ³†û—...";
$text["upload_date"] = "„¹è…éþ†ùц£–";
$text["uploaded"] = "Uploaded";
$text["uploaded_by"] = "†¬ö†íê†ÅÉ„¾¢ˆÇà";
$text["uploading_failed"] = "„¹è…éþ…ñ˜†òù<EFBFBD>­îˆ½ïˆê燫í‡Éå…ôíˆü¯‡ ½ƒÇé";
$text["use_default_keywords"] = "„»À‡ö¿‰áÉ…àꅫ܇¾¨‡Üä‰ù£‰ì´…¡ù";
$text["user"] = "„»À‡ö¿ˆÇà";
$text["user_already_approved"] = "User has already submitted an approval of this document version";
$text["user_already_reviewed"] = "User has already submitted a review of this document version";
$text["user_approval_not_required"] = "No document approval required of user at this time.";
$text["user_exists"] = "User already exists.";
$text["user_image"] = "‡àº‡ëç";
$text["user_info"] = "User Information";
$text["user_list"] = "„»À‡ö¿ˆÇà…êùˆí¿";
$text["user_login"] = "…¹þˆÖ–";
$text["user_management"] = "„»À‡ö¿ˆÇà";
$text["user_name"] = "…à¿…Éì";
$text["user_removed_approver"] = "User has been removed from the list of individual approvers.";
$text["user_removed_reviewer"] = "User has been removed from the list of individual reviewers.";
$text["user_review_not_required"] = "No document review required of user at this time.";
$text["users"] = "„»À‡ö¿ˆÇà";
$text["version"] = "‡ëꆣ¼";
$text["version_info"] = "Version Information";
$text["version_under_approval"] = "Version under approval";
$text["version_under_review"] = "Version under review";
$text["view_document"] = "View Document";
$text["view_online"] = "‡¸Ü„¹è‡Çňª»";
$text["warning"] = "Warning";
$text["wrong_pwd"] = "…¯å‡ó­‰î¯ˆ¬ñ<EFBFBD>­îˆ½ï‰ç숨ªƒÇé";
$text["yes"] = "†ÿ¯";
$text["already_subscribed"] = "Target is already subscribed.";
// New as of 1.7.1. Require updated translation.
$text["documents"] = "Documents";
$text["folders"] = "Folders";
$text["no_folders"] = "No folders";
$text["notification_summary"] = "Notification Summary";
// New as of 1.7.2
$text["all_pages"] = "All";
$text["results_page"] = "Results Page";
// New
$text["sign_out"] = "sign out";
$text["signed_in_as"] = "Signed in as";
$text["assign_reviewers"] = "Assign Reviewers";
$text["assign_approvers"] = "Assign Approvers";
$text["override_status"] = "Override Status";
$text["change_status"] = "Change Status";
$text["change_assignments"] = "Change Assignments";
$text["no_user_docs"] = "There are currently no documents owned by the user";
$text["disclaimer"] = "This is a classified area. Access is permitted only to authorized personnel. Any violation will be prosecuted according to the english and international laws.";
$text["backup_tools"] = "Backup tools";
$text["versioning_file_creation"] = "Versioning file creation";
$text["archive_creation"] = "Archive creation";
$text["files_deletion"] = "Files deletion";
$text["folder"] = "Folder";
$text["unknown_id"] = "unknown id";
$text["help"] = "Help";
$text["versioning_info"] = "Versioning info";
$text["versioning_file_creation_warning"] = "With this operation you can create a file containing the versioning information of an entire DMS folder. After the creation every file will be saved inside the document folder.";
$text["archive_creation_warning"] = "With this operation you can create achive containing the files of entire DMS folders. After the creation the archive will be saved in the data folder of your server.<br>WARNING: an archive created as human readable will be unusable as server backup.";
$text["files_deletion_warning"] = "With this option you can delete all files of entire DMS folders. The versioning information will remain visible.";
$text["backup_list"] = "Existings backup list";
$text["backup_remove"] = "Remove backup file";
$text["confirm_rm_backup"] = "Do you really want to remove the file \"[arkname]\"?<br>Be careful: This action cannot be undone.";
$text["document_deleted"] = "Document deleted";
$text["linked_files"] = "Attachments";
$text["invalid_file_id"] = "Invalid file ID";
$text["rm_file"] = "Remove file";
$text["confirm_rm_file"] = "Do you really want to remove file \"[name]\" of document \"[documentname]\"?<br>Be careful: This action cannot be undone.";
$text["edit_comment"] = "Edit comment";
// new from 1.9
$text["is_hidden"] = "Hide from users list";
$text["log_management"] = "Log files management";
$text["confirm_rm_log"] = "Do you really want to remove log file \"[logname]\"?<br>Be careful: This action cannot be undone.";
$text["include_subdirectories"] = "Include subdirectories";
$text["include_documents"] = "Include documents";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Toggle manager";
// new from 2.0
$text["calendar"] = "Calendar";
$text["week_view"] = "Week view";
$text["month_view"] = "Month view";
$text["year_view"] = "Year View";
$text["add_event"] = "Add event";
$text["edit_event"] = "Edit event";
$text["january"] = "January";
$text["february"] = "February";
$text["march"] = "March";
$text["april"] = "April";
$text["may"] = "May";
$text["june"] = "June";
$text["july"] = "July";
$text["august"] = "August";
$text["september"] = "September";
$text["october"] = "October";
$text["november"] = "November";
$text["december"] = "December";
$text["sunday"] = "Sunday";
$text["monday"] = "Monday";
$text["tuesday"] = "Tuesday";
$text["wednesday"] = "Wednesday";
$text["thursday"] = "Thursday";
$text["friday"] = "Friday";
$text["saturday"] = "Saturday";
$text["from"] = "From";
$text["to"] = "To";
$text["event_details"] = "Event details";
$text["confirm_rm_event"] = "Do you really want to remove event \"[name]\"?<br>Be careful: This action cannot be undone.";
$text["dump_creation"] = "DB dump creation";
$text["dump_creation_warning"] = "With this operation you can create a dump file of your database content. After the creation the dump file will be saved in the data folder of your server.";
$text["dump_list"] = "Existings dump files";
$text["dump_remove"] = "Remove dump file";
$text["confirm_rm_dump"] = "Do you really want to remove the file \"[dumpname]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_user"] = "Do you really want to remove the user \"[username]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_group"] = "Do you really want to remove the group \"[groupname]\"?<br>Be careful: This action cannot be undone.";
$text["human_readable"] = "Human readable archive";
$text["email_header"] = "This is an automatic message from the DMS server.";
$text["email_footer"] = "You can always change your e-mail settings using 'My Account' functions";
$text["add_multiple_files"] = "Add multiple files (will use filename as document name)";
// new from 2.0.1
$text["max_upload_size"] = "Maximum upload size for each file";
?>

7
languages/Czech/help.htm Normal file
View File

@ -0,0 +1,7 @@
<h1>TODO</h1>

575
languages/Czech/lang.inc Normal file
View File

@ -0,0 +1,575 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006 Malcolm Cowe
// Copyright (C) 2008 Ivan Masár
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$text = array();
$text["accept"] = "Přijmout";
$text["access_denied"] = "Přístup zamítnut.";
$text["access_inheritance"] = "Dědičnost přístupu";
$text["access_mode"] = "Režim přístupu";
$text["access_mode_all"] = "Každý";
$text["access_mode_none"] = "Žádný přístup";
$text["access_mode_read"] = "Na čtení";
$text["access_mode_readwrite"] = "Na čtení i zápis";
$text["account_summary"] = "Shrnutí účtu";
$text["action_summary"] = "Shrnutí činností";
$text["actions"] = "Činnosti";
$text["add"] = "Přidat";
$text["add_access"] = "Přidat přístup";
$text["add_doc_reviewer_approver_warning"] = "Pozn.: Dokumenty se automaticky označí jako vydané, když není přidělen žádný kontrolor nebo schvalovatel.";
$text["add_document"] = "Přidat dokument";
$text["add_document_link"] = "Přidat odkaz";
$text["add_group"] = "Přidat novou skupinu";
$text["add_link"] = "Vytvořit odkaz";
$text["add_member"] = "Přidat člena";
$text["add_new_notify"] = "Přidat nové upozornění";
$text["add_subfolder"] = "Přidat podadresář";
$text["add_user"] = "Přidat nového uživatele";
$text["adding_default_keywords"] = "Přidávají se klíčová slova...";
$text["adding_document"] = "Přidává se dokument \"[documentname]\" do adresáře \"[foldername]\"...";
$text["adding_document_link"] = "Přidává se odkaz na související dokument...";
$text["adding_document_notify"] = "Přidává se prvek do seznamu upozornění...";
$text["adding_folder_notify"] = "Přidává se prvek do seznamu upozornění...";
$text["adding_group"] = "Přidává se skupina do systému...";
$text["adding_member"] = "Přidává se člen skupiny..";
$text["adding_sub_folder"] = "Přidává se podadresář \"[subfoldername]\" do adresáře \"[foldername]\"...";
$text["adding_user"] = "Přidává se uživatel do systému..";
$text["admin"] = "Správce";
$text["admin_set_owner"] = "Pouze správce může nastavit nového vlastníka";
$text["admin_tools"] = "Nástroje správce";
$text["all_documents"] = "Všechny dokumenty";
$text["all_users"] = "Všichni uživatelé";
$text["and"] = "a";
$text["approval_group"] = "Skupina schválení";
$text["approval_status"] = "Stav schválení";
$text["approval_summary"] = "Shrnutí schválení";
$text["approval_update_failed"] = "Chyba při aktualizaci stavu schválení. Aktualizace selhala.";
$text["approve_document"] = "Schválit dokument";
$text["approve_document_complete"] = "Schválit dokument: Hotovo";
$text["approve_document_complete_records_updated"] = "Schválení dokumentu bylo dokončené a záznamy aktualizované";
$text["approver_added"] = "přidaný jako schvalovatel";
$text["approver_already_assigned"] = "už je přidělen jako schvalovatel";
$text["approver_already_removed"] = "byl odstraněn z procesu schvalování nebo už poslal schválení";
$text["approver_no_privilege"] = "nemá dostatečné oprávnění na schválení tohoto dokumentu";
$text["approver_removed"] = "byl odstraněn z procesu schvalování";
$text["approvers"] = "Schvalovatelé";
$text["as_approver"] = "jako schvalovatel";
$text["as_reviewer"] = "jako kontrolor";
$text["assign_privilege_insufficient"] = "Přístup zamítnut. Nedostatečné oprávnění na přidělení kontrolorů k tomuto dokumentu.";
$text["assumed_released"] = "Pokládá se za zveřejněné";
$text["back"] = "Přejít zpět";
$text["between"] = "mezi";
$text["cancel"] = "Zrušit";
$text["cannot_approve_pending_review"] = "Dokument momentálně čeká na kontrolu. Momentálně není možné poslat schválení.";
$text["cannot_assign_invalid_state"] = "Není možné přidělit schvalovatele dokumentu, který nečeká na kontrolu nebo na schválení.";
$text["cannot_change_final_states"] = "Upozornění: Nebylo možné změnit stav dokumentů, které byly odmítnuty, označené jako zastaralé nebo platnost vypršela.";
$text["cannot_delete_admin"] = "Není možné smazat primárního správce.";
$text["cannot_move_root"] = "Chyba: Není možné přesunout kořenový adresář.";
$text["cannot_retrieve_approval_snapshot"] = "Není možné získat informaci o stavu schválení této verze dokumentu.";
$text["cannot_retrieve_review_snapshot"] = "Není možné získat informaci o stavu kontroly této verze dokumentu.";
$text["cannot_rm_root"] = "Chyba: Není možné smazat kořenový adresář.";
$text["choose_category"] = "--Vyberte prosím--";
$text["choose_group"] = "--Vyberte skupinu--";
$text["choose_target_document"] = "Vyberte dokument";
$text["choose_target_folder"] = "Vyberte cílový adresář";
$text["choose_user"] = "--Vyberte uživatele--";
$text["comment"] = "Komentář";
$text["comment_for_current_version"] = "Komentář k aktuální verzi";
$text["confirm_pwd"] = "Potvrzení hesla";
$text["confirm_rm_document"] = "Skutečně chcete odstranit dokument \"[documentname]\"?<br>Buďte opatrní: Tuto činnost není možné vrátit zpět.";
$text["confirm_rm_folder"] = "Skutečně chcete odstranit \"[foldername]\" a jeho obsah?<br>Buďte opatrní: Tuto činnost nené možné vrátit zpět.";
$text["confirm_rm_version"] = "Skutečně chcete odstranit verzi [version] dokumentu \"[documentname]\"?<br>Buďte opatrní: Tuto činnost není možné vrátit zpět.";
$text["content"] = "Obsah";
$text["continue"] = "Pokračovat";
$text["creating_new_default_keyword_category"] = "Přidává se kategorie...";
$text["creation_date"] = "Vytvořeno";
$text["current_version"] = "Aktuální verze";
$text["default_access"] = "Standardní režim přístupu";
$text["default_keyword_category"] = "Kategorie";
$text["default_keyword_category_name"] = "Název";
$text["default_keywords"] = "Dostupná klíčová slova";
$text["delete"] = "Smazat";
$text["delete_last_version"] = "Dokument má pouze jednu revizi. Maže se celý záznam dokumentu...";
$text["deleting_document_notify"] = "Odstraňuje se prvek ze seznamu upozornění...";
$text["deleting_folder_notify"] = "Odstraňuje se prvek ze seznamu upozornění...";
$text["details"] = "Podrobnosti";
$text["details_version"] = "Podrobnosti verze: [version]";
$text["document"] = "Dokument";
$text["document_access_again"] = "Znova upravit přístup k dokumentu";
$text["document_add_access"] = "Přidává se prvek do seznamu řízení přístupu...";
$text["document_already_locked"] = "Tento dokument je už zamčený";
$text["document_del_access"] = "Odstraňuje se prvek ze seznamu řízení přístupu...";
$text["document_edit_access"] = "Mění se režim přístupu...";
$text["document_infos"] = "Informace o dokumentu";
$text["document_is_not_locked"] = "Tento dokument není zamčený";
$text["document_link_by"] = "Odkazuje sem";
$text["document_link_public"] = "Veřejný";
$text["document_list"] = "Dokumenty";
$text["document_notify_again"] = "Znova upravit seznam upozornění";
$text["document_overview"] = "Přehled dokumentu";
$text["document_set_default_access"] = "Nastavuje se standardní přístup k dokumentu...";
$text["document_set_inherit"] = "Odstraňuje se seznam řízení přístupu. Dokument bude přístup dědit...";
$text["document_set_not_inherit_copy"] = "Kopíruje se seznam řízení přístupu...";
$text["document_set_not_inherit_empty"] = "Odstraňuje se zděděný přístup. Zakládá se nový seznam řízení přístupu...";
$text["document_status"] = "Stav dokumentu";
$text["document_title"] = "Dokument '[documentname]'";
$text["document_versions"] = "Všechny verze";
$text["documents_in_process"] = "Dokumenty ve zpracování";
$text["documents_owned_by_user"] = "Dokumenty tohoto uživatele";
$text["documents_to_approve"] = "Dokumenty čekající na schválení uživatele";
$text["documents_to_review"] = "Dokumenty čekající na kontrolu uživatele";
$text["documents_user_requiring_attention"] = "Dokumenty, které uživatel vlastní a vyžadují pozornost";
$text["does_not_expire"] = "Platnost nikdy nevyprší";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">Zdědit přístup</a>";
$text["download"] = "Stáhnout";
$text["draft_pending_approval"] = "Návrh - čeká na schválení";
$text["draft_pending_review"] = "Návrh - čeká na kontrolu";
$text["edit"] = "upravit";
$text["edit_default_keyword_category"] = "Upravit kategorie";
$text["edit_default_keywords"] = "Upravit klíčová slova";
$text["edit_document"] = "Upravit dokument";
$text["edit_document_access"] = "Upravit přístup";
$text["edit_document_notify"] = "Seznam upozornění";
$text["edit_document_props"] = "Upravit dokument";
$text["edit_document_props_again"] = "Znova upravit dokument";
$text["edit_existing_access"] = "Upravit seznam řízení přístupu";
$text["edit_existing_notify"] = "Upravit seznam upozornění";
$text["edit_folder"] = "Upravit adresář";
$text["edit_folder_access"] = "Upravit přístup";
$text["edit_folder_notify"] = "Seznam upozornění";
$text["edit_folder_props"] = "Upravit adresář";
$text["edit_folder_props_again"] = "Znova upravit adresář";
$text["edit_group"] = "Upravit skupinu";
$text["edit_inherit_access"] = "Zdědit přístup";
$text["edit_personal_default_keywords"] = "Upravit osobní klíčová slova";
$text["edit_user"] = "Upravit uživatele";
$text["edit_user_details"] = "Upravit podrobnosti uživatele";
$text["editing_default_keyword_category"] = "Mění se kategorie...";
$text["editing_default_keywords"] = "Mění se klíčová slova...";
$text["editing_document_props"] = "Upravuje se dokument...";
$text["editing_folder_props"] = "Upravuje se adresář...";
$text["editing_group"] = "Upravuje se skupina...";
$text["editing_user"] = "Upravuje se uživatel...";
$text["editing_user_data"] = "Upravují se nastavení uživatele...";
$text["email"] = "Email";
$text["email_err_group"] = "Chyba při posílání emailu jednému nebo více členům této skupiny.";
$text["email_err_user"] = "Chyba při posílání emailu uživateli.";
$text["email_sent"] = "Email odeslán";
$text["empty_access_list"] = "Seznam řízení přístupu je prázdný";
$text["empty_notify_list"] = "Žádné položky";
$text["error_adding_session"] = "Při vytváření relace se vyskytla chyba.";
$text["error_occured"] = "Vyskytla se chyba";
$text["error_removing_old_sessions"] = "Vyskytla se chyba při odstraňování starých relací";
$text["error_updating_revision"] = "Chyba při aktualizaci stavu revize dokumentu.";
$text["exp_date"] = "Platnost vyprší";
$text["expired"] = "Platnost vypršela";
$text["expires"] = "Platnost vyprší";
$text["file"] = "Soubor";
$text["file_info"] = "Informace o souboru";
$text["file_size"] = "Velikost souboru";
$text["folder_access_again"] = "Znova upravit přístup k adresáři";
$text["folder_add_access"] = "Přidává se prvek do seznamu řízení přístupu...";
$text["folder_contents"] = "Adresáře";
$text["folder_del_access"] = "Odstraňuje se prvek ze seznamu řízení přístupu...";
$text["folder_edit_access"] = "Upravuje se přístup...";
$text["folder_infos"] = "Informace o adresáři";
$text["folder_notify_again"] = "Znova upravit seznam upozornění";
$text["folder_overview"] = "Přehled adresáře";
$text["folder_path"] = "Cesta";
$text["folder_set_default_access"] = "nastavuje se standardní režim přístupu k adresáři...";
$text["folder_set_inherit"] = "Odstraňuje se seznam řízení přístupu. Adresář zdědí řízení přístupu...";
$text["folder_set_not_inherit_copy"] = "Kopíruje se seznam řízení přístupu...";
$text["folder_set_not_inherit_empty"] = "Odstraňuje se zděděný přístup. Zakládá se nový seznam řízení přístupu...";
$text["folder_title"] = "Adresář '[foldername]'";
$text["folders_and_documents_statistic"] = "Přehled adresářů a dokumentů";
$text["foldertree"] = "Strom adresářů";
$text["from_approval_process"] = "z procesu schvalování";
$text["from_review_process"] = "z procesu kontroly";
$text["global_default_keywords"] = "Globální klíčová slova";
$text["goto"] = "Přejít na";
$text["group"] = "Skupina";
$text["group_already_approved"] = "Ve jménu skupiny už bylo odesláno schválení";
$text["group_already_reviewed"] = "Ve jménu skupiny už byla odoslána kontrola";
$text["group_approvers"] = "Schvalovatelé skupiny";
$text["group_email_sent"] = "Email odeslán členům skupiny";
$text["group_exists"] = "Skupina už existuje.";
$text["group_management"] = "Skupiny";
$text["group_members"] = "Členové skupiny";
$text["group_reviewers"] = "Kontroloři skupiny";
$text["group_unable_to_add"] = "Nebylo možné přidat skupinu";
$text["group_unable_to_remove"] = "Nebylo možné odstranit skupinu";
$text["groups"] = "Skupiny";
$text["guest_login"] = "Přihlásit se jako host";
$text["guest_login_disabled"] = "Přihlášení jako host je vypnuté.";
$text["individual_approvers"] = "Jednotliví schvalovatelé";
$text["individual_reviewers"] = "Jednotliví kontroloři";
$text["individuals"] = "Jednotlivci";
$text["inherits_access_msg"] = "Přístup se dědí.<p><a class=\"inheritAccess\" href=\"[copyurl]\">Zkopírovat zděděný seznam řízení přístupu</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">Založit nový seznam řízení přístupu</a>";
$text["internal_error"] = "Vnitřní chyba";
$text["internal_error_exit"] = "Vnitřní chyba. Nebylo možné dokončit požadavek. Ukončuje se.";
$text["invalid_access_mode"] = "Neplatný režim přístupu";
$text["invalid_action"] = "Neplatná činnost";
$text["invalid_approval_status"] = "Neplatný stav schválení";
$text["invalid_create_date_end"] = "Neplatné koncové datum vytvoření.";
$text["invalid_create_date_start"] = "Neplatné počáteční datum vytvoření.";
$text["invalid_doc_id"] = "Neplatný ID dokumentu";
$text["invalid_folder_id"] = "Neplatné ID adresáře";
$text["invalid_group_id"] = "Neplatné ID skupiny";
$text["invalid_link_id"] = "Neplatné ID odkazu";
$text["invalid_review_status"] = "Neplatný stav kontroly";
$text["invalid_sequence"] = "Neplatná hodnota posloupnosti";
$text["invalid_status"] = "Neplatný stav dokumentu";
$text["invalid_target_doc_id"] = "Neplatné cílové ID dokumentu";
$text["invalid_target_folder"] = "Neplatné cílové ID adresáře";
$text["invalid_user_id"] = "Neplatné ID uživatele";
$text["invalid_version"] = "Neplatná verze dokumentu";
$text["is_admin"] = "Oprávnění správce";
$text["js_no_approval_group"] = "Prosím, vyberte skupinu pro schválení";
$text["js_no_approval_status"] = "Prosím, vyberte stav schválení";
$text["js_no_comment"] = "Žádný komentář";
$text["js_no_email"] = "Napište svou emailovou adresu";
$text["js_no_file"] = "Prosím, vyberte soubor";
$text["js_no_keywords"] = "Zadejte nějaká klíčová slova";
$text["js_no_login"] = "Prosím, napište jméno uživatele";
$text["js_no_name"] = "Prosím, napište jméno";
$text["js_no_override_status"] = "Prosím, vyberte nový stav [přepíše se]";
$text["js_no_pwd"] = "Budete muset napsat své heslo";
$text["js_no_query"] = "Napište požadavek";
$text["js_no_review_group"] = "Prosím, vyberte skupinu pro kontrolu";
$text["js_no_review_status"] = "Prosím, vyberte stav kontroly";
$text["js_pwd_not_conf"] = "Heslo a potvrzení hesla se neshodují";
$text["js_select_user"] = "Prosím, vyberte uživatele";
$text["js_select_user_or_group"] = "Vyberte aspoň uživatele nebo skupinu";
$text["keyword_exists"] = "Klíčové slovo už existuje";
$text["keywords"] = "Klíčová slova";
$text["language"] = "Jazyk";
$text["last_update"] = "Poslední aktualizace";
$text["last_updated_by"] = "Naposledy aktualizoval";
$text["latest_version"] = "Poslední verze";
$text["linked_documents"] = "Související dokumenty";
$text["local_file"] = "Lokální soubor";
$text["lock_document"] = "Zamknout";
$text["lock_message"] = "Tento dokument zamknul <a href=\"mailto:[email]\">[username]</a>.<br>Pouze oprávnění uživatelé ho mohou odemknout (viz konec stránky).";
$text["lock_status"] = "Stav";
$text["locking_document"] = "Zamyká se dokument...";
$text["logged_in_as"] = "Přihlášen";
$text["login"] = "Přihlásit se";
$text["login_error_text"] = "Chyba při přihlašování. ID uživatele nebo heslo je nesprávné.";
$text["login_error_title"] = "Chyba při přihlašování";
$text["login_not_found"] = "Toto uživatelské jméno neexistuje";
$text["login_not_given"] = "Nebylo zadané uživatelské jméno";
$text["login_ok"] = "Přihlášení proběhlo úspěšně";
$text["logout"] = "Odhlášení";
$text["mime_type"] = "Mime-Type";
$text["move"] = "Přesunout";
$text["move_document"] = "Přesunout dokument";
$text["move_folder"] = "Přesunout adresář";
$text["moving_document"] = "Přesouvá se dokument...";
$text["moving_folder"] = "Přesouvá se adresář...";
$text["msg_document_expired"] = "Platnost dokumentu \"[documentname]\" (Cesta: \"[path]\") vypršela [expires]";
$text["msg_document_updated"] = "Dokument \"[documentname]\" (Cesta: \"[path]\") byl vytvořen nebo aktualizován [updated]";
$text["my_account"] = "Můj účet";
$text["my_documents"] = "Moje dokumenty";
$text["name"] = "Jméno";
$text["new_default_keyword_category"] = "Přidat kategorii";
$text["new_default_keywords"] = "Přidat klíčová slova";
$text["new_equals_old_state"] = "Upozornění: Navrhovaný stav a současný stav jsou shodné. Nic se nevykoná.";
$text["new_user_image"] = "Nový obrázek";
$text["no"] = "Ne";
$text["no_action"] = "Nic se nevykoná";
$text["no_action_required"] = "n/a";
$text["no_active_user_docs"] = "Momentálně neexistují žádné dokumenty tohoto uživatele, které vyžadují kontrolu nebo schválení.";
$text["no_approvers"] = "Nebyli přiděleni žádní schvalovatelé.";
$text["no_default_keywords"] = "Nejsou dostupná žádná klíčová slova.";
$text["no_docs_to_approve"] = "Momentálně neexistují žádné dokumenty, které vyžadují schválení.";
$text["no_docs_to_review"] = "Momentálně neexistují žádné dokumenty, které vyžadují kontrolu.";
$text["no_document_links"] = "Žádné související dokumenty";
$text["no_documents"] = "Žádné dokumenty";
$text["no_group_members"] = "Tato skupina nemá žádné členy";
$text["no_groups"] = "Žádné skupiny";
$text["no_previous_versions"] = "Nebyly nalezeny žádné jiné verze";
$text["no_reviewers"] = "Nebyli přiděleni žádní kontroloři.";
$text["no_subfolders"] = "Žádné podadresáře";
$text["no_update_cause_locked"] = "Proto nemůžete aktualizovat tento dokument. Prosím, kontaktujte uživatele, který ho zamknul.";
$text["no_user_image"] = "nebyl nalezen žádný obrázek";
$text["not_approver"] = "Uživatel momentálně není přidělený jako schvalovatel této revize dokumentu.";
$text["not_reviewer"] = "Uživatel momentálně není přidělený jako kontrolor této revize dokumentu.";
$text["notify_subject"] = "Nové nebo expirované dokumenty ve vašem systému";
$text["obsolete"] = "Zastaralé";
$text["old_folder"] = "starý adresář";
$text["only_jpg_user_images"] = "Pro obrázky uživatelů je možné použít pouze obrázky .jpg";
$text["op_finished"] = "hotovo";
$text["operation_not_allowed"] = "na to nemáte dostatečné oprávnění";
$text["override_content_status"] = "Přepsat stav";
$text["override_content_status_complete"] = "Přepsání stavu dokončené";
$text["override_privilege_insufficient"] = "Přístup zamítnut. Nedostatečné oprávnění pro přepsání stavu tohoto dokumentu.";
$text["overview"] = "Přehled";
$text["owner"] = "Vlastník";
$text["password"] = "Heslo";
$text["pending_approval"] = "Dokumenty čekající na schválení";
$text["pending_review"] = "Dokumenty čekající na kontrolu";
$text["personal_default_keywords"] = "Osobní klíčová slova";
$text["previous_versions"] = "Předešlé verze";
$text["rejected"] = "Odmítnuty";
$text["released"] = "Vydány";
$text["remove_document_link"] = "Odstranit odkaz";
$text["remove_member"] = "Odstranit člena";
$text["removed_approver"] = "byl odstraněn ze seznamu schvalovatelů.";
$text["removed_reviewer"] = "byl odstraněn ze seznamu kontrolorů.";
$text["removing_default_keyword_category"] = "Maže se kategorie...";
$text["removing_default_keywords"] = "Mažou se klíčová slova...";
$text["removing_document"] = "Odstraňuje se dokument...";
$text["removing_document_link"] = "Odstraňuje se odkaz na související dokument...";
$text["removing_folder"] = "Odstraňuje se adresář...";
$text["removing_group"] = "Odstraňuje se skupina ze systému...";
$text["removing_member"] = "Odstraňuje se člen ze skupiny...";
$text["removing_user"] = "Odstraňuje se uživatel ze systému...";
$text["removing_version"] = "Odstraňuje se verze [version]...";
$text["review_document"] = "Zkontrolovat dokument";
$text["review_document_complete"] = "Kontrola dokumentu: Dokončena";
$text["review_document_complete_records_updated"] = "Kontrola dokumentu byla dokončena a záznamy aktualizované";
$text["review_group"] = "Skupina kontroly";
$text["review_status"] = "Stav kontroly";
$text["review_summary"] = "Shrnutí kontroly";
$text["review_update_failed"] = "Chyba při aktualizaci stavu kontroly. Aktualizace selhala.";
$text["reviewer_added"] = "přidaný jako kontrolor";
$text["reviewer_already_assigned"] = "je už pověřen jako kontrolor";
$text["reviewer_already_removed"] = "už byl odstraněn z procesu kontroly nebo poslal kontrolu";
$text["reviewer_no_privilege"] = "nemá dostatečné oprávnění na kontrolu tohoto dokumentu";
$text["reviewer_removed"] = "odstraněn z procesu kontroly";
$text["reviewers"] = "Kontroloři";
$text["rm_default_keyword_category"] = "Smazat kategorii";
$text["rm_default_keywords"] = "Smazat klíčová slova";
$text["rm_document"] = "Odstranit dokument";
$text["rm_folder"] = "Odstranit adresář";
$text["rm_group"] = "Odstranit tuto skupinu";
$text["rm_user"] = "Odstranit tohoto uživatele";
$text["rm_version"] = "Odstranit verzi";
$text["root_folder"] = "Kořenový adresář";
$text["save"] = "Uložit";
$text["search"] = "Hledat";
$text["search_in"] = "Prohledávat";
$text["search_in_all"] = "všechny adresáře";
$text["search_in_current"] = "pouze tento ([foldername]) včetně podadresářů";
$text["search_mode"] = "Režim";
$text["search_mode_and"] = "všechna slova";
$text["search_mode_or"] = "alespoň jedno ze slov";
$text["search_no_results"] = "Vašemu dotazu nevyhovují žádné dokumenty";
$text["search_query"] = "Hledat";
$text["search_report"] = "Nalezených [count] dokumentů odpovídajících dotazu";
$text["search_result_pending_approval"] = "stav 'čeká na schválení'";
$text["search_result_pending_review"] = "stav 'čeká na kontrolu'";
$text["search_results"] = "Výsledky hledání";
$text["search_results_access_filtered"] = "Výsledky hledání můžou obsahovat obsah, ke kterému byl zamítnut přístup.";
$text["search_time"] = "Uplynulý čas: [time] sek";
$text["select_one"] = "Vyberte jeden";
$text["selected_document"] = "Vybraný dokument";
$text["selected_folder"] = "Vybraný adresář";
$text["selection"] = "Výběr";
$text["seq_after"] = "Po \"[prevname]\"";
$text["seq_end"] = "Na konec";
$text["seq_keep"] = "Ponechat pozici";
$text["seq_start"] = "První pozice";
$text["sequence"] = "Posloupnost";
$text["set_default_access"] = "Nastavit standardní režim přístupu";
$text["set_expiry"] = "Nastavit expiraci";
$text["set_owner"] = "Nastavit vlastníka";
$text["set_reviewers_approvers"] = "Pověřit kontrolory a schvalovatele";
$text["setting_expires"] = "Nastavuje se expirace...";
$text["setting_owner"] = "Nastavuje se vlastník...";
$text["setting_user_image"] = "<br>Nastavuje se obrázek uživatele...";
$text["show_all_versions"] = "Zobrazit všechny revize";
$text["show_current_versions"] = "Zobrazit aktuální";
$text["start"] = "Začátek";
$text["status"] = "Stav";
$text["status_approval_rejected"] = "Návrh zamítnut";
$text["status_approved"] = "Schválen";
$text["status_approver_removed"] = "Schvalovatel odstraněn z procesu";
$text["status_change_summary"] = "Revize dokumentu se změnila ze stavu '[oldstatus]' na stav '[newstatus]'.";
$text["status_changed_by"] = "Stav změnil ";
$text["status_not_approved"] = "Neschválený";
$text["status_not_reviewed"] = "Nezkontrolovaný";
$text["status_reviewed"] = "Zkontrolovaný";
$text["status_reviewer_rejected"] = "Návrh zamítnut";
$text["status_reviewer_removed"] = "Kontrolor odstraněn z procesu";
$text["status_unknown"] = "Neznámý";
$text["subfolder_list"] = "Podadresáře";
$text["submit_approval"] = "Poslat schválení";
$text["submit_login"] = "Přihlásit se";
$text["submit_review"] = "Poslat kontrolu";
$text["theme"] = "Vzhled";
$text["unable_to_add"] = "Nebylo možné přidat";
$text["unable_to_remove"] = "Nebylo možné odstranit";
$text["under_folder"] = "V adresáři";
$text["unknown_command"] = "Příkaz nebyl rozpoznán.";
$text["unknown_group"] = "Neznámé ID skupiny";
$text["unknown_keyword_category"] = "Neznámá kategorie";
$text["unknown_owner"] = "Neznámé ID vlastníka";
$text["unknown_user"] = "Neznámé ID uživatele";
$text["unlock_cause_access_mode_all"] = "Můžete ho pořád aktualizovat, protože máte režim přístupu \"all\". Zámek bude automaticky odstraněn.";
$text["unlock_cause_locking_user"] = "Můžete ho pořád aktualizovat, protože jste ten, kdo ho zamknul. Zámek bude automaticky odstraněn.";
$text["unlock_document"] = "Odemknout";
$text["unlocking_denied"] = "Nemáte dostatečné oprávnění na odemknutí tohoto dokumentu";
$text["unlocking_document"] = "Odemyká se dokument...";
$text["update"] = "Aktualizovat";
$text["update_approvers"] = "Aktualizovat seznam schvalovatelů";
$text["update_document"] = "Aktualizovat";
$text["update_info"] = "Aktualizovat informace";
$text["update_locked_msg"] = "Tento dokument je zamčený.";
$text["update_reviewers"] = "Aktualizovat seznam kontrolorů";
$text["update_reviewers_approvers"] = "Aktualizovat seznam kontrolorů a schvalovatelů";
$text["updated_by"] = "Aktualizoval";
$text["updating_document"] = "Aktualizuje se dokument...";
$text["upload_date"] = "Datum nahrání";
$text["uploaded"] = "Nahrál";
$text["uploaded_by"] = "Nahrál";
$text["uploading_failed"] = "Nahrání selhalo. Prosím, kontaktujte správce.";
$text["use_default_keywords"] = "Použít předdefinovaná klíčová slova";
$text["user"] = "Uživatel";
$text["user_already_approved"] = "Uživatel už poslal schválení této verze dokumentu";
$text["user_already_reviewed"] = "Uživatel už poslal kontrolu této verze dokumentu";
$text["user_approval_not_required"] = "Momentálně se od uživatele nevyžaduje schválení dokumetu.";
$text["user_exists"] = "Uživatel už existuje.";
$text["user_image"] = "Obrázek";
$text["user_info"] = "Informace o uživateli";
$text["user_list"] = "Seznam uživatelů";
$text["user_login"] = "ID uživatele";
$text["user_management"] = "Uživatelé";
$text["user_name"] = "Plné jméno";
$text["user_removed_approver"] = "Uživatel byl odstraněn ze seznamu jednotlivých schvalovatelů.";
$text["user_removed_reviewer"] = "Uživatel byl odstraněn ze seznamu jednotlivých kontrolorů.";
$text["user_review_not_required"] = "Momentálně se od uživatele nevyžaduje kontrola dokumentu.";
$text["users"] = "Uživatel";
$text["version"] = "Verze";
$text["version_info"] = "Informace o verzi";
$text["version_under_approval"] = "Verze se schvaluje";
$text["version_under_review"] = "Verze se kontroluje";
$text["view_document"] = "Zobrazit dokument";
$text["view_online"] = "Zobrazit online";
$text["warning"] = "Upozornění";
$text["wrong_pwd"] = "Vaše heslo je nesprávné. Zkuste to znova.";
$text["yes"] = "Ano";
// New as of 1.7.2
$text["all_pages"] = "All";
$text["results_page"] = "Results Page";
// New
$text["sign_out"] = "sign out";
$text["signed_in_as"] = "Signed in as";
$text["assign_reviewers"] = "Assign Reviewers";
$text["assign_approvers"] = "Assign Approvers";
$text["override_status"] = "Override Status";
$text["change_status"] = "Change Status";
$text["change_assignments"] = "Change Assignments";
$text["no_user_docs"] = "There are currently no documents owned by the user";
$text["disclaimer"] = "This is a classified area. Access is permitted only to authorized personnel. Any violation will be prosecuted according to the english and international laws.";
$text["backup_tools"] = "Backup tools";
$text["versioning_file_creation"] = "Versioning file creation";
$text["archive_creation"] = "Archive creation";
$text["files_deletion"] = "Files deletion";
$text["folder"] = "Folder";
$text["unknown_id"] = "unknown id";
$text["help"] = "Help";
$text["versioning_info"] = "Versioning info";
$text["versioning_file_creation_warning"] = "With this operation you can create a file containing the versioning information of an entire DMS folder. After the creation every file will be saved inside the document folder.";
$text["archive_creation_warning"] = "With this operation you can create achive containing the files of entire DMS folders. After the creation the archive will be saved in the data folder of your server.<br>WARNING: an archive created as human readable will be unusable as server backup.";
$text["files_deletion_warning"] = "With this option you can delete all files of entire DMS folders. The versioning information will remain visible.";
$text["backup_list"] = "Existings backup list";
$text["backup_remove"] = "Remove backup file";
$text["confirm_rm_backup"] = "Do you really want to remove the file \"[arkname]\"?<br>Be careful: This action cannot be undone.";
$text["document_deleted"] = "Document deleted";
$text["linked_files"] = "Attachments";
$text["invalid_file_id"] = "Invalid file ID";
$text["rm_file"] = "Remove file";
$text["confirm_rm_file"] = "Do you really want to remove file \"[name]\" of document \"[documentname]\"?<br>Be careful: This action cannot be undone.";
$text["edit_comment"] = "Edit comment";
// new from 1.9
$text["is_hidden"] = "Hide from users list";
$text["log_management"] = "Log files management";
$text["confirm_rm_log"] = "Do you really want to remove log file \"[logname]\"?<br>Be careful: This action cannot be undone.";
$text["include_subdirectories"] = "Include subdirectories";
$text["include_documents"] = "Include documents";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Toggle manager";
// new from 2.0
$text["calendar"] = "Calendar";
$text["week_view"] = "Week view";
$text["month_view"] = "Month view";
$text["year_view"] = "Year View";
$text["add_event"] = "Add event";
$text["edit_event"] = "Edit event";
$text["january"] = "January";
$text["february"] = "February";
$text["march"] = "March";
$text["april"] = "April";
$text["may"] = "May";
$text["june"] = "June";
$text["july"] = "July";
$text["august"] = "August";
$text["september"] = "September";
$text["october"] = "October";
$text["november"] = "November";
$text["december"] = "December";
$text["sunday"] = "Sunday";
$text["monday"] = "Monday";
$text["tuesday"] = "Tuesday";
$text["wednesday"] = "Wednesday";
$text["thursday"] = "Thursday";
$text["friday"] = "Friday";
$text["saturday"] = "Saturday";
$text["from"] = "From";
$text["to"] = "To";
$text["event_details"] = "Event details";
$text["confirm_rm_event"] = "Do you really want to remove event \"[name]\"?<br>Be careful: This action cannot be undone.";
$text["dump_creation"] = "DB dump creation";
$text["dump_creation_warning"] = "With this operation you can create a dump file of your database content. After the creation the dump file will be saved in the data folder of your server.";
$text["dump_list"] = "Existings dump files";
$text["dump_remove"] = "Remove dump file";
$text["confirm_rm_dump"] = "Do you really want to remove the file \"[dumpname]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_user"] = "Do you really want to remove the user \"[username]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_group"] = "Do you really want to remove the group \"[groupname]\"?<br>Be careful: This action cannot be undone.";
$text["human_readable"] = "Human readable archive";
$text["email_header"] = "This is an automatic message from the DMS server.";
$text["email_footer"] = "You can always change your e-mail settings using 'My Account' functions";
$text["add_multiple_files"] = "Add multiple files (will use filename as document name)";
// new from 2.0.1
$text["max_upload_size"] = "Maximum upload size for each file";
?>

184
languages/English/help.htm Normal file
View File

@ -0,0 +1,184 @@
<h1>General Notes</h1>
<p>
A DMS (Document Management System) is designed to allow documents share
controlling the workflow, access permissions and organization in general.
</p>
<p>
Using the first level menu the user can access the various information stored in the system:
<ul>
<li>Content: allows you to browse documents in a file manager style.
<li>My documents: has several entries to access documents of interest:
<ul>
<li>Documents in process: lists of documents awaiting review or approval by the user,
documents owned by the user who await approval or revision, documents locked by the user.
<li>All documents: list of all documents owned by the user.
<li>Review summary: list all the documents that were reviewed or awaiting review by the user.
<li>Approval summary: list all the documents that were approved or awaiting approval by the user.
</ul>
</ul>
</p>
<p>
This DMS also provides a calendar that serves as virtual bulletin board to share notes,
appointments, deadlines and commitments.
</p>
<h1>Permissions</h1>
<p>
Authorized users can set if and how other users will access to various folders
and documents submitted.
</p>
<h2>Permission levels</h2>
<p>
The possible access-levels are:
<ul>
<li>Total permits: the user can perform any operation.
<li>Reading and writing: the user can update records and add content to the folders.
<li>Read only: the user can view the contents of folders and download documents.
<li>No Access: the user cannot view the contents of the folders or individual documents.
</ul>
</p>
<p>
By default administrators have total permissions on each document and folder
on the system. Similarly, the document owner has total permits on his documents.
</p>
<p>
Only administrator users can change the owner of a document.
</p>
<h2>Permissions management</h2>
<p>
For each folder or document permissions are managed through two different devices
<ul>
<li>The default permissions are valid in the absence of further specific
<li>The list of permissions allows you to specify exceptions to the default permissions
</ul>
</p>
<h2>Access inheritance</h2>
<p>
The permissions of folders and documents can be set as hereditary.
In this case the files and folders inherit the same permissions of the folder
that contains them.
</p>
<h1>Documents workflow</h1>
<p>
The system automatically handles the workflow for each document and stores
changes, versioning, comments made, etc.
</p>
<h2>Validation cycle</h2>
<p>
The normal workflow requires, when loading a new document or a
new version, to indicate some users or groups of users as reviewers and/or approvers.
Users that are listed as reviewers and approvers are
required to explain their approval to the document. When this operation
is completed, thus all listed users have made their
review/approval, the state of the document will set to 'released'.
</p>
<p>
The reviewer/approver can deny its approval to the document.
In this case the document state is set to 'rejected'.
</p>
<p>
A doc that are not set reviewers and approvals take immediately the state of 'released'.
</p>
<p>
As approvers/reviewers one can indicate groups of users. In this case the
review/approval should be made by any of the users belonging to the group.
</p>
<p>
The document owner may at any time amend the list of reviewers/approvers.
</p>
<h2>Documents status</h2>
<p>
Possible states for a document are:
<ul>
<li>Draft pending approval: one or more of the approvals referred to have not yet expressed their approval.
<li>Draft pending review: one or more of the listed reviewer have not yet expressed their review.
<li>Released: the document has successfully completed its validation cycle.
<li>Rejected: the document has discontinued its validation cycle.
<li>Expired: you have exceeded the target date for completion of the validation of the document.
<li>Obsolete: the status of a released document can be changed to obsolete. This
is intended as an alternative to the cancellation of the document. Obsolete state
is reversible.
</ul>
</p>
<h2>Expiration</h2>
<p>
For each document in production can be set a due date.
Once passed the day set are no longer possible revisions or approvals
and the document goes into an 'expired' state.
</p>
<p>
The deadline is considered only for the latest version of the document
and has effect only on document processing.
</p>
<h1>Other features</h1>
<h2>Lock function</h2>
<p>
Lock function is designed to indicate to other users that a certain document
is in process. Users having total permission on the document can
however reverse the lock and proceed to a modification of the document.
</p>
<h2>Notifications</h2>
<p>
Each user can request notification on documents and folders.
Adding a file or folder in your list of notifications you will receive
reporting of transactions by other users.
</p>
<p>
Only the Manager of a group can decide whether or not to enter the group list
reporting on documents and folders. Once inserted, the notifications come
all members of the group.
</p>
<h2>Keywords and search</h2>
<p>
Each document allows the inclusion of a description and some keywords.
These informations are used for research function.
</p>
<p>
In personal account menu each user can store a set of keywords grouped by categories,
in order to speed filling during the loading of documents.
</p>
<p>
Pressing the search button without entering any word you access the advanced research page.
</p>
<h2>Calendar</h2>
<p>
There are three views: by week, month, year. Events are displayed in order of their
insertion in the calendar.
</p>
<p>
Once inserted, the events are public and visible to everyone. Only the administrator
and who has entered the event can modify it later.
</p>

564
languages/English/lang.inc Normal file
View File

@ -0,0 +1,564 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,application/force-download
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$text = array();
$text["accept"] = "Accept";
$text["access_denied"] = "Access denied.";
$text["access_inheritance"] = "Access Inheritance";
$text["access_mode"] = "Access mode";
$text["access_mode_all"] = "All permissions";
$text["access_mode_none"] = "No access";
$text["access_mode_read"] = "Read permissions";
$text["access_mode_readwrite"] = "Read-Write permissions";
$text["account_summary"] = "Account Summary";
$text["action_summary"] = "Action Summary";
$text["actions"] = "Actions";
$text["add"] = "Add";
$text["add_access"] = "Add access";
$text["add_doc_reviewer_approver_warning"] = "N.B. Documents are automatically marked as released if no reviewer or approver is assigned.";
$text["add_document"] = "Add document";
$text["add_document_link"] = "Add link";
$text["add_group"] = "Add new group";
$text["add_link"] = "Create Link";
$text["add_member"] = "Add a member";
$text["add_new_notify"] = "Add new notifications";
$text["add_subfolder"] = "Add subfolder";
$text["add_user"] = "Add new user";
$text["admin"] = "Administrator";
$text["admin_tools"] = "Admin-Tools";
$text["all_documents"] = "All Documents";
$text["all_pages"] = "All";
$text["all_users"] = "All users";
$text["and"] = "and";
$text["approval_group"] = "Approval Group";
$text["approval_status"] = "Approval Status";
$text["approval_summary"] = "Approval Summary";
$text["approval_update_failed"] = "Error updating approval status. Update failed.";
$text["approve_document"] = "Approve Document";
$text["approve_document_complete"] = "Approve Document: Complete";
$text["approve_document_complete_records_updated"] = "Document approval completed and records updated";
$text["approver_added"] = "added as an approver";
$text["approver_already_assigned"] = "is already assigned as an approver";
$text["approver_already_removed"] = "has already been removed from approval process or has already submitted an approval";
$text["approver_no_privilege"] = "is not sufficiently privileged to approve this document";
$text["approver_removed"] = "removed from approval process";
$text["approvers"] = "Approvers";
$text["as_approver"] = "as an approver";
$text["as_reviewer"] = "as a reviewer";
$text["assign_privilege_insufficient"] = "Access denied. Privileges insufficient to assign reviewers or approvers to this document.";
$text["assumed_released"] = "Assumed released";
$text["back"] = "Go back";
$text["between"] = "between";
$text["cancel"] = "Cancel";
$text["cannot_approve_pending_review"] = "Document is currently pending review. Cannot submit an approval at this time.";
$text["cannot_assign_invalid_state"] = "Cannot modify a document yet in filan state";
$text["cannot_change_final_states"] = "Warning: You cannot alter status for document rejected, expired or with pending review or approval";
$text["cannot_delete_admin"] = "Unable to delete the primary administrative user.";
$text["cannot_move_root"] = "Error: Cannot move root folder.";
$text["cannot_retrieve_approval_snapshot"] = "Unable to retrieve approval status snapshot for this document version.";
$text["cannot_retrieve_review_snapshot"] = "Unable to retrieve review status snapshot for this document version.";
$text["cannot_rm_root"] = "Error: Cannot delete root folder.";
$text["choose_category"] = "Please choose";
$text["choose_group"] = "Choose group";
$text["choose_target_document"] = "Choose document";
$text["choose_target_folder"] = "Choose folder";
$text["choose_user"] = "Choose user";
$text["comment"] = "Comment";
$text["comment_for_current_version"] = "Version comment";
$text["confirm_pwd"] = "Confirm Password";
$text["confirm_rm_document"] = "Do you really want to remove the document \"[documentname]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_folder"] = "Do you really want to remove the folder \"[foldername]\" and its content?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_version"] = "Do you really want to remove version [version] of document \"[documentname]\"?<br>Be careful: This action cannot be undone.";
$text["content"] = "Content";
$text["continue"] = "Continue";
$text["creation_date"] = "Created";
$text["current_version"] = "Current version";
$text["default_access"] = "Default Access Mode";
$text["default_keyword_category"] = "Category";
$text["default_keyword_category_name"] = "Name";
$text["default_keywords"] = "Available keywords";
$text["delete"] = "Delete";
$text["details"] = "Details";
$text["details_version"] = "Details for version: [version]";
$text["document"] = "Document";
$text["document_access_again"] = "Edit document access again";
$text["document_already_locked"] = "This document is aleady locked";
$text["document_infos"] = "Document Information";
$text["document_is_not_locked"] = "This document is not locked";
$text["document_link_by"] = "Linked by";
$text["document_link_public"] = "Public";
$text["document_list"] = "Documents";
$text["document_notify_again"] = "Edit notify-list again";
$text["document_overview"] = "Document Overview";
$text["document_status"] = "Document Status";
$text["document_title"] = "Document '[documentname]'";
$text["document_versions"] = "All versions";
$text["documents"] = "Documents";
$text["documents_in_process"] = "Documents In Process";
$text["documents_owned_by_user"] = "Documents owned by you";
$text["documents_to_approve"] = "Documents awaiting your approval";
$text["documents_to_review"] = "Documents awaiting your Review";
$text["documents_user_requiring_attention"] = "Documents owned by you that require attention";
$text["does_not_expire"] = "Does not expire";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">Inherit access</a>";
$text["download"] = "Download";
$text["draft_pending_approval"] = "Draft - pending approval";
$text["draft_pending_review"] = "Draft - pending review";
$text["edit"] = "Edit";
$text["edit_default_keyword_category"] = "Edit categories";
$text["edit_default_keywords"] = "Edit keywords";
$text["edit_document"] = "Edit document";
$text["edit_document_access"] = "Edit Access";
$text["edit_document_notify"] = "Document Notification List";
$text["edit_document_props"] = "Edit document";
$text["edit_document_props_again"] = "Edit document again";
$text["edit_existing_access"] = "Edit Access List";
$text["edit_existing_notify"] = "Edit notification list";
$text["edit_folder"] = "Edit folder";
$text["edit_folder_access"] = "Edit access";
$text["edit_folder_notify"] = "Folder Notification List";
$text["edit_folder_props"] = "Edit folder";
$text["edit_folder_props_again"] = "Edit folder again";
$text["edit_group"] = "Edit group";
$text["edit_inherit_access"] = "Inherit access";
$text["edit_personal_default_keywords"] = "Edit personal keywords";
$text["edit_user"] = "Edit user";
$text["edit_user_details"] = "Edit User Details";
$text["email"] = "Email";
$text["email_err_group"] = "Error sending email to one or more members of group [group]";
$text["email_err_user"] = "Error sending email to user [user]";
$text["email_sent"] = "Email sent";
$text["empty_access_list"] = "Access list is empty";
$text["empty_notify_list"] = "No entries";
$text["error_adding_session"] = "Error occured while creating session.";
$text["error_occured"] = "An error has occured";
$text["error_removing_old_sessions"] = "Error occured while removing old sessions";
$text["error_updating_revision"] = "Error updating status of document revision.";
$text["exp_date"] = "Expires";
$text["expired"] = "Expired";
$text["expires"] = "Expires";
$text["file"] = "File";
$text["file_info"] = "File Information";
$text["file_size"] = "Filesize";
$text["folder_access_again"] = "Edit folder access again";
$text["folder_contents"] = "Folder Contents";
$text["folder_infos"] = "Folder Information";
$text["folder_notify_again"] = "Edit notify-list again";
$text["folder_overview"] = "Folder Overview";
$text["folder_path"] = "Path";
$text["folder_title"] = "Folder '[foldername]'";
$text["folders"] = "Folders";
$text["folders_and_documents_statistic"] = "Contents overview";
$text["foldertree"] = "Foldertree";
$text["from_approval_process"] = "from approval process";
$text["from_review_process"] = "from review process";
$text["global_default_keywords"] = "Global keywords";
$text["goto"] = "Go to";
$text["group"] = "Group";
$text["group_already_approved"] = "An approval has already been submitted on behalf of group";
$text["group_already_reviewed"] = "A review has already been submitted on behalf of group";
$text["group_approvers"] = "Group Approvers";
$text["group_email_sent"] = "Email sent to group members";
$text["group_exists"] = "Group already exists.";
$text["group_management"] = "Groups management";
$text["group_members"] = "Group members";
$text["group_reviewers"] = "Group Reviewers";
$text["group_unable_to_add"] = "Unable to add group";
$text["group_unable_to_remove"] = "Unable to remove group";
$text["groups"] = "Groups";
$text["guest_login"] = "Login as guest";
$text["guest_login_disabled"] = "Guest login is disabled.";
$text["individual_approvers"] = "Individual Approvers";
$text["individual_reviewers"] = "Individual Reviewers";
$text["individuals"] = "Individuals";
$text["inherits_access_msg"] = "Access is being inherited.<p><a class=\"inheritAccess\" href=\"[copyurl]\">Copy inherited access list</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">Start with empty access list</a>";
$text["internal_error"] = "Internal error";
$text["internal_error_exit"] = "Internal error. Unable to complete request. Exiting.";
$text["invalid_access_mode"] = "Invalid Access Mode";
$text["invalid_action"] = "Invalid Action";
$text["invalid_approval_status"] = "Invalid Approval Status";
$text["invalid_create_date_end"] = "Invalid end date for creation date range.";
$text["invalid_create_date_start"] = "Invalid start date for creation date range.";
$text["invalid_doc_id"] = "Invalid Document ID";
$text["invalid_folder_id"] = "Invalid Folder ID";
$text["invalid_group_id"] = "Invalid Group ID";
$text["invalid_link_id"] = "Invalid link identifier";
$text["invalid_review_status"] = "Invalid Review Status";
$text["invalid_sequence"] = "Invalid sequence value";
$text["invalid_status"] = "Invalid Document Status";
$text["invalid_target_doc_id"] = "Invalid Target Document ID";
$text["invalid_target_folder"] = "Invalid Target Folder ID";
$text["invalid_user_id"] = "Invalid User ID";
$text["invalid_version"] = "Invalid Document Version";
$text["is_admin"] = "Administrator Privilege";
$text["js_no_approval_group"] = "Please select a approval group";
$text["js_no_approval_status"] = "Please select the approval status";
$text["js_no_comment"] = "There is no comment";
$text["js_no_email"] = "Type in your Email-address";
$text["js_no_file"] = "Please select a file";
$text["js_no_keywords"] = "Specify some keywords";
$text["js_no_login"] = "Please type in a username";
$text["js_no_name"] = "Please type in a name";
$text["js_no_override_status"] = "Please select the new [override] status";
$text["js_no_pwd"] = "You need to type in your password";
$text["js_no_query"] = "Type in a query";
$text["js_no_review_group"] = "Please select a review group";
$text["js_no_review_status"] = "Please select the review status";
$text["js_pwd_not_conf"] = "Password and passwords-confirmation are not equal";
$text["js_select_user"] = "Please select an user";
$text["js_select_user_or_group"] = "Select at least a user or a group";
$text["keyword_exists"] = "Keyword already exists";
$text["keywords"] = "Keywords";
$text["language"] = "Language";
$text["last_update"] = "Last Update";
$text["last_updated_by"] = "Last updated by";
$text["latest_version"] = "Latest Version";
$text["linked_documents"] = "Related Documents";
$text["local_file"] = "Local file";
$text["lock_document"] = "Lock";
$text["lock_message"] = "This document is locked by <a href=\"mailto:[email]\">[username]</a>. Only authorized users can unlock this document.";
$text["lock_status"] = "Status";
$text["logged_in_as"] = "Logged in";
$text["login"] = "Sign in";
$text["login_error_text"] = "Error signing in. User ID or password incorrect.";
$text["login_error_title"] = "Sign in error";
$text["login_not_found"] = "This username does not exist";
$text["login_not_given"] = "No username has been supplied";
$text["login_ok"] = "Sign in successful";
$text["logout"] = "Logout";
$text["mime_type"] = "Mime-Type";
$text["move"] = "Move";
$text["move_document"] = "Move document";
$text["move_folder"] = "Move Folder";
$text["msg_document_expired"] = "The document \"[documentname]\" (Path: \"[path]\") has expired on [expires]";
$text["msg_document_updated"] = "The document \"[documentname]\" (Path: \"[path]\") was created or updated on [updated]";
$text["my_account"] = "My Account";
$text["my_documents"] = "My Documents";
$text["name"] = "Name";
$text["new_default_keyword_category"] = "Add category";
$text["new_default_keywords"] = "Add keywords";
$text["new_equals_old_state"] = "Warning: Proposed status and existing status are identical. No action required.";
$text["new_user_image"] = "New image";
$text["no"] = "No";
$text["no_action"] = "No action required";
$text["no_action_required"] = "n/a";
$text["no_active_user_docs"] = "There are currently no documents owned by the user that require review or approval.";
$text["no_approvers"] = "No approvers assigned.";
$text["no_default_keywords"] = "No keywords available";
$text["no_docs_to_approve"] = "There are currently no documents that require approval.";
$text["no_docs_to_review"] = "There are currently no documents that require review.";
$text["no_document_links"] = "No related documents";
$text["no_documents"] = "No documents";
$text["no_folders"] = "No folders";
$text["no_group_members"] = "This group has no members";
$text["no_groups"] = "No groups";
$text["no_previous_versions"] = "No other versions found";
$text["no_reviewers"] = "No reviewers assigned.";
$text["no_subfolders"] = "No subfolders";
$text["no_update_cause_locked"] = "You can therefore not update this document. Please contanct the locking user.";
$text["no_user_image"] = "No image found";
$text["not_approver"] = "User is not currently assigned as an approver of this document revision.";
$text["not_reviewer"] = "User is not currently assigned as a reviewer of this document revision.";
$text["notification_summary"] = "Notification Summary";
$text["notify_subject"] = "New or expired documents in your DMS";
$text["obsolete"] = "Obsolete";
$text["old_folder"] = "old folder";
$text["only_jpg_user_images"] = "Only .jpg-images may be used as user-images";
$text["op_finished"] = " done";
$text["operation_not_allowed"] = "You don't have enough rights to do that";
$text["override_content_status"] = "Override Status";
$text["override_content_status_complete"] = "Override Status Complete";
$text["override_privilege_insufficient"] = "Access denied. Privileges insufficient to override the status of this document.";
$text["overview"] = "Overview";
$text["owner"] = "Owner";
$text["password"] = "Password";
$text["pending_approval"] = "Documents pending approval";
$text["pending_review"] = "Documents pending review";
$text["personal_default_keywords"] = "Personal keywords";
$text["previous_versions"] = "Previous Versions";
$text["rejected"] = "Rejected";
$text["released"] = "Released";
$text["remove_document_link"] = "Remove link";
$text["remove_member"] = "Remove member";
$text["removed_approver"] = "has been removed from the list of approvers.";
$text["removed_reviewer"] = "has been removed from the list of reviewers.";
$text["results_page"] = "Results Page";
$text["review_document"] = "Review Document";
$text["review_document_complete"] = "Review Document: Complete";
$text["review_document_complete_records_updated"] = "Document review completed and records updated";
$text["review_group"] = "Review Group";
$text["review_status"] = "Review Status";
$text["review_summary"] = "Review Summary";
$text["review_update_failed"] = "Error updating review status. Update failed.";
$text["reviewer_added"] = "added as a reviewer";
$text["reviewer_already_assigned"] = "is already assigned as a reviewer";
$text["reviewer_already_removed"] = "has already been removed from review process or has already submitted a review";
$text["reviewer_no_privilege"] = "is not sufficiently privileged to review this document";
$text["reviewer_removed"] = "removed from review process";
$text["reviewers"] = "Reviewers";
$text["rm_default_keyword_category"] = "Delete category";
$text["rm_default_keywords"] = "Delete keywords";
$text["rm_document"] = "Remove document";
$text["rm_folder"] = "Remove folder";
$text["rm_group"] = "Remove this group";
$text["rm_user"] = "Remove this user";
$text["rm_version"] = "Remove version";
$text["root_folder"] = "Root folder";
$text["save"] = "Save";
$text["search"] = "Search";
$text["search_in"] = "Search in";
$text["search_in_all"] = "all Folders";
$text["search_in_current"] = "only this ([foldername]) including subfolders";
$text["search_mode"] = "Mode";
$text["search_mode_and"] = "all words";
$text["search_mode_or"] = "at least one word";
$text["search_no_results"] = "There are no documents that match your search";
$text["search_query"] = "Search for";
$text["search_report"] = "Found [count] documents";
$text["search_result_pending_approval"] = "status 'pending approval'";
$text["search_result_pending_review"] = "status 'pending review'";
$text["search_results"] = "Search results";
$text["search_results_access_filtered"] = "Search results may contain content to which access has been denied.";
$text["search_time"] = "Elapsed time: [time] sec.";
$text["select_one"] = "Select one";
$text["selected_document"] = "Selected document";
$text["selected_folder"] = "Selected folder";
$text["selection"] = "Selection";
$text["seq_after"] = "After \"[prevname]\"";
$text["seq_end"] = "At the end";
$text["seq_keep"] = "Keep Position";
$text["seq_start"] = "First position";
$text["sequence"] = "Sequence";
$text["set_default_access"] = "Set Default Access Mode";
$text["set_expiry"] = "Set Expiry";
$text["set_owner"] = "Set Owner";
$text["set_reviewers_approvers"] = "Assign Reviewers and Approvers";
$text["show_all_versions"] = "Show All Revisions";
$text["show_current_versions"] = "Show Current";
$text["start"] = "Start";
$text["status"] = "Status";
$text["status_approval_rejected"] = "Draft rejected";
$text["status_approved"] = "Approved";
$text["status_approver_removed"] = "Approver removed from process";
$text["status_change_summary"] = "Document revision changed from status '[oldstatus]' to status '[newstatus]'.";
$text["status_changed_by"] = "Status changed by";
$text["status_not_approved"] = "Not approved";
$text["status_not_reviewed"] = "Not reviewed";
$text["status_reviewed"] = "Reviewed";
$text["status_reviewer_rejected"] = "Draft rejected";
$text["status_reviewer_removed"] = "Reviewer removed from process";
$text["status_unknown"] = "Unknown";
$text["subfolder_list"] = "Subfolders";
$text["submit_approval"] = "Submit approval";
$text["submit_login"] = "Sign in";
$text["submit_review"] = "Submit review";
$text["theme"] = "Theme";
$text["unable_to_add"] = "Unable to add";
$text["unable_to_remove"] = "Unable to remove";
$text["under_folder"] = "In folder";
$text["unknown_command"] = "Command not recognized.";
$text["unknown_group"] = "Unknown group id";
$text["unknown_keyword_category"] = "Unknown category";
$text["unknown_owner"] = "Unknown owner id";
$text["unknown_user"] = "Unknown user id";
$text["unlock_cause_access_mode_all"] = "You can still update it because you have access-mode \"all\". Locking will automatically be removed.";
$text["unlock_cause_locking_user"] = "You can still update it because you are also the one that locked it. Locking will automatically be removed.";
$text["unlock_document"] = "Unlock";
$text["unlocking_denied"] = "You dont't have enough rights to unlock this document";
$text["update"] = "Update";
$text["update_approvers"] = "Update List of Approvers";
$text["update_document"] = "Update";
$text["update_info"] = "Update Information";
$text["update_locked_msg"] = "This document is locked.";
$text["update_reviewers"] = "Update List of Reviewers";
$text["update_reviewers_approvers"] = "Update List of Reviewers and Approvers";
$text["updated_by"] = "Updated by";
$text["upload_date"] = "Upload-Date";
$text["uploaded"] = "Uploaded";
$text["uploaded_by"] = "Uploaded by";
$text["uploading_failed"] = "Upload failed. Please contact the administrator.";
$text["use_default_keywords"] = "Use predefined keywords";
$text["user"] = "User";
$text["user_already_approved"] = "User has already submitted an approval of this document version";
$text["user_already_reviewed"] = "User has already submitted a review of this document version";
$text["user_approval_not_required"] = "No document approval required of user at this time.";
$text["user_exists"] = "User already exists.";
$text["user_image"] = "Image";
$text["user_info"] = "User Information";
$text["user_list"] = "List of Users";
$text["user_login"] = "User ID";
$text["user_management"] = "Users management";
$text["user_name"] = "Full name";
$text["user_removed_approver"] = "User has been removed from the list of individual approvers.";
$text["user_removed_reviewer"] = "User has been removed from the list of individual reviewers.";
$text["user_review_not_required"] = "No document review required of user at this time.";
$text["users"] = "Users";
$text["version"] = "Version";
$text["version_info"] = "Version Information";
$text["version_under_approval"] = "Version under approval";
$text["version_under_review"] = "Version under review";
$text["view_document"] = "View Document";
$text["view_online"] = "View online";
$text["warning"] = "Warning";
$text["wrong_pwd"] = "Your password is incorrect. Try Again.";
$text["yes"] = "Yes";
$text["sign_out"] = "sign out";
$text["signed_in_as"] = "Signed in as";
$text["assign_reviewers"] = "Assign Reviewers";
$text["assign_approvers"] = "Assign Approvers";
$text["override_status"] = "Override Status";
$text["change_status"] = "Change Status";
$text["change_assignments"] = "Change Assignments";
$text["no_user_docs"] = "There are currently no documents owned by the user";
$text["disclaimer"] = "This is a classified area. Access is permitted only to authorized personnel. Any violation will be prosecuted according to the national and international laws.";
$text["error_updating_status"] = "Errore during the status update";
$text["unknown_id"] = "unknown id";
$text["help"] = "Help";
$text["group_approval_summary"] = "Group approval summary";
$text["group_review_summary"] = "Group review summary";
$text["documents_locked_by_you"] = "Documents locked by you";
$text["document_renamed_email"] = "Document renamed";
$text["folder_renamed_email"] = "Folder renamed";
$text["comment_changed_email"] = "Comment changed";
$text["document_moved_email"] = "Document moved";
$text["folder_moved_email"] = "Folder moved";
$text["ownership_changed_email"] = "Owner changed";
$text["access_permission_changed_email"] = "Permission changed";
$text["expiry_changed_email"] = "Expiry date changed";
$text["notify_added_email"] = "You've been added to notify list";
$text["notify_deleted_email"] = "You've been removed from notify list";
$text["document_updated_email"] = "Document updated";
$text["document_deleted_email"] = "Document deleted";
$text["folder_deleted_email"] = "Folder deleted";
$text["version_deleted_email"] = "Version deleted";
$text["document_status_changed_email"] = "Document status changed";
$text["review_request_email"] = "Review request";
$text["approval_request_email"] = "Approval request";
$text["review_deletion_email"] = "Review request deleted";
$text["approval_deletion_email"] = "Approval request deleted";
$text["new_subfolder_email"] = "New folder";
$text["new_document_email"] = "New document";
$text["approval_submit_email"] = "Submitted approval";
$text["review_submit_email"] = "Submitted review";
$text["automatic_status_update"] = "Automatic status change";
$text["old"] = "Old";
$text["new"] = "New";
$text["folder"] = "Folder";
$text["new_file_email"] = "New attachment";
$text["removed_file_email"] = "Removed attachment";
$text["document_deleted"] = "Document deleted";
$text["linked_files"] = "Attachments";
$text["invalid_file_id"] = "Invalid file ID";
$text["rm_file"] = "Remove file";
$text["confirm_rm_file"] = "Do you really want to remove file \"[name]\" of document \"[documentname]\"?<br>Be careful: This action cannot be undone.";
$text["backup_tools"] = "Backup tools";
$text["versioning_file_creation"] = "Versioning file creation";
$text["archive_creation"] = "Archive creation";
$text["files_deletion"] = "Files deletion";
$text["versioning_info"] = "Versioning info";
$text["versioning_file_creation_warning"] = "With this operation you can create a file containing the versioning information of an entire DMS folder. After the creation every file will be saved inside the document folder.";
$text["archive_creation_warning"] = "With this operation you can create achive containing the files of entire DMS folders. After the creation the archive will be saved in the data folder of your server.<br>WARNING: an archive created as human readable will be unusable as server backup.";
$text["files_deletion_warning"] = "With this option you can delete all files of entire DMS folders. The versioning information will remain visible.";
$text["confirm_rm_folder_files"] = "Do you really want to remove all the files of the folder \"[foldername]\" and of its subfolders?<br>Be careful: This action cannot be undone.";
$text["files"] = "Files";
$text["storage_size"] = "Storage size";
$text["backup_list"] = "Existings backup list";
$text["backup_remove"] = "Remove backup file";
$text["confirm_rm_backup"] = "Do you really want to remove the file \"[arkname]\"?<br>Be careful: This action cannot be undone.";
$text["edit_comment"] = "Edit comment";
// new from 1.9
$text["is_hidden"] = "Hide from users list";
$text["log_management"] = "Log files management";
$text["confirm_rm_log"] = "Do you really want to remove log file \"[logname]\"?<br>Be careful: This action cannot be undone.";
$text["include_subdirectories"] = "Include subdirectories";
$text["include_documents"] = "Include documents";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Toggle manager";
// new from 2.0
$text["calendar"] = "Calendar";
$text["week_view"] = "Week view";
$text["month_view"] = "Month view";
$text["year_view"] = "Year View";
$text["add_event"] = "Add event";
$text["edit_event"] = "Edit event";
$text["january"] = "January";
$text["february"] = "February";
$text["march"] = "March";
$text["april"] = "April";
$text["may"] = "May";
$text["june"] = "June";
$text["july"] = "July";
$text["august"] = "August";
$text["september"] = "September";
$text["october"] = "October";
$text["november"] = "November";
$text["december"] = "December";
$text["sunday"] = "Sunday";
$text["monday"] = "Monday";
$text["tuesday"] = "Tuesday";
$text["wednesday"] = "Wednesday";
$text["thursday"] = "Thursday";
$text["friday"] = "Friday";
$text["saturday"] = "Saturday";
$text["from"] = "From";
$text["to"] = "To";
$text["event_details"] = "Event details";
$text["confirm_rm_event"] = "Do you really want to remove event \"[name]\"?<br>Be careful: This action cannot be undone.";
$text["dump_creation"] = "DB dump creation";
$text["dump_creation_warning"] = "With this operation you can create a dump file of your database content. After the creation the dump file will be saved in the data folder of your server.";
$text["dump_list"] = "Existings dump files";
$text["dump_remove"] = "Remove dump file";
$text["confirm_rm_dump"] = "Do you really want to remove the file \"[dumpname]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_user"] = "Do you really want to remove the user \"[username]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_group"] = "Do you really want to remove the group \"[groupname]\"?<br>Be careful: This action cannot be undone.";
$text["human_readable"] = "Human readable archive";
$text["email_header"] = "This is an automatic message from the DMS server.";
$text["email_footer"] = "You can always change your e-mail settings using 'My Account' functions";
$text["add_multiple_files"] = "Add multiple files (will use filename as document name)";
// new from 2.0.1
$text["max_upload_size"] = "Maximum upload size for each file";
?>

View File

@ -0,0 +1,7 @@
<h1>TODO</h1>

126
languages/Francais/lang.inc Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
<h1>TODO</h1>

597
languages/German/lang.inc Normal file
View File

@ -0,0 +1,597 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$text = array();
$text["accept"] = "Übernehmen";
$text["access_denied"] = "Zugriff verweigert";
$text["access_inheritance"] = "Zugriff vererben";
$text["access_mode_all"] = "Keine Beschränkung";
$text["access_mode_none"] = "Kein Zugriff";
$text["access_mode_read"] = "Lesen";
$text["access_mode_readwrite"] = "Lesen+Schreiben";
$text["access_mode"] = "Berechtigung";
$text["account_summary"] = "Konto Übersicht";
$text["action_summary"] = "Aktivitätenübersicht";
$text["actions"] = "Aktivitäten";
$text["add_access"] = "Berechtigung hinzufügen";
$text["add_doc_reviewer_approver_warning"] = "N.B. Dokumente werden automatisch gekennzeichnet und freigegeben, wenn kein Prüfer oder keine Freigabe zugewiesen wird.";
$text["add_document_link"] = "Verweis hinzufügen";
$text["add_document"] = "Dokument anlegen";
$text["add_group"] = "Neue Gruppe anlegen";
$text["add_link"] = "Verknüpfung erstellen";
$text["add_member"] = "Teilnehmer anlegen";
$text["add_new_notify"] = "Neuer Eintrag";
$text["add_subfolder"] = "Unterordner anlegen";
$text["add_user"] = "Neuen Benutzer anlegen";
$text["add"] = "Anlegen";
$text["adding_default_keywords"] = "Lege neue Stichwort-Vorlage an...";
$text["adding_document_link"] = "Erstelle Verweis zu verwandtem Dokument...";
$text["adding_document_notify"] = "Füge Benachrichtigung hinzu...";
$text["adding_document"] = "Erstelle Dokument \"[documentname]\" in Ordner \"[foldername]\"...";
$text["adding_folder_notify"] = "Füge Benachrichtigung hinzu...";
$text["adding_group"] = "Erstelle neue Gruppe...";
$text["adding_member"] = "Hinzufügen des Benutzers zur Gruppe...";
$text["adding_sub_folder"] = "Erstelle Unterordner \"[subfoldername]\" in Ordner \"[foldername]\"...";
$text["adding_user"] = "Erstelle neuen Benutzer...";
$text["admin_set_owner"] = "Nur ein Administrator kann einen neuen Inhaber festlegen";
$text["admin_tools"] = "Administrationsbereich";
$text["admin"] = "Administrator";
$text["all_documents"] = "alle Dokumente";
$text["all_users"] = "Alle Benutzer";
$text["and"] = "und";
$text["approval_group"] = "Berechtigungsgruppe";
$text["approval_status"] = "Freigabestatus";
$text["approval_summary"] = "Übersicht Freigaben";
$text["approval_update_failed"] = "Störung bei der Aktualisierung des Berechtigungsstatus. Aktualisierung gescheitert";
$text["approve_document_complete_records_updated"] = "Dokumentenberechtigungen und Aufzeichnugen wurden aktualisiert";
$text["approve_document_complete"] = "Dokumentenfreigabe vollständig";
$text["approve_document"] = "Dokument freigeben";
$text["approver_added"] = "als Freigebender hinzugefügt";
$text["approver_already_assigned"] = "bereits als Freigebender zugewiesen";
$text["approver_already_removed"] = "ist bereits vom Freigabeprozeß entfernt worden oder hat bereits eine Freigabe eingereicht";
$text["approver_no_privilege"] = "ist nicht ausreichend priviligiert um dieses Dokument zu genehmigen";
$text["approver_removed"] = "aus dem Berechtigungsprozess entfernt";
$text["approvers"] = "Freigebender";
$text["archive_creation"] = "Archiv Erstellung";
$text["archive_creation_warning"] = "Hiermit erstellen Sie ein Archiv das sämtliche Dateien eines DMS-Verzeichnisses enthält. Nach Erstellung wird das Archiv im Datenverzeichnis des Servers gespeichert.";
$text["as_approver"] = "als Freigebender";
$text["as_reviewer"] = "als Prüfer";
$text["assign_privilege_insufficient"] = "Zugriff verweigert. Privilegien sind unzulänglich um Freigebender oder Prüfer diesem Dokument zuzuweisen";
$text["assumed_released"] = "Angenommen, freigegeben";
$text["back"] = "Zurück";
$text["backup_tools"] = "Sicherung";
$text["backup_list"] = "Vorhandene Archivierungen";
$text["between"] = "zwischen";
$text["cancel"] = "Abbrechen";
$text["cannot_approve_pending_review"] = "Dokument befindet sich zur Zeit noch in der Nachbearbeitung. Eine Freigabe kann diesmal nicht eingereicht werden.";
$text["cannot_assign_invalid_state"] = "Die Zuweisung eines neuen Prüfers zu einem Dokument, welches noch nachbearbeitet oder überprüft wird ist nicht möglich";
$text["cannot_change_final_states"] = "Warnung: Nicht imstande, Dokumentstatus für Dokumente, die zurückgewiesen worden sind, oder als abgelaufen bzw. überholt markiert wurden zu ändern";
$text["cannot_delete_admin"] = "Nicht imstande, den tragenden administrativen Benutzer zu löschen";
$text["cannot_move_root"] = "Störung: Verschieben des Hauptordners nicht möglich";
$text["cannot_retrieve_approval_snapshot"] = "Nicht imstande, für diese Dokumentenversion die Freigabe für den Status Snapshot zurückzuholen.";
$text["cannot_retrieve_review_snapshot"] = "Nicht imstande, Berichtstatus Snapshot für diese Dokumentversion zurückzuholen";
$text["cannot_rm_root"] = "Störung: Löschen des Hauptordners nicht möglich";
$text["choose_category"] = "--Bitte wählen--";
$text["choose_group"] = "--Gruppe wählen--";
$text["choose_target_document"] = "Dokument wählen";
$text["choose_target_folder"] = "Zielordner wählen";
$text["choose_user"] = "--Benutzer wählen--";
$text["comment_for_current_version"] = "Kommentar zur<br>aktuellen Version";
$text["comment"] = "Kommentar";
$text["confirm_pwd"] = "Passwort-Bestätigung";
$text["confirm_rm_document"] = "Wollen Sie das Dokument \"[documentname]\" wirklich löschen?<br>Achtung: Dieser Vorgang kann nicht rückgängig gemacht werden.";
$text["confirm_rm_folder"] = "Wollen Sie den Ordner \"[foldername]\" mitsamt seines Inhalts wirklich löschen?<br>Achtung: Dieser Vorgang kann nicht rückgängig gemacht werden.";
$text["confirm_rm_version"] = "Wollen Sie die Version [version] des Dokumentes \"[documentname]\" wirklich löschen?<br>Achtung: Dieser Vorgang kann nicht rückgängig gemacht werden.";
$text["content"] = "Inhalt";
$text["continue"] = "fortführen";
$text["creating_new_default_keyword_category"] = "Erstelle neue Kategorie...";
$text["creation_date"] = "Erstellt am";
$text["current_version"] = "Aktuelle Version";
$text["default_access"] = "Standardberechtigung";
$text["default_keyword_category_name"] = "Kategorien-Name";
$text["default_keyword_category"] = "Kategorien";
$text["default_keywords"] = "Vorlagen";
$text["delete_last_version"] = "Dokument hat nur eine Neuausgabe. Gesamte Dokumentaufzeichnung löschen...";
$text["delete"] = "Löschen";
$text["deleting_document_notify"] = "Entferne Benachrichtigung...";
$text["deleting_folder_notify"] = "Lösche Benachrichtigung...";
$text["details"] = "Details";
$text["details_version"] = "Details für Version:[version]";
$text["document_access_again"] = "Rechte erneut bearbeiten";
$text["document_add_access"] = "Füge Berechtigung hinzu...";
$text["document_already_locked"] = "Dieses Dokument ist bereits gesperrt";
$text["document_del_access"] = "Entferne Berechtigung...";
$text["document_edit_access"] = "Bearbeite Berechtigung...";
$text["document_infos"] = "Informationen";
$text["document_is_not_locked"] = "Dieses Dokument ist nicht gesperrt";
$text["document_link_by"] = "Verweis erstellt von";
$text["document_link_public"] = "Für alle sichtbar";
$text["document_list"] = "Dokumente";
$text["document_notify_again"] = "Benachrichtigungen anzeigen";
$text["document_overview"] = "Dokumentübersicht";
$text["document_set_default_access"] = "Setze Standard-Berechtigung...";
$text["document_set_inherit"] = "Umstellen auf Rechte-Vererbung...";
$text["document_set_not_inherit_copy"] = "Kopiere Berechtigungen...";
$text["document_set_not_inherit_empty"] = "Entferne Rechte-Vererbung (leere ACL)...";
$text["document_status"] = "Dokumenten Status";
$text["document_title"] = "Dokument '[documentname]'";
$text["document_versions"] = "Alle Versionen";
$text["document"] = "Dokument";
$text["documents_in_process"] = "Dokumente in Bearbeitung";
$text["documents_locked_by_you"] = "Von mir gesperrte Dokumente";
$text["documents_owned_by_user"] = "Dokumente gehören einem Benutzer";
$text["documents_to_approve"] = "Freigabe erforderlich";
$text["documents_to_review"] = "Prüfung erforderlich";
$text["documents_user_requiring_attention"] = "Diese Dokumente sollte ich mal nachsehen";
$text["does_not_expire"] = "Keine Gültigkeit";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">Berechtigungen wieder erben</a>";
$text["download"] = "Download";
$text["draft_pending_approval"] = "Entwurf - bevorstehende Freigabe";
$text["draft_pending_review"] = "Entwurf - bevorstehende Prüfung";
$text["edit_comment"] = "Kommentar bearbeiten";
$text["edit_default_keyword_category"] = "Kategorien bearbeiten";
$text["edit_default_keywords"] = "Stichwort-Vorlage bearbeiten";
$text["edit_document_access"] = "Zugriffsrechte bearbeiten";
$text["edit_document_notify"] = "Benachrichtigungen";
$text["edit_document_props_again"] = "Erneut bearbeiten";
$text["edit_document_props"] = "Bearbeiten";
$text["edit_document"] = "Dokument bearbeiten";
$text["edit_existing_access"] = "Bestehende Berechtigungen bearbeiten";
$text["edit_existing_notify"] = "Liste bearbeiten";
$text["edit_folder_access"] = "Zugriffsrechte bearbeiten";
$text["edit_folder_notify"] = "Ordner Benachrichtigungen bearbeiten";
$text["edit_folder_props_again"] = "Ordner nochmals bearbeiten";
$text["edit_folder_props"] = "Ordner bearbeiten";
$text["edit_folder"] = "Ordner bearbeiten";
$text["edit_group"] = "Gruppe bearbeiten";
$text["edit_inherit_access"] = "Berechtigungen erben";
$text["edit_personal_default_keywords"] = "Persönliche Stichwortvorlagen bearbeiten";
$text["edit_user_details"] = "Benutzerdetails bearbeiten";
$text["edit_user"] = "Benutzer bearbeiten";
$text["edit"] = "bearbeiten";
$text["editing_default_keyword_category"] = "Ändere Kategorie...";
$text["editing_default_keywords"] = "Ändere Stichwort-Vorlage...";
$text["editing_document_props"] = "Bearbeite Dokument-Eigenschaften...";
$text["editing_folder_props"] = "Bearbeite Ordner-Eigenschaften...";
$text["editing_group"] = "Bearbeite Gruppe...";
$text["editing_user_data"] = "Bearbeite Benutzerdaten...";
$text["editing_user"] = "Bearbeite Benutzer...";
$text["email_err_group"] = "Fehler: Email konnte an einen oder mehrere Mitgliedern dieser Gruppe nicht geschickt werden.";
$text["email_err_user"] = "Fehler: Email konnte nicht an Benutzer gesendet werden.";
$text["email_sent"] = "Email gesendet";
$text["email"] = "Email";
$text["empty_access_list"] = "Keine Berechtigungen gesetzt";
$text["empty_notify_list"] = "Keine Benachrichtigungen";
$text["error_adding_session"] = "Ein Fehler ist bei dem Erstellen der Sitzung aufgetreten";
$text["error_occured"] = "Ein Fehler ist aufgetreten.<br />Bitte Administrator benachrichtigen.<p>";
$text["error_removing_old_sessions"] = "Ein Fehler ist bei dem Entfernen der alten Sitzung aufgetreten";
$text["error_updating_revision"] = "Fehler bei der Aktualisierung des Dokumentenstatus";
$text["exp_date"] = "gültig bis";
$text["expired"] = "abgelaufen";
$text["expires"] = "Gültigkeit";
$text["file_info"] = "Datei Information";
$text["file_size"] = "Dateigröße";
$text["file"] = "Datei";
$text["files"] = "Dateien";
$text["files_deletion"] = "Datei Löschungen";
$text["files_deletion_warning"] = "Hiermit können Sie alle Dateien eines DMS-Vezeichnisses löschen. Die Versionierungs-Informationen bleiben sichtbar.";
$text["folder"] = "Ordner";
$text["folder_access_again"] = "Berechtigungen erneut bearbeiten";
$text["folder_add_access"] = "Füge Berechtigung hinzu...";
$text["folder_contents"] = "Ordner enthält";
$text["folder_del_access"] = "Berechtigung übernehmen...";
$text["folder_edit_access"] = "Ändere Berechtigung...";
$text["folder_infos"] = "Informationen";
$text["folder_notify_again"] = "Benachrichtigungen anzeigen";
$text["folder_overview"] = "Ordnerübersicht";
$text["folder_path"] = "Pfad";
$text["folder_set_default_access"] = "Setze Standard-Berechtigung für Ordner...";
$text["folder_set_inherit"] = "Umstellen auf Rechte-Vererbung...";
$text["folder_set_not_inherit_copy"] = "Kopiere Berechtigungen...";
$text["folder_set_not_inherit_empty"] = "Entferne Rechte-Vererbung (leere ACL)...";
$text["folder_title"] = "LetoDMS - Ordner: [foldername]";
$text["folders_and_documents_statistic"] = "Ordner- und Dokumenten-Übersicht";
$text["foldertree"] = "Ordnerstruktur";
$text["from_approval_process"] = "vom Freigabesprozess";
$text["from_review_process"] = "vom Überprüfungsprozess";
$text["global_default_keywords"] = "Globale Kategorien";
$text["goto"] = "Gehe zu";
$text["group_already_approved"] = "Eine Freigabe ist bereits im Namen der Gruppe eingereicht worden";
$text["group_already_reviewed"] = "Eine Prüfung ist bereits im Namen der Gruppe eingereicht worden";
$text["group_approvers"] = "Gruppe: Freigebender";
$text["group_approval_summary"] = "Freigabe-Gruppen";
$text["group_email_sent"] = "Email wurde an Gruppenteilnehmer gesendet";
$text["group_exists"] = "Gruppe existiert bereits";
$text["group_management"] = "Gruppenverwaltung";
$text["group_members"] = "Gruppenmitglieder";
$text["group_reviewers"] = "Prüfungsgruppen";
$text["group_review_summary"] = "Prüfergruppen";
$text["group_unable_to_add"] = "Gruppe kann nicht hinzugefügt werden";
$text["group_unable_to_remove"] = "Gruppe kann nicht entfernt werden";
$text["group"] = "Gruppe";
$text["groups"] = "Gruppen";
$text["guest_login_disabled"] = "Anmeldung als Gast ist gesperrt.";
$text["guest_login"] = "Als Gast anmelden";
$text["help"] = "Hilfe";
$text["individual_approvers"] = "individueller Freigebender";
$text["individual_reviewers"] = "individueller Prüfer";
$text["individuals"] = "Einzelpersonen";
$text["inherits_access_msg"] = "Im Momemt werden die Rechte geerbt<p><a class=\"inheritAccess\" href=\"[copyurl]\">Berechtigungen kopieren</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">Leere ACL</a>";
$text["internal_error_exit"] = "Interner Fehler: nicht imstande, Antrag durchzuführen. Herausnehmen. verlassen.";
$text["internal_error"] = "Interner Fehler";
$text["invalid_access_mode"] = "Unzulässige Zugangsart";
$text["invalid_action"] = "Unzulässige Aktion";
$text["invalid_approval_status"] = "Unzulässiger Freigabestatus";
$text["invalid_create_date_end"] = "Unzulässiges Enddatum für Erstellung des Datumsbereichs.";
$text["invalid_create_date_start"] = "Unzulässiges Startdatum für Erstellung des Datumsbereichs.";
$text["invalid_doc_id"] = "Unzulässige Dokumentenidentifikation";
$text["invalid_folder_id"] = "Unzulässige Ordneridentifikation";
$text["invalid_group_id"] = "Unzulässige Gruppenidentifikation";
$text["invalid_link_id"] = "Unzulässige Linkbezeichnung";
$text["invalid_review_status"] = "Unzulässiger Überprüfungssstatus";
$text["invalid_sequence"] = "Unzulässige Reihenfolge der Werte";
$text["invalid_status"] = "Unzulässiger Dokumentenstatus";
$text["invalid_target_doc_id"] = "Unzulässige Ziel-Dokument Identifikation";
$text["invalid_target_folder"] = "Unzulässige Ziel-Ordner Identifikation";
$text["invalid_user_id"] = "Unzulässige Benutzernummer";
$text["invalid_version"] = "Unzulässige Dokumenten-Version";
$text["is_admin"] = "Verwalter(Administrator)-Privileg";
$text["js_no_approval_group"] = "Wählen Sie bitte eine Freigabe-Gruppe aus";
$text["js_no_approval_status"] = "Wählen Sie bitte einen Freigabe-Status aus";
$text["js_no_comment"] = "Geben Sie einen Kommentar an";
$text["js_no_email"] = "Geben Sie eine Email-Adresse an";
$text["js_no_file"] = "Bitte wählen Sie eine Datei";
$text["js_no_keywords"] = "Geben Sie einige Stichwörter an";
$text["js_no_login"] = "Geben Sie einen Benutzernamen ein";
$text["js_no_name"] = "Sie haben den Namen vergessen";
$text["js_no_override_status"] = "Bitte wählen Sie einen neuen Status aus";
$text["js_no_pwd"] = "Sie müssen ein Passwort eingeben";
$text["js_no_query"] = "Geben Sie einen Suchbegriff ein";
$text["js_no_review_group"] = "Bitte wählen Sie eine Prüfer-Gruppe";
$text["js_no_review_status"] = "Bitte wählen Sie einen Prüfungs-Status";
$text["js_pwd_not_conf"] = "Passwort und -Bestätigung stimmen nicht überein";
$text["js_select_user_or_group"] = "Wählen Sie mindestens einen Benutzer oder eine Gruppe aus";
$text["js_select_user"] = "Bitte einen Benutzer auswählen";
$text["keyword_exists"] = "Stichwort besteht bereits";
$text["keywords"] = "Stichworte";
$text["language"] = "Sprache";
$text["last_update"] = "Letzte Aktualisierung";
$text["last_updated_by"] = "Letzte Aktualisierung durch";
$text["latest_version"] = "neuste Version";
$text["linked_documents"] = "verknüpfte Dokumente";
$text["linked_files"] = "verknüpfte Dateien";
$text["local_file"] = "Lokale Datei";
$text["lock_document"] = "Sperren";
$text["lock_message"] = "Diese Datei wurde von Benutzer <a href=\"mailto:[email]\">[username]</a> gesperrt.<br>Die Sperrung kann von authorisierten Benutzern hier aufgehoben werden (siehe Ende der Seite).";
$text["lock_status"] = "Status";
$text["locking_document"] = "Richte Sperre ein...";
$text["logged_in_as"] = "Angemeldet als";
$text["login_error_text"] = "Fehler bei der Anmeldung. Benutzernummer oder Passwort falsch.";
$text["login_error_title"] = "Fehler bei der Anmeldung";
$text["login_not_found"] = "Fehler: Benutzername nicht gefunden";
$text["login_not_given"] = "Es wurde kein Benutzername eingegeben";
$text["login_ok"] = "Anmeldung erfolgreich";
$text["login"] = "Anmeldung";
$text["logout"] = "Abmelden";
$text["mime_type"] = "Mime-Typ";
$text["move_document"] = "Dokument verschieben";
$text["move_folder"] = "Ordner verschieben";
$text["move"] = "verschieben";
$text["moving_document"] = "Verschiebe Dokument...";
$text["moving_folder"] = "Verschiebe Ordner...";
$text["msg_document_expired"] = "Das Dokument \"[documentname]\" (Pfad: \"[path]\") ist nur gültig bis zum [expires]";
$text["msg_document_updated"] = "Das Dokument \"[documentname]\" (Pfad: \"[path]\") wurde am [updated] neu erstellt oder erneurt";
$text["my_account"] = "Mein Profil";
$text["my_documents"] = "Meine Dokumente";
$text["name"] = "Name";
$text["new_default_keyword_category"] = "Neue Kategorie";
$text["new_default_keywords"] = "Neue Vorlage";
$text["new_equals_old_state"] = "Warnung: Vorgeschlagener Status und vorhandener Status sind identisch. Keine Aktion erforderlich.";
$text["new_user_image"] = "Neues Bild";
$text["no_action_required"] = "n/a";
$text["no_action"] = "Keine Aktion erforderlich.";
$text["no_active_user_docs"] = "Benutzer besitzt z.Z. keine Dokumente, die einer Prüfung oder Freigabe erfordern.";
$text["no_approvers"] = "Keine Freigebenden zugewiesen.";
$text["no_default_keywords"] = "Keine Vorlagen vorhanden";
$text["no_docs_to_approve"] = "Es gibt z.Z. keine Dokumente, die eine Freigabe erfordern.";
$text["no_docs_to_review"] = "Es gibt z.Z. keine Dokumente, die eine Prüfung erfordern.";
$text["no_document_links"] = "Keine verwandten Dokumente";
$text["no_documents"] = "Keine Dokumente";
$text["no_group_members"] = "Diese Gruppe hat keine Mitglieder";
$text["no_groups"] = "keine Gruppen";
$text["no_previous_versions"] = "Keine anderen Versionen gefunden";
$text["no_reviewers"] = "Keine Prüfer zugewiesen.";
$text["no_subfolders"] = "Keine Unterordner";
$text["no_update_cause_locked"] = "Sie können daher im Moment diese Datei nicht aktualisieren. Wenden Sie sich an den Benutzer, der die Sperrung eingerichtet hat";
$text["no_user_image"] = "Kein Bild vorhanden";
$text["no"] = "Nein";
$text["not_approver"] = "Benutzer ist dieser Dokumentenänderung z.Z. nicht als Freigebender zugewiesen.";
$text["not_reviewer"] = "Benutzer ist dieser Dokumentenänderung z.Z. nicht als Prüfer zugewiesen.";
$text["notify_added_email"] = "Benachrichtigung per Mail wurde eingerichtet";
$text["notify_subject"] = "Neue oder veraltete Inhalte im DMS";
$text["obsolete"] = "veraltet";
$text["old_folder"] = "alter Ordner";
$text["only_jpg_user_images"] = "Es sind nur JPG-Bilder erlaubt";
$text["op_finished"] = "fertig.<p>";
$text["operation_not_allowed"] = "Sie besitzen nicht die nötigen Zugriffsrechte";
$text["override_content_status_complete"] = "Erneuerungsstatus vollständig";
$text["override_content_status"] = "Erneuerungsstatus";
$text["override_privilege_insufficient"] = "Zugriff verweigerte. Unzureichende Privilegien, den Status dieses Dokumentes zu erneueren.";
$text["overview"] = "Überblick";
$text["owner"] = "Besitzer";
$text["password"] = "Passwort";
$text["pending_approval"] = "Ausstehende Freigabe der Dokumente";
$text["pending_review"] = "Ausstehende Prüfung der Dokumente";
$text["personal_default_keywords"] = "Persönliche Kategorien";
$text["previous_versions"] = "Vorhergehende Versionen";
$text["rejected"] = "abgelehnt";
$text["released"] = "freigegeben";
$text["remove_document_link"] = "Verweis entfernen";
$text["remove_member"] = "Entfernen";
$text["removed_approver"] = "ist von der Freigeber-Liste entfernt worden.";
$text["removed_reviewer"] = "ist von der Prüfer-Liste entfernt worden.";
$text["removing_default_keyword_category"] = "Entferne Kategorie...";
$text["removing_default_keywords"] = "Entferne Stichwort-Vorlage...";
$text["removing_document_link"] = "Entferne Verweis auf verwandtes Dokument...";
$text["removing_document"] = "Entferne Dokument...";
$text["removing_folder"] = "Entferne Ordner...";
$text["removing_group"] = "Lösche Gruppe...";
$text["removing_member"] = "Entferne Benutzer aus Gruppe...";
$text["removing_user"] = "Lösche Benutzer...";
$text["removing_version"] = "Entferne Version [version]...";
$text["review_document_complete_records_updated"] = "Dokumentenprüfung vollständig durchgeführt und Aufzeichnungen aktualisiert";
$text["review_document_complete"] = "Dokumentenprüfung: Vollständig";
$text["review_document"] = "Dokument prüfen";
$text["review_group"] = "Gruppe: prüfen";
$text["review_status"] = "Status: prüfen";
$text["review_summary"] = "Übersicht Prüfungen";
$text["review_update_failed"] = "Störung bei Aktualisierung des Prüfstatus. Aktualisierung gescheitert.";
$text["reviewer_added"] = "Prüfer hinzugefügt";
$text["reviewer_already_assigned"] = "Prüfer bereits zugewiesen";
$text["reviewer_already_removed"] = "Prüfer wurde bereits aus dem Prüfvorgang entfernt oder hat die Prüfung bereits abgeschlossen";
$text["reviewer_no_privilege"] = "Prüfer ist nicht privilegiert dieses Dokument zu prüfen";
$text["reviewer_removed"] = "wurde aus Prüfvorgang entfernt";
$text["reviewers"] = "Prüfer";
$text["rm_default_keyword_category"] = "Kategorie löschen";
$text["rm_default_keywords"] = "Stichwort-Vorlage löschen";
$text["rm_document"] = "Löschen";
$text["rm_folder"] = "Ordner löschen";
$text["rm_group"] = "Diese Gruppe löschen";
$text["rm_user"] = "Diesen Benutzer löschen";
$text["rm_version"] = "Version löschen";
$text["root_folder"] = "Übersicht";
$text["save"] = "Speichern";
$text["search_in_all"] = "allen Ordnern";
$text["search_in_current"] = "diesem Ordner ([foldername])";
$text["search_in"] = "Suchen in";
$text["search_mode_and"] = "alle Begriffe";
$text["search_mode_or"] = "min. ein Begriff";
$text["search_mode"] = "Suchmodus";
$text["search_no_results"] = "Die Suche lieferte leider keine Treffer.";
$text["search_query"] = "Suchbegriffe";
$text["search_report"] = "Die Suche lieferte [count] Treffer";
$text["search_result_pending_approval"] = "Status 'ausstehende Freigabe'";
$text["search_result_pending_review"] = "Status 'bevorstehende Prüfung'";
$text["search_results_access_filtered"] = "Suchresultate können Inhalte enthalten, zu welchen der Zugang verweigert wurde.";
$text["search_results"] = "Suchergebnis";
$text["search_time"] = "Dauer: [time] sek.";
$text["search"] = "Suchen";
$text["select_one"] = "Bitte wählen";
$text["selected_document"] = "Aktuelles Dokument";
$text["selected_folder"] = "Aktueller Ordner";
$text["selection"] = "Auswahl";
$text["seq_after"] = "Nach \"[prevname]\"";
$text["seq_end"] = "Ans Ende";
$text["seq_keep"] = "Beibehalten";
$text["seq_start"] = "An den Anfang";
$text["sequence"] = "Reihenfolge";
$text["set_default_access"] = "als Standardzugriff festlegen";
$text["set_expiry"] = "Gültigkeit festlegen";
$text["set_owner"] = "Besitzer festlegen";
$text["set_reviewers_approvers"] = "Freigebender und Prüfer zuweisen";
$text["setting_expires"] = "Setze neue Gültigkeit...";
$text["setting_owner"] = "Ändere Besitzer...";
$text["setting_user_image"] = "Setze Benutzer-Bild...";
$text["show_all_versions"] = "Alle Versionen anzeigen";
$text["show_current_versions"] = "aktuelle Version anzeigen";
$text["start"] = "Starten";
$text["status_approval_rejected"] = "Entwurf abgelehnt";
$text["status_approved"] = "freigegeben";
$text["status_approver_removed"] = "Freigebender wurde vom Prozess ausgeschlossen";
$text["status_change_summary"] = "Status der neuen Dokumentenversion geändert von '[oldstatus]' zu '[newstatus]'.";
$text["status_changed_by"] = "Status wurde geändert von";
$text["status_not_approved"] = "keine Freigabe";
$text["status_not_reviewed"] = "nicht geprüft";
$text["status_reviewed"] = "geprüft";
$text["status_reviewer_rejected"] = "Entwurf abgelehnt";
$text["status_reviewer_removed"] = "Prüfer wurde vom Prozess ausgeschlossen";
$text["status_unknown"] = "unbekannt";
$text["status"] = "Status";
$text["storage_size"] = "Speicherverbrauch";
$text["subfolder_list"] = "Unterordner";
$text["submit_approval"] = "Freigabe hinzufügen";
$text["submit_login"] = "Anmelden";
$text["submit_review"] = "Überprüfung hinzufügen";
$text["theme"] = "Aussehen";
$text["unable_to_add"] = "Hinzufügen nicht möglich";
$text["unable_to_remove"] = "Entfernen nicht möglich";
$text["under_folder"] = "In Ordner";
$text["unknown_command"] = "unbekannter Befehl";
$text["unknown_group"] = "unbekannte Gruppenidentifikation";
$text["unknown_keyword_category"] = "unbekannte Kategorie";
$text["unknown_owner"] = "unbekannte Besitzeridentifikation";
$text["unknown_user"] = "unbekannte Benutzeridentifikation";
$text["unlock_cause_access_mode_all"] = "Sie verfügen jedoch über unbeschränken Zugriff auf dieses Dokument.<br>Daher wird die Sperrung beim Update automatisch aufgehoben";
$text["unlock_cause_locking_user"] = "Sie sind im Moment mit demselben Benutzer angemeldet.<br>Daher wird die Sperrung beim Update automatisch aufgehoben";
$text["unlock_document"] = "Sperrung aufheben";
$text["unlocking_denied"] = "Sie verfügen nicht über die nötigen Rechte um die Sperrung aufzuheben";
$text["unlocking_document"] = "Hebe Sperrung des Dokumentes auf...";
$text["update_approvers"] = "Liste der Freigebenden aktualisieren";
$text["update_document"] = "aktualisiere";
$text["update_info"] = "Informationen zur Aktualisierung";
$text["update_locked_msg"] = "Dieses Dokument wurde gesperrt<p>Die Sperrung wurde von <a href=\"mailto:[email]\">[username]</a> eingerichtet.<br>";
$text["update_reviewers_approvers"] = "aktualisiere Liste der Freigebenden und Prüfer";
$text["update_reviewers"] = "Liste der Prüfer aktualisieren";
$text["update"] = "aktualisiere";
$text["updated_by"] = "aktualisiert von";
$text["updating_document"] = "Führe Update durch...";
$text["upload_date"] = "Hochgeladen am";
$text["uploaded_by"] = "Hochgeladen durch";
$text["uploaded"] = "Hochgeladen";
$text["uploading_failed"] = "Das Hochladen der Datei ist fehlgeschlagen.<br>Bitte Administrator benachrichtigen<p>";
$text["use_default_keywords"] = "Stichwortvorlagen";
$text["user_already_approved"] = "Benutzer hat bereits eine Freigabe dieser Dokumentversion eingereicht";
$text["user_already_reviewed"] = "Benutzer hat bereits einen Bericht über diese Dokumentversion eingereicht";
$text["user_approval_not_required"] = "Eine Dokumentfreigabe von dem Benutzer ist diesmal nicht erforderlich.";
$text["user_exists"] = "Benutzer besteht bereits.";
$text["user_image"] = "Bild";
$text["user_info"] = "Benutzerinformation";
$text["user_list"] = "Benutzerübersicht";
$text["user_login"] = "Benutzername";
$text["user_management"] = "Benutzerverwaltung";
$text["user_name"] = "Vollst. Name";
$text["user_removed_approver"] = "Benutzer ist von der Liste der einzelnen Freigebenden entfernt worden.";
$text["user_removed_reviewer"] = "Benutzer ist von der Liste der einzelnen Prüfer entfernt worden.";
$text["user_review_not_required"] = "Eine Dokumentüberprüfung von dem Benutzer ist diesmal nicht erforderlich.";
$text["user"] = "Benutzer";
$text["users"] = "Benutzer";
$text["version_info"] = "Version Information";
$text["version_under_approval"] = "Version im Prozess der Freigabe";
$text["version_under_review"] = "Version im Prozess der Prüfung";
$text["version"] = "Version";
$text["versioning_file_creation_warning"] = "Sie erzeugen eine Datei die sämtliche Versions-Informationen eines DMS-Verzeichnisses enthält. Nach Erstellung wird jede Datei im Dokumentenverzeichnis gespeichert.";
$text["versioning_file_creation"] = "Datei-Versionierung";
$text["view_document"] = "Dokument anzeigen";
$text["view_online"] = "Online betrachten";
$text["warning"] = "Warnung";
$text["wrong_pwd"] = "Fehler: Falsches Passwort";
$text["yes"] = "Ja";
// New as of 1.7.1. Require updated translation.
$text["documents"] = "Dokumente";
$text["folders"] = "Verzeichnisse";
$text["no_folders"] = "Keine Verzeichnisse";
$text["notification_summary"] = "Benachrichtigungs-Zusammenfassung";
// New as of 1.7.2
$text["all_pages"] = "Alle";
$text["results_page"] = "Ergebnis-Seite";
// New
$text["sign_out"] = "Abmelden";
$text["signed_in_as"] = "Angemeldet als";
$text["assign_reviewers"] = "Prüfer zuweisen";
$text["assign_approvers"] = "Freigebende zuweisen";
$text["override_status"] = "Status überschreiben";
$text["change_status"] = "Status ändern";
$text["change_assignments"] = "Zuweisungen ändern";
$text["no_user_docs"] = "Der Benutzer hat derzeit keine Dokumente in Besitz";
$text["disclaimer"] = "Dies ist ein geschützter Bereich. Nur authorisiertes Personal hat Zugriff. Jegliche Verstösse werden nach geltendem Recht (Englisch und International) verfolgt.";
$text["backup_tools"] = "Backup tools";
$text["versioning_file_creation"] = "Versioning file creation";
$text["archive_creation"] = "Archiv erzeugen";
$text["files_deletion"] = "Dateien löschen";
$text["unknown_id"] = "unbekannte id";
$text["help"] = "Hilfe";
$text["versioning_info"] = "Versioning info";
$text["versioning_file_creation_warning"] = "With this operation you can create a file containing the versioning information of an entire DMS folder. After the creation every file will be saved inside the document folder.";
$text["archive_creation_warning"] = "Mit dieser Operation können Sie ein Archiv mit allen Dokumenten des DMS erzeugen. Nach der Erstellung wird das Archiv im Datenordner Ihres Servers gespeichert.<br />Warning: ein menschenlesbares Archiv ist als Server-Backup unbrauchbar.";
$text["files_deletion_warning"] = "Durch diese Operation können Sie all Dokumente des DMS löschen. Die Versions-Information bleibt erhalten.";
$text["backup_list"] = "Liste vorhandener Backups";
$text["backup_remove"] = "Backup löschen";
$text["confirm_rm_backup"] = "Möchten Sie wirklich das Backup \"[arkname]\" löschen?<br />Beachten Sie, dass diese Operation nicht rückgängig gemacht werden kann.";
$text["document_deleted"] = "Dokument gelöscht";
$text["linked_files"] = "Anhänge";
$text["invalid_file_id"] = "Ungültige Datei-ID";
$text["rm_file"] = "Datei Löschen";
$text["confirm_rm_file"] = "Möchten Sie wirklich die Datei \"[name]\" des Dokuments \"[documentname]\" löschen?<br />Beachten Sie, dass diese Operation nicht rückgängig gemacht werden kann.";
$text["edit_comment"] = "Kommentar editieren";
// new from 1.9
$text["is_hidden"] = "In der Benutzerliste verbergen";
$text["log_management"] = "Management der Log-Dateien";
$text["confirm_rm_log"] = "Möchten Sie wirklich die Log-Datei \"[logname]\" löschen?<br />Beachten Sie, dass diese Operation nicht rückgängig gemacht werden kann.";
$text["include_subdirectories"] = "Unterverzeichnisse miteinbeziehen";
$text["include_documents"] = "Dokumente miteinbeziehen";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Toggle manager";
// new from 1.10
$text["calendar"] = "Kalendar";
$text["week_view"] = "Wochenansicht";
$text["month_view"] = "Monatsansicht";
$text["year_view"] = "Jahresansicht";
$text["add_event"] = "Ereignis hinzufügen";
$text["edit_event"] = "Ereignis editieren";
$text["january"] = "Januar";
$text["february"] = "Februar";
$text["march"] = "März";
$text["april"] = "April";
$text["may"] = "Mai";
$text["june"] = "Juni";
$text["july"] = "Juli";
$text["august"] = "August";
$text["september"] = "September";
$text["october"] = "Oktober";
$text["november"] = "November";
$text["december"] = "Dezember";
$text["sunday"] = "Sontag";
$text["monday"] = "Montag";
$text["tuesday"] = "Dienstag";
$text["wednesday"] = "Mitwoch";
$text["thursday"] = "Donnerstag";
$text["friday"] = "Freitag";
$text["saturday"] = "Samstag";
$text["from"] = "von";
$text["to"] = "bis";
$text["event_details"] = "Ereignisdetails";
$text["confirm_rm_event"] = "Möchten Sie wirklich das Ereignis \"[name]\" löschen?<br />Beachten Sie, dass diese Operation nicht rückgängig gemacht werden kann.";
$text["dump_creation"] = "DB dump erzeugen";
$text["dump_creation_warning"] = "Mit dieser Operation können Sie einen Dump der Datenbank erzeugen. Nach der Erstellung wird der Dump im Datenordner Ihres Servers gespeichert.";
$text["dump_list"] = "Vorhandene DB dumps";
$text["dump_remove"] = "DB dump löschen";
$text["confirm_rm_dump"] = "Möchten Sie wirklich den DB dump \"[dumpname]\" löschen?<br />Beachten Sie, dass diese Operation nicht rückgängig gemacht werden kann.";
$text["confirm_rm_user"] = "Möchten Sie wirklich den Benutzer \"[username]\" löschen?<br />Beachten Sie, dass diese Operation nicht rückgängig gemacht werden kann.";
$text["confirm_rm_group"] = "Möchten Sie wirklich die Gruppe \"[groupname]\" löschen?<br />Beachten Sie, dass diese Operation nicht rückgängig gemacht werden kann.";
$text["human_readable"] = "Menschenlesbares Archiv";
$text["email_header"] = "Dies ist eine automatische Nachricht des DMS-Servers.";
$text["email_footer"] = "You can always change your e-mail settings using 'My Account' functions";
$text["add_multiple_files"] = "Mehrere Dateien hochladen (Dateiname wird als Dokumentenname verwendet)";
// new from 2.0.1
$text["max_upload_size"] = "Maximale Größe einer hochgeladenen Datei";
?>

View File

@ -0,0 +1,7 @@
<h1>TODO</h1>

View File

@ -0,0 +1,579 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$text = array();
$text["accept"] = "Elfogad";
$text["access_denied"] = "Access denied.";
$text["access_inheritance"] = "Access Inheritance";
$text["access_mode"] = "Hozzßf‰r‰si md";
$text["access_mode_all"] = "Minden";
$text["access_mode_none"] = "Nincs felvett jogosultsßg";
$text["access_mode_read"] = "olvasßs";
$text["access_mode_readwrite"] = "Írßs-Olvasßs";
$text["account_summary"] = "Account Summary";
$text["action_summary"] = "Action Summary";
$text["actions"] = "Actions";
$text["add"] = "Add";
$text["add_access"] = "Jogosultsßg hozzßadßsa";
$text["add_doc_reviewer_approver_warning"] = "N.B. Documents are automatically marked as released if no reviewer or approver is assigned.";
$text["add_document"] = "Dokumentum hozzßadßsa";
$text["add_document_link"] = "Kapcsoldßs felv‰tele";
$text["add_group"] = "õj csoport l‰trehozßsa";
$text["add_link"] = "Create Link";
$text["add_member"] = "Tag felv‰tele";
$text["add_new_notify"] = "õj ‰rtes<65>t‰s hozzßadßsa";
$text["add_subfolder"] = "Alk÷nyvtßr hozzßadßsa";
$text["add_user"] = "õj felhasznßl felv‰tele";
$text["adding_default_keywords"] = "Kulcsszavak felv‰tele...";
$text["adding_document"] = "\"[documentname]\" dokumentum l‰trehozßsa \"[foldername]\" k÷nyvtßrban...";
$text["adding_document_link"] = "Kapcsoldßs l‰trehozßsa ...";
$text["adding_document_notify"] = "Ðrtes<EFBFBD>t‰si lista bejegyz‰s felv‰tele...";
$text["adding_folder_notify"] = "Hozzßadßs az ‰rtes<65>t‰si listßhoz folyamatban...";
$text["adding_group"] = "Csoport l‰trehozßsa folyamatban...";
$text["adding_member"] = "Csoporttag felv‰tele folyamatban...";
$text["adding_sub_folder"] = "\"[subfoldername]\" alk÷nyvtßr l‰trehozßsa \"[foldername]\"-ban...";
$text["adding_user"] = "Felhasznßl felv‰tele folyamatban...";
$text["admin"] = "Administrator";
$text["admin_set_owner"] = "Only an Administrator may set a new owner";
$text["admin_tools"] = "Adminisztrßcis eszk÷z÷k";
$text["all_documents"] = "All Documents";
$text["all_users"] = "Minden felhasznßl";
$text["and"] = " - ";
$text["approval_group"] = "Approval Group";
$text["approval_status"] = "Approval Status";
$text["approval_summary"] = "Approval Summary";
$text["approval_update_failed"] = "Error updating approval status. Update failed.";
$text["approve_document"] = "Approve Document";
$text["approve_document_complete"] = "Approve Document: Complete";
$text["approve_document_complete_records_updated"] = "Document approval completed and records updated";
$text["approver_added"] = "added as an approver";
$text["approver_already_assigned"] = "is already assigned as an approver";
$text["approver_already_removed"] = "has already been removed from approval process or has already submitted an approval";
$text["approver_no_privilege"] = "is not sufficiently privileged to approve this document";
$text["approver_removed"] = "removed from approval process";
$text["approvers"] = "Approvers";
$text["as_approver"] = "as an approver";
$text["as_reviewer"] = "as a reviewer";
$text["assign_privilege_insufficient"] = "Access denied. Privileges insufficient to assign reviewers or approvers to this document.";
$text["assumed_released"] = "Assumed released";
$text["back"] = "Vissza";
$text["between"] = "tartomßny";
$text["cancel"] = "M‰gsem";
$text["cannot_approve_pending_review"] = "Document is currently pending review. Cannot submit an approval at this time.";
$text["cannot_assign_invalid_state"] = "Cannot assign new reviewers to a document that is not pending review or pending approval.";
$text["cannot_change_final_states"] = "Warning: Unable to alter document status for documents that have been rejected, marked obsolete or expired.";
$text["cannot_delete_admin"] = "Unable to delete the primary administrative user.";
$text["cannot_move_root"] = "Error: Cannot move root folder.";
$text["cannot_retrieve_approval_snapshot"] = "Unable to retrieve approval status snapshot for this document version.";
$text["cannot_retrieve_review_snapshot"] = "Unable to retrieve review status snapshot for this document version.";
$text["cannot_rm_root"] = "Error: Cannot delete root folder.";
$text["choose_category"] = "--K‰rjk vßlasszon--";
$text["choose_group"] = "--Vßlasszon csoportot--";
$text["choose_target_document"] = "Vßlasszon dokumentumot";
$text["choose_target_folder"] = "Vßlasszon c‰l k÷nyvtßrat";
$text["choose_user"] = "--Vßlasszon felhasznßlt--";
$text["comment"] = "Megjegyz‰s";
$text["comment_for_current_version"] = "Megjegyz‰s az aktußlis verzihoz";
$text["confirm_pwd"] = "Jelsz megers<>t‰s";
$text["confirm_rm_document"] = "Valban t÷r÷lni akarja a(z) \"[documentname]\" dokumentumot?<br> Legyen vatos! Ezt a mveletet nem lehet visszavonni.";
$text["confirm_rm_folder"] = "Valban t÷r÷lni akarja a(z) \"[foldername]\" k÷nyvtßrat ‰s annak tartalmßt?<br>Legyen vatos! Ezt a mveletet nem lehet visszavonni.";
$text["confirm_rm_version"] = "Valban t÷r÷lni akarja a(z) [version]. verzijßt a(z) \"[documentname]\" dokumentumnak?<br>Legyen vatos! Ezt a mveletet nem lehet visszavonni.";
$text["content"] = "Tartalom";
$text["continue"] = "Continue";
$text["creating_new_default_keyword_category"] = "Kategria felv‰tele...";
$text["creation_date"] = "L‰trehozva";
$text["current_version"] = "Aktußlis verzi";
$text["default_access"] = "Alapbeßll<EFBFBD>tßs szerinti jogosultsßg";
$text["default_keyword_category"] = "Kategrißk";
$text["default_keyword_category_name"] = "N‰v";
$text["default_keywords"] = "Rendelkez‰sre ßll kulcsszavak";
$text["delete"] = "T÷rl‰s";
$text["delete_last_version"] = "Document has only one revision. Deleting entire document record...";
$text["deleting_document_notify"] = "Ðrtes<EFBFBD>t‰si lista bejegyz‰s t÷rl‰se...";
$text["deleting_folder_notify"] = "Ðrtes<EFBFBD>t‰si lista bejegyz‰s t÷rl‰se folyamatban...";
$text["details"] = "Details";
$text["details_version"] = "Details for version: [version]";
$text["document"] = "Document";
$text["document_access_again"] = "Dokumentum jogosultsßg ism‰telt mdos<6F>tßsa";
$text["document_add_access"] = "Bejegyz‰s felv‰tele a hozzßf‰r‰s listßra...";
$text["document_already_locked"] = "Ez a dokumentum mßr zßrolt";
$text["document_del_access"] = "Hozzßf‰r‰s lista bejegyz‰s t÷rl‰se...";
$text["document_edit_access"] = "Hozzßf‰r‰s md vßltoztatßsa...";
$text["document_infos"] = "Informßci";
$text["document_is_not_locked"] = "Ez a dokumentum NEM zßrolt";
$text["document_link_by"] = "Kapcsolatot l‰trehozta:";
$text["document_link_public"] = "Nyilvßnos";
$text["document_list"] = "Dokumentumok";
$text["document_notify_again"] = "Ðrtes<EFBFBD>t‰si lista ism‰telt mdos<6F>tßsa";
$text["document_overview"] = "Dokumentum tulajdonsßgok";
$text["document_set_default_access"] = "Alapbeßll<EFBFBD>tßs szerinti jogosultsßg beßll<6C>tßsa a dokumentumra...";
$text["document_set_inherit"] = "ACL t÷rl‰s. A documentum ÷r÷k<C3B7>teni fogja a jogosultsßgot...";
$text["document_set_not_inherit_copy"] = "Jogosultsßg lista mßsolßsa folyamatban...";
$text["document_set_not_inherit_empty"] = "Ùr÷k<EFBFBD>tett jogosultsßg t÷rl‰se. Indulßs res ACL-el...";
$text["document_status"] = "Document Status";
$text["document_title"] = "MyDMS - Documentum [dokumentumn‰v]";
$text["document_versions"] = "Ùsszes verzi";
$text["documents_in_process"] = "Documents In Process";
$text["documents_owned_by_user"] = "Documents Owned by User";
$text["documents_to_approve"] = "Documents Awaiting User's Approval";
$text["documents_to_review"] = "Documents Awaiting User's Review";
$text["documents_user_requiring_attention"] = "Documents Owned by User That Require Attention";
$text["does_not_expire"] = "Soha nem jßr le";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">Jogosultsßg ÷r÷k<C3B7>t‰se</a>";
$text["download"] = "Let÷lt‰s";
$text["draft_pending_approval"] = "Draft - pending approval";
$text["draft_pending_review"] = "Draft - pending review";
$text["edit"] = "edit";
$text["edit_default_keyword_category"] = "Kategrißk mdos<6F>tßsa";
$text["edit_default_keywords"] = "Kulcsszavak mdos<6F>tßsa";
$text["edit_document"] = "Dokumentum m“veletek";
$text["edit_document_access"] = "Jogosultsßg mdos<6F>tßs";
$text["edit_document_notify"] = "Ðrtes<EFBFBD>t‰si lista";
$text["edit_document_props"] = "Dokumentum mdos<6F>tßs";
$text["edit_document_props_again"] = "Dokumentum ism‰telt mdos<6F>tßsa";
$text["edit_existing_access"] = "Hozzßf‰r‰s lista mdos<6F>tßsa";
$text["edit_existing_notify"] = "Ðrtes<EFBFBD>t‰si lista szerkeszt‰se";
$text["edit_folder"] = "K÷nyvtßr szerkeszt‰s";
$text["edit_folder_access"] = "Hozzßf‰r‰s mdos<6F>tßs";
$text["edit_folder_notify"] = "Ðrtes<EFBFBD>t‰si lista";
$text["edit_folder_props"] = "K÷nyvtßr tulajdonsßgok";
$text["edit_folder_props_again"] = "A k÷nyvtßr ism‰telt mdos<6F>tßsa";
$text["edit_group"] = "Csoport mdos<6F>tßsa";
$text["edit_inherit_access"] = "Jogosultsßg ÷r÷k<C3B7>t‰se";
$text["edit_personal_default_keywords"] = "Szem‰lyes kulcsszavak mdos<6F>tßsa";
$text["edit_user"] = "Felhasznßl mdos<6F>tßsa";
$text["edit_user_details"] = "Edit User Details";
$text["editing_default_keyword_category"] = "Kategria mdos<6F>tßsa...";
$text["editing_default_keywords"] = "Kulcsszavak mdos<6F>tßsa...";
$text["editing_document_props"] = "Dokumentum mdos<6F>tßs folyamatban...";
$text["editing_folder_props"] = "K÷nyvtßr mdos<6F>tßsa...";
$text["editing_group"] = "Csoport mdos<6F>tßs...";
$text["editing_user"] = "Felhasznßl mdos<6F>tßsa folyamatban...";
$text["editing_user_data"] = "Felhasznßli beßll<6C>tßsok mdos<6F>tßsa";
$text["email"] = "Email";
$text["email_err_group"] = "Error sending email to one or more members of this group.";
$text["email_err_user"] = "Error sending email to user.";
$text["email_sent"] = "Email sent";
$text["empty_access_list"] = "A hozzßf‰r‰s lista res";
$text["empty_notify_list"] = "res lista";
$text["error_adding_session"] = "Error occured while creating session.";
$text["error_occured"] = "Hiba t÷rt‰nt";
$text["error_removing_old_sessions"] = "Error occured while removing old sessions";
$text["error_updating_revision"] = "Error updating status of document revision.";
$text["exp_date"] = "Lejßr";
$text["expired"] = "Expired";
$text["expires"] = "Lejßrat";
$text["file"] = "File";
$text["file_info"] = "File Information";
$text["file_size"] = "Fßjlm‰ret";
$text["folder_access_again"] = "K÷nyvtßr jogosultsßg ism‰telt mdos<6F>tßsa";
$text["folder_add_access"] = "õj bejegyz‰s hozzßadßsa a hozzßf‰r‰s listßhoz...";
$text["folder_contents"] = "Folders";
$text["folder_del_access"] = "Hozzßf‰r‰s lista elem t÷rl‰se...";
$text["folder_edit_access"] = "Jogosultsßg mdos<6F>tßs...";
$text["folder_infos"] = "Informßci";
$text["folder_notify_again"] = "Ðrtes<EFBFBD>t‰si lista ism‰telt mdos<6F>tßsa";
$text["folder_overview"] = "K÷nyvtßr tulajdonsßgok";
$text["folder_path"] = "El‰r‰si ”t";
$text["folder_set_default_access"] = "Alap‰rtelmez‰s szerinti hozzßf‰r‰si md beßll<6C>tßsa a k÷nyvtßrhoz...";
$text["folder_set_inherit"] = "ACL t÷rl‰se. A k÷nyvtßr ÷r÷k÷lni fogja a jogosultsßgokat...";
$text["folder_set_not_inherit_copy"] = "Hozzßf‰r‰s lista mßsolßsa folyamatban...";
$text["folder_set_not_inherit_empty"] = "Ùr÷k<EFBFBD>tett jogosultsßg eltßvol<6F>tßsa. Ind<6E>tßs res ACL-el...";
$text["folder_title"] = "MyDMS - K÷nyvtßr [k÷nyvtßrn‰v]";
$text["folders_and_documents_statistic"] = "K÷nyvtßrak ‰s dokumentumok ßtekint‰se";
$text["foldertree"] = "K÷nyvtßrfa";
$text["from_approval_process"] = "from approval process";
$text["from_review_process"] = "from review process";
$text["global_default_keywords"] = "Globßlis kulcsszavak";
$text["goto"] = "Ugrßs";
$text["group"] = "Csoport";
$text["group_already_approved"] = "An approval has already been submitted on behalf of group";
$text["group_already_reviewed"] = "A review has already been submitted on behalf of group";
$text["group_approvers"] = "Group Approvers";
$text["group_email_sent"] = "Email sent to group members";
$text["group_exists"] = "Group already exists.";
$text["group_management"] = "Csoportok";
$text["group_members"] = "Csoporttagok";
$text["group_reviewers"] = "Group Reviewers";
$text["group_unable_to_add"] = "Unable to add group";
$text["group_unable_to_remove"] = "Unable to remove group";
$text["groups"] = "Csoportok";
$text["guest_login"] = "Bel‰p‰s vend‰gk‰nt";
$text["guest_login_disabled"] = "Guest login is disabled.";
$text["individual_approvers"] = "Individual Approvers";
$text["individual_reviewers"] = "Individual Reviewers";
$text["individuals"] = "Individuals";
$text["inherits_access_msg"] = "Jogosultsßg ÷r÷k<C3B7>t‰se folyamatban.<p><a class=\"inheritAccess\" href=\"[copyurl]\">Ùr÷k<C3B7>tett hozzßf‰r‰s lista mßsolßsa</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">Indulßs res hozzßf‰r‰s listßval</a>";
$text["internal_error"] = "Internal error";
$text["internal_error_exit"] = "Internal error. Unable to complete request. Exiting.";
$text["invalid_access_mode"] = "Invalid Access Mode";
$text["invalid_action"] = "Invalid Action";
$text["invalid_approval_status"] = "Invalid Approval Status";
$text["invalid_create_date_end"] = "Invalid end date for creation date range.";
$text["invalid_create_date_start"] = "Invalid start date for creation date range.";
$text["invalid_doc_id"] = "Invalid Document ID";
$text["invalid_folder_id"] = "Invalid Folder ID";
$text["invalid_group_id"] = "Invalid Group ID";
$text["invalid_link_id"] = "Invalid link identifier";
$text["invalid_review_status"] = "Invalid Review Status";
$text["invalid_sequence"] = "Invalid sequence value";
$text["invalid_status"] = "Invalid Document Status";
$text["invalid_target_doc_id"] = "Invalid Target Document ID";
$text["invalid_target_folder"] = "Invalid Target Folder ID";
$text["invalid_user_id"] = "Invalid User ID";
$text["invalid_version"] = "Invalid Document Version";
$text["is_admin"] = "Administrator Privilege";
$text["js_no_approval_group"] = "Please select a approval group";
$text["js_no_approval_status"] = "Please select the approval status";
$text["js_no_comment"] = "Nincs megjegyz‰s";
$text["js_no_email"] = "Adja meg az email c<>m‰t";
$text["js_no_file"] = "K‰rem vßlasszon egy fßjlt";
$text["js_no_keywords"] = "Adjon meg kulcsszavakat";
$text["js_no_login"] = "Adja meg a felhasznßlnevet";
$text["js_no_name"] = "K‰rem <20>rjon be egy nevet";
$text["js_no_override_status"] = "Please select the new [override] status";
$text["js_no_pwd"] = "Be kell <20>rnia a jelszavßt";
$text["js_no_query"] = "Adjon meg egy k‰rd‰st";
$text["js_no_review_group"] = "Please select a review group";
$text["js_no_review_status"] = "Please select the review status";
$text["js_pwd_not_conf"] = "A megadott jelszavak elt‰rnek";
$text["js_select_user"] = "Vßlasszon felhasznßlt";
$text["js_select_user_or_group"] = "Legalßbb egy felhasznßlt vagy egy csoportot adjon meg";
$text["keyword_exists"] = "Keyword already exists";
$text["keywords"] = "Kulcsszavak";
$text["language"] = "Nyelv";
$text["last_update"] = "Utols mdos<6F>tßs";
$text["last_updated_by"] = "Last updated by";
$text["latest_version"] = "Latest Version";
$text["linked_documents"] = "Kapcsold dokumentumok";
$text["local_file"] = "Helyi ßllomßny";
$text["lock_document"] = "Zßrol";
$text["lock_message"] = "Ezt a dokumentumot <a href=\"mailto:[email]\">[username]</a> zßrolta.<br>Csak arra jogosult felhasznßl t÷z÷lheti a zßrolßst (Lßsd: lap alja).";
$text["lock_status"] = "Stßtusz";
$text["locking_document"] = "Dokumentum zßrolßs folyamatban...";
$text["logged_in_as"] = "Bel‰pett felhasznßl: ";
$text["login"] = "Bel‰p‰s";
$text["login_error_text"] = "Error signing in. User ID or password incorrect.";
$text["login_error_title"] = "Sign in error";
$text["login_not_found"] = "Nem l‰tez felhasznßl";
$text["login_not_given"] = "No username has been supplied";
$text["login_ok"] = "Sign in successful";
$text["logout"] = "Kil‰p‰s";
$text["mime_type"] = "Mime-T<>pus";
$text["move"] = "Move";
$text["move_document"] = "Dokumentum ßthelyez‰se";
$text["move_folder"] = "K÷nyvtßr ßthelyez‰se";
$text["moving_document"] = "Dokumentum ßthelyez‰se...";
$text["moving_folder"] = "K÷nyvtßr ßthelyez‰se...";
$text["msg_document_expired"] = "A(z) \"[documentname]\" dokumentum (El‰r‰si ”t: \"[path]\") ‰rv‰nyess‰ge lejßrt [expires] dßtummal";
$text["msg_document_updated"] = "A(z) \"[documentname]\" dokumentum (El‰r‰si ”t: \"[path]\") l‰trehozßsi, vagy mdos<6F>tßsi dßtuma: [updated]";
$text["my_account"] = "Felhasznßli beßll<6C>tßsok";
$text["my_documents"] = "My Documents";
$text["name"] = "N‰v";
$text["new_default_keyword_category"] = "õj kategria";
$text["new_default_keywords"] = "Ùsszes kulcssz";
$text["new_equals_old_state"] = "Warning: Proposed status and existing status are identical. No action required.";
$text["new_user_image"] = "õj k‰p";
$text["no"] = "Nem";
$text["no_action"] = "No action required";
$text["no_action_required"] = "n/a";
$text["no_active_user_docs"] = "There are currently no documents owned by the user that require review or approval.";
$text["no_approvers"] = "No approvers assigned.";
$text["no_default_keywords"] = "Nincs rendelkez‰sre ßll kulcssz";
$text["no_docs_to_approve"] = "There are currently no documents that require approval.";
$text["no_docs_to_review"] = "There are currently no documents that require review.";
$text["no_document_links"] = "Nincs kapcsold dokumentum";
$text["no_documents"] = "Nincsenek dokumentumok";
$text["no_group_members"] = "Ennek a csoportnak nincsenek tagjai";
$text["no_groups"] = "Nincsenek csoportok";
$text["no_previous_versions"] = "No other versions found";
$text["no_reviewers"] = "No reviewers assigned.";
$text["no_subfolders"] = "Nincsenek alk÷nyvtßrak";
$text["no_update_cause_locked"] = "Emiatt Ùn nem mdos<6F>thatja a dokumentumot. L‰pjen kapcsolatba a zßrolßst l‰trehoz szem‰llyel.";
$text["no_user_image"] = "Nincs k‰p";
$text["not_approver"] = "User is not currently assigned as an approver of this document revision.";
$text["not_reviewer"] = "User is not currently assigned as a reviewer of this document revision.";
$text["notify_subject"] = "õj vagy lejßrt dokumentumok a dokumentumkezel rendszerben";
$text["obsolete"] = "Obsolete";
$text["old_folder"] = "old folder";
$text["only_jpg_user_images"] = "Felhasznßli k‰pk‰nt csak .jpg fßjlok adhatk meg.";
$text["op_finished"] = "k‰sz";
$text["operation_not_allowed"] = "Nincs jogosultsßgod a m“velet v‰grehajtßsßhoz";
$text["override_content_status"] = "Override Status";
$text["override_content_status_complete"] = "Override Status Complete";
$text["override_privilege_insufficient"] = "Access denied. Privileges insufficient to override the status of this document.";
$text["overview"] = "Overview";
$text["owner"] = "Tulajdonos";
$text["password"] = "Jelsz";
$text["pending_approval"] = "Documents pending approval";
$text["pending_review"] = "Documents pending review";
$text["personal_default_keywords"] = "Szem‰lyes kulcsszavak";
$text["previous_versions"] = "Previous Versions";
$text["rejected"] = "Rejected";
$text["released"] = "Released";
$text["remove_document_link"] = "Kapcsoldßs t÷rl‰se";
$text["remove_member"] = "Csoport tag t÷rl‰se";
$text["removed_approver"] = "has been removed from the list of approvers.";
$text["removed_reviewer"] = "has been removed from the list of reviewers.";
$text["removing_default_keyword_category"] = "Kategria t÷rl‰se...";
$text["removing_default_keywords"] = "Kulcsszavak t÷rl‰se...";
$text["removing_document"] = "Dokumentum t÷rl‰se...";
$text["removing_document_link"] = "Kapcsoldßs t÷rl‰se...";
$text["removing_folder"] = "K÷nyvtßr t÷rl‰se...";
$text["removing_group"] = "Csoport t÷rl‰se folyamatban...";
$text["removing_member"] = "Csoporttag t÷rl‰se folyamatban...";
$text["removing_user"] = "Felhasznßl t÷rl‰se folyamatban...";
$text["removing_version"] = "[version]. dokumentum verzi t÷rl‰se...";
$text["review_document"] = "Review Document";
$text["review_document_complete"] = "Review Document: Complete";
$text["review_document_complete_records_updated"] = "Document review completed and records updated";
$text["review_group"] = "Review Group";
$text["review_status"] = "Review Status";
$text["review_summary"] = "Review Summary";
$text["review_update_failed"] = "Error updating review status. Update failed.";
$text["reviewer_added"] = "added as a reviewer";
$text["reviewer_already_assigned"] = "is already assigned as a reviewer";
$text["reviewer_already_removed"] = "has already been removed from review process or has already submitted a review";
$text["reviewer_no_privilege"] = "is not sufficiently privileged to review this document";
$text["reviewer_removed"] = "removed from review process";
$text["reviewers"] = "Reviewers";
$text["rm_default_keyword_category"] = "Kategria t÷rl‰se";
$text["rm_default_keywords"] = "Kulcsszavak t÷rl‰se";
$text["rm_document"] = "Dokumentum t÷rl‰se";
$text["rm_folder"] = "K÷nyvtßr t÷rl‰s";
$text["rm_group"] = "Csoport t÷rl‰se";
$text["rm_user"] = "Felhasznßl t÷rl‰se";
$text["rm_version"] = "Verzi t÷rl‰se";
$text["root_folder"] = "Gy÷k‰r k÷nyvtßr";
$text["save"] = "Ment‰s";
$text["search"] = "Keres‰s";
$text["search_in"] = "Keres‰s ebben a k÷nyvtßrban";
$text["search_in_all"] = "Minden k÷nyvtßrban";
$text["search_in_current"] = "csak ([foldername]) -ban ‰s alk÷nyvtßraiban";
$text["search_mode"] = "Md";
$text["search_mode_and"] = "egyez‰s minden szra";
$text["search_mode_or"] = "egyez‰s legalßbb egy szra";
$text["search_no_results"] = "Nincs talßlat";
$text["search_query"] = "Kulcssz";
$text["search_report"] = "Talßlatok szßma [count] erre a lek‰rdez‰sre";
$text["search_result_pending_approval"] = "status 'pending approval'";
$text["search_result_pending_review"] = "status 'pending review'";
$text["search_results"] = "Talßlatok";
$text["search_results_access_filtered"] = "Search results may contain content to which access has been denied.";
$text["search_time"] = "Felhasznßlt id: [time] mßsodperc.";
$text["select_one"] = "Vßlasszon egyet";
$text["selected_document"] = "Kivßlasztott dokumentum";
$text["selected_folder"] = "Kivßlasztott konyvtßr";
$text["selection"] = "Selection";
$text["seq_after"] = "\"[prevname]\" utßn";
$text["seq_end"] = "V‰g‰re";
$text["seq_keep"] = "Poz<EFBFBD>ci megtartßsa";
$text["seq_start"] = "Elej‰re";
$text["sequence"] = "Sorrend";
$text["set_default_access"] = "Set Default Access Mode";
$text["set_expiry"] = "Set Expiry";
$text["set_owner"] = "Tulajdonos beßll<6C>tßsa";
$text["set_reviewers_approvers"] = "Assign Reviewers and Approvers";
$text["setting_expires"] = "Lejßrat beßll<6C>tßs folyamatban...";
$text["setting_owner"] = "Tulajdonos beßll<6C>tßsa...";
$text["setting_user_image"] = "<br>Felhasznßli k‰p beßll<6C>tßsa folyamatban...";
$text["show_all_versions"] = "Show All Revisions";
$text["show_current_versions"] = "Show Current";
$text["start"] = "Kezdet";
$text["status"] = "Status";
$text["status_approval_rejected"] = "Draft rejected";
$text["status_approved"] = "Approved";
$text["status_approver_removed"] = "Approver removed from process";
$text["status_change_summary"] = "Document revision changed from status '[oldstatus]' to status '[newstatus]'.";
$text["status_changed_by"] = "Status changed by";
$text["status_not_approved"] = "Not approved";
$text["status_not_reviewed"] = "Not reviewed";
$text["status_reviewed"] = "Reviewed";
$text["status_reviewer_rejected"] = "Draft rejected";
$text["status_reviewer_removed"] = "Reviewer removed from process";
$text["status_unknown"] = "Unknown";
$text["subfolder_list"] = "Alk÷nyvtßrak";
$text["submit_approval"] = "Submit approval";
$text["submit_login"] = "Sign in";
$text["submit_review"] = "Submit review";
$text["theme"] = "T‰ma";
$text["unable_to_add"] = "Unable to add";
$text["unable_to_remove"] = "Unable to remove";
$text["under_folder"] = ", c‰lk÷nyvtßr:";
$text["unknown_command"] = "Command not recognized.";
$text["unknown_group"] = "Unknown group id";
$text["unknown_keyword_category"] = "Unknown category";
$text["unknown_owner"] = "Unknown owner id";
$text["unknown_user"] = "Unknown user id";
$text["unlock_cause_access_mode_all"] = "Ùn m‰gis mdos<6F>thatja, mivel ÷nnek \"teljes\" jogosultsßga van. A zßrolßs automatikusan fel lesz oldva.";
$text["unlock_cause_locking_user"] = "Ùn m‰gis mdos<6F>thatja, mivel a zßrolßst Ùn hozta l‰tre. A zßrolßs automatikusan fel lesz oldva.";
$text["unlock_document"] = "Felszabad<EFBFBD>t";
$text["unlocking_denied"] = "Ùnnek nincs jogsultsßga a zßrolßs feloldßsßra";
$text["unlocking_document"] = "Dokumentum feloldßs folyamatban...";
$text["update"] = "Update";
$text["update_approvers"] = "Update List of Approvers";
$text["update_document"] = "Mdos<EFBFBD>t";
$text["update_info"] = "Update Information";
$text["update_locked_msg"] = "Zßrolt dokumentum.";
$text["update_reviewers"] = "Update List of Reviewers";
$text["update_reviewers_approvers"] = "Update List of Reviewers and Approvers";
$text["updated_by"] = "Updated by";
$text["updating_document"] = "Dokumentum mdos<6F>tßs folyamatban...";
$text["upload_date"] = "Felt÷lt‰s dßtuma";
$text["uploaded"] = "Uploaded";
$text["uploaded_by"] = "Felt÷lt÷tte";
$text["uploading_failed"] = "Sikertelen felt÷lt‰s. K‰rem l‰pjen kapcsolatba a rendszergazdßval.";
$text["use_default_keywords"] = "Elredefinißlt kulcsszavak hasznßlata";
$text["user"] = "Felhasznßl";
$text["user_already_approved"] = "User has already submitted an approval of this document version";
$text["user_already_reviewed"] = "User has already submitted a review of this document version";
$text["user_approval_not_required"] = "No document approval required of user at this time.";
$text["user_exists"] = "User already exists.";
$text["user_image"] = "K‰p";
$text["user_info"] = "User Information";
$text["user_list"] = "Felhasznßlk listßja";
$text["user_login"] = "Felhasznßl";
$text["user_management"] = "Felhasznßlk";
$text["user_name"] = "Teljes n‰v";
$text["user_removed_approver"] = "User has been removed from the list of individual approvers.";
$text["user_removed_reviewer"] = "User has been removed from the list of individual reviewers.";
$text["user_review_not_required"] = "No document review required of user at this time.";
$text["users"] = "Felhasznßlk";
$text["version"] = "Verzi";
$text["version_info"] = "Version Information";
$text["version_under_approval"] = "Version under approval";
$text["version_under_review"] = "Version under review";
$text["view_document"] = "View Document";
$text["view_online"] = "Megtekint‰s b÷ng‰szben";
$text["warning"] = "Warning";
$text["wrong_pwd"] = "Hibßs jelsz. Prbßlja ”jra";
$text["yes"] = "Igen";
// New as of 1.7.1. Require updated translation.
$text["documents"] = "Documents";
$text["folders"] = "Folders";
$text["no_folders"] = "No folders";
$text["notification_summary"] = "Notification Summary";
// New as of 1.7.2
$text["all_pages"] = "All";
$text["results_page"] = "Results Page";
// New
$text["sign_out"] = "sign out";
$text["signed_in_as"] = "Signed in as";
$text["assign_reviewers"] = "Assign Reviewers";
$text["assign_approvers"] = "Assign Approvers";
$text["override_status"] = "Override Status";
$text["change_status"] = "Change Status";
$text["change_assignments"] = "Change Assignments";
$text["no_user_docs"] = "There are currently no documents owned by the user";
$text["disclaimer"] = "This is a classified area. Access is permitted only to authorized personnel. Any violation will be prosecuted according to the english and international laws.";
$text["backup_tools"] = "Backup tools";
$text["versioning_file_creation"] = "Versioning file creation";
$text["archive_creation"] = "Archive creation";
$text["files_deletion"] = "Files deletion";
$text["folder"] = "Folder";
$text["unknown_id"] = "unknown id";
$text["help"] = "Help";
$text["versioning_info"] = "Versioning info";
$text["versioning_file_creation_warning"] = "With this operation you can create a file containing the versioning information of an entire DMS folder. After the creation every file will be saved inside the document folder.";
$text["archive_creation_warning"] = "With this operation you can create achive containing the files of entire DMS folders. After the creation the archive will be saved in the data folder of your server.<br>WARNING: an archive created as human readable will be unusable as server backup.";
$text["files_deletion_warning"] = "With this option you can delete all files of entire DMS folders. The versioning information will remain visible.";
$text["backup_list"] = "Existings backup list";
$text["backup_remove"] = "Remove backup file";
$text["confirm_rm_backup"] = "Do you really want to remove the file \"[arkname]\"?<br>Be careful: This action cannot be undone.";
$text["document_deleted"] = "Document deleted";
$text["linked_files"] = "Attachments";
$text["invalid_file_id"] = "Invalid file ID";
$text["rm_file"] = "Remove file";
$text["confirm_rm_file"] = "Do you really want to remove file \"[name]\" of document \"[documentname]\"?<br>Be careful: This action cannot be undone.";
$text["edit_comment"] = "Edit comment";
// new from 1.9
$text["is_hidden"] = "Hide from users list";
$text["log_management"] = "Log files management";
$text["confirm_rm_log"] = "Do you really want to remove log file \"[logname]\"?<br>Be careful: This action cannot be undone.";
$text["include_subdirectories"] = "Include subdirectories";
$text["include_documents"] = "Include documents";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Toggle manager";
// new from 2.0
$text["calendar"] = "Calendar";
$text["week_view"] = "Week view";
$text["month_view"] = "Month view";
$text["year_view"] = "Year View";
$text["add_event"] = "Add event";
$text["edit_event"] = "Edit event";
$text["january"] = "January";
$text["february"] = "February";
$text["march"] = "March";
$text["april"] = "April";
$text["may"] = "May";
$text["june"] = "June";
$text["july"] = "July";
$text["august"] = "August";
$text["september"] = "September";
$text["october"] = "October";
$text["november"] = "November";
$text["december"] = "December";
$text["sunday"] = "Sunday";
$text["monday"] = "Monday";
$text["tuesday"] = "Tuesday";
$text["wednesday"] = "Wednesday";
$text["thursday"] = "Thursday";
$text["friday"] = "Friday";
$text["saturday"] = "Saturday";
$text["from"] = "From";
$text["to"] = "To";
$text["event_details"] = "Event details";
$text["confirm_rm_event"] = "Do you really want to remove event \"[name]\"?<br>Be careful: This action cannot be undone.";
$text["dump_creation"] = "DB dump creation";
$text["dump_creation_warning"] = "With this operation you can create a dump file of your database content. After the creation the dump file will be saved in the data folder of your server.";
$text["dump_list"] = "Existings dump files";
$text["dump_remove"] = "Remove dump file";
$text["confirm_rm_dump"] = "Do you really want to remove the file \"[dumpname]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_user"] = "Do you really want to remove the user \"[username]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_group"] = "Do you really want to remove the group \"[groupname]\"?<br>Be careful: This action cannot be undone.";
$text["human_readable"] = "Human readable archive";
$text["email_header"] = "This is an automatic message from the DMS server.";
$text["email_footer"] = "You can always change your e-mail settings using 'My Account' functions";
$text["add_multiple_files"] = "Add multiple files (will use filename as document name)";
// new from 2.0.1
$text["max_upload_size"] = "Maximum upload size for each file";
?>

191
languages/Italian/help.htm Normal file
View File

@ -0,0 +1,191 @@
<h1>Note generali</h1>
<p>
Un DMS (Document Management System) ha lo scopo di permettere la condivisione di documenti
controllandone il flusso di lavoro, i permessi di accesso e l'organizzazione in generale.
</p>
<p>
Tramite il menu di primo livello &egrave; possibile accedere ai vari documenti
memorizzati:
<ul>
<li>Cartelle: permette di sfogliare i documenti come si farebbe con un normale file manager.
<li>Documenti personali: presenta diverse voci per accedere rapidamente ai documenti di interesse personale:
<ul>
<li>Documenti in lavorazione: lista dei documenti in attesa di revisione o approvazione da parte dell'utente,
dei documenti di propriet&agrave; dell'utente che attendono approvazione o revisione e dei documenti attualmente bloccati dall'utente.
<li>Tutti i documenti: lista di tutti i documenti di propriet&agrave; dell'utente.
<li>Dettaglio revisioni: lista tutti i documenti gi&agrave; revisionati o in attesa di revisione da parte dell'utente.
<li>Dettaglio approvazioni: lista tutti i documenti gi&agrave; approvati o in attesa di approvazione da parte dell'utente.
</ul>
</ul>
</p>
<p>
Il presente DMS mette a disposizione anche un calendario che ha la funzione di bacheca virtuale per condividere note,
appuntamenti, scadenze ed impegni.
</p>
<h1>Permessi</h1>
<p>
L'utente autorizzato pu&ograve; stabilire se e come gli altri utenti del sistema
potranno accedere alle varie cartelle e documenti presenti.
</p>
<h2>Livelli di permesso</h2>
<p>
I livelli di accesso possibili sono:
<ul>
<li>Permessi totali: l'utente pu&ograve; effettuare qualsiasi operazione.
<li>Lettura e scrittura: l'utente pu&ograve; aggiornare documenti e aggiungere contenuti alle cartelle.
<li>Solo lettura: l'utente pu&ograve; visualizzare il contenuto delle cartelle e scaricare i documenti.
<li>Nessun accesso: non &egrave; possibile visualizzare il contenuto delle cartelle o i singoli documenti.
</ul>
</p>
<p>
Per default gli utenti amministratori hanno permessi di massimo livello su ogni documento e
cartella del sistema. Analogamente il proprietario del documento ha permessi totali
sui propri documenti.
</p>
<p>
Solo gli utenti amministratori possono cambiare il proprietario di un documento.
</p>
<h2>Gestione dei permessi</h2>
<p>
Per ogni cartella o documento i permessi sono gestiti tramite due dispositivi
diversi:
<ul>
<li>I permessi di default valgono in mancanza di ulteriori specifiche.
<li>La lista dei permessi consente di specificare eccezioni ai permessi di default.
</ul>
</p>
<h2>Permessi ereditari</h2>
<p>
I permessi di cartelle e documenti possono essere impostati come ereditari.
In tal caso i documenti e le cartelle ereditano i medesimi permessi della cartella che li contiene.
</p>
<h1>Flusso di lavoro</h1>
<p>
Il sistema gestisce automaticamente il flusso di lavoro per ogni documento e memorizza
variazioni, versionamento, commenti effettuati, ecc.
</p>
<h2>Ciclo di validazione dei documenti</h2>
<p>
Il normale flusso di lavoro prevede che, al caricamento di un nuovo documento o di una
nuova versione, vengano indicati alcuni utenti o gruppi di utenti, a titolo
di revisori e/o approvatori. Gli utenti indicati come revisori e approvatori sono
tenuti ad esplicitare la propria approvazione al documento. Quando tale operazione
viene ultimata, ovvero tutti gli utenti indicati hanno effettuato la propria
revisione/approvazione, il documento passa nello stato di 'rilasciato'.
</p>
<p>
L'utente revisore/approvatore pu&ograve; negare la propria approvazione al documento.
In tal caso il documento passa nello stato di 'rifutato'.
</p>
<p>
Un documento per il quale non vengano impostate revisioni e approvazioni assume
immediatamente lo stato di 'rilasciato'.
</p>
<p>
Come approvatori/revisori &egrave; possibile indicare anche gruppi di utenti. In tal caso
si intende che la revisione/approvazione dovr&agrave; essere effettuata da uno qualsiasi degli utenti
appartenenti al gruppo.
</p>
<p>
L'utente proprietario del documento pu&ograve; in ogni momento modificare la lista dei revisori
e degli approvatori.
</p>
<h2>Stato dei documenti</h2>
<p>
Gli stati possibili per un documento sono:
<ul>
<li>Bozza in attesa di approvazione: uno o pi&ugrave; degli approvatori indicati non ha ancora espresso la propria approvazione.
<li>Bozza in attesa di revisione: uno o pi&ugrave; dei revisori indicati non ha ancora espresso la propria revisione.
<li>Rilasciato: il documento ha terminato positivamente il proprio ciclo di validazione.
<li>Rifiutato: il documento ha interrotto negativamente il proprio ciclo di validazione.
<li>Scaduto: &egrave; stata superata la data limite per il completamento del ciclo di validazione del documento.
<li>Obsoleto: lo stato di un documento rilasciato pu&ograve; essere modificato in obsoleto. Tale
modifica &egrave; intesa come alternativa alla cancellazione dello stesso documento. Lo stato
di obsoleto &egrave; reversibile.
</ul>
</p>
<h2>Scadenza</h2>
<p>
Per ogni documento in lavorazione pu&ograve; essere impostata una data di scadenza.
Una volta sorpassato il giorno impostato non sono pi&ugrave; possibili revisioni o approvazioni
ed il documento passa nello stato di 'scaduto'.
</p>
<p>
La scadenza viene considerata solo per l'ultima versione del documento
ed ha effetto solo sui documenti in lavorazione.
</p>
<h1>Altre caratteristiche</h1>
<h2>Funzione di blocco</h2>
<p>
La funzione di blocco ha lo scopo di segnalare agli altri utenti che un certo documento
&egrave; in lavorazione. L'utente con permessi totali sul documento pu&ograve;
comunque ignorare il blocco e procedere ad una modifica del documento.
</p>
<h2>Notifiche</h2>
<p>
Ogni utente pu&ograve; richiedere notifica su documenti e cartelle.
Aggiungendo un documento o una cartella nella propria lista di notifiche si ricever&agrave;
segnalazione delle operazioni effettuate da altri utenti.
</p>
<p>
Solo il Manager di un gruppo pu&ograve; decidere se inserire o meno il gruppo nella lista
di notifica di documenti e cartelle. Una volta inserito, le notifiche arrivano
a tutti i membri del gruppo.
</p>
<h2>Parole chiave e ricerca</h2>
<p>
Ogni documento permette l'inserimento di una descrizione e di alcune parole chiave.
Tali informazioni vengono utilizzate per la ricerca documenti.
</p>
<p>
Nel men&ugrave; del proprio account personale ogni utente pu&ograve; memorizzare
una serie di parole chiave raggruppate per categorie, in modo da velocizzarne
la compilazione al momento del caricamento dei documenti.
</p>
<p>
Premendo il pulsante di ricerca senza inserire alcuna parola si accede alla pagina
di ricerca avanzata.
</p>
<h2>Calendario</h2>
<p>
Sono possibili tre viste: per settimana, per mese, per anno. Gli eventi sono
visualizzati in ordine di inserimento nel calendario.
</p>
<p>
Una volta inseriti, gli eventi sono pubblici e visibili a tutti. Solo l'amministratore
e chi ha inserito l'evento possono modificarlo successivamente.
</p>

530
languages/Italian/lang.inc Normal file
View File

@ -0,0 +1,530 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$text = array();
$text["accept"] = "Accetta";
$text["access_denied"] = "Accesso negato";
$text["access_inheritance"] = "Permessi ereditari";
$text["access_mode"] = "Permessi";
$text["access_mode_all"] = "Permessi totali";
$text["access_mode_none"] = "Nessun accesso";
$text["access_mode_read"] = "Permesso di lettura";
$text["access_mode_readwrite"] = "Permesso di lettura e scrittura";
$text["account_summary"] = "Dettagli Account";
$text["action_summary"] = "Dettaglio Azioni";
$text["actions"] = "Azioni";
$text["add_access"] = "Aggiungi permesso";
$text["add_doc_reviewer_approver_warning"] = "Nota: i documenti saranno automaticamente distinti come rilasciati se non esiste approvazione o revisione";
$text["add_document_link"] = "Aggiungi collegamento";
$text["add_document"] = "Aggiungi documento";
$text["add_group"] = "Aggiungi nuovo gruppo";
$text["add_link"] = "Crea un collegamento";
$text["add_member"] = "Aggiungi un membro";
$text["add_new_notify"] = "Aggiungi nuova notifica";
$text["add_subfolder"] = "Aggiungi sottocartella";
$text["add_user"] = "Aggiungi nuovo utente";
$text["add"] = "Aggiungi";
$text["admin_tools"] = "Amministrazione";
$text["admin"] = "Amministratore";
$text["all_documents"] = "Tutti i documenti";
$text["all_users"] = "Tutti gli utenti";
$text["already_subscribed"] = "L'oggetto &egrave; gi&agrave; stato sottoscritto";
$text["and"] = "e";
$text["approval_group"] = "Gruppo approvazione";
$text["approval_status"] = "Stato approvazione";
$text["approval_summary"] = "Dettaglio approvazioni";
$text["approval_update_failed"] = "Errore nel modificare lo stato di approvazione";
$text["approve_document_complete_records_updated"] = "Approvazione documento completata e record modificato";
$text["approve_document_complete"] = "Approvazione documento: Completata";
$text["approve_document"] = "Documento approvato";
$text["approvers"] = "Approvatori";
$text["as_approver"] = "come un approvatore";
$text["as_reviewer"] = "come un revisore";
$text["assumed_released"] = "Rilascio Acquisito";
$text["back"] = "Ritorna";
$text["between"] = "tra";
$text["cancel"] = "Annulla";
$text["cannot_approve_pending_review"] = "Il documento &egrave; in corso di revisione. Non pu&ograve; essere sottoposto attualmente ad una approvazione.";
$text["cannot_assign_invalid_state"] = "Non &egrave; possibile modificare le assegnazioni di un documento gi&agrave; in stato finale";
$text["cannot_change_final_states"] = "Attenzione: Non si pu&ograve; modificare lo stato dei documenti rifiutati, scaduti o in lavorazione";
$text["cannot_delete_admin"] = "Impossibile cancellare l'utente amministrativo primario";
$text["cannot_move_root"] = "Impossibile spostare la cartella di root";
$text["cannot_retrieve_approval_snapshot"] = "Impossibile visualizzare lo stato di approvazione per questa versione di documento";
$text["cannot_retrieve_review_snapshot"] = "Impossibile visualizzare lo stato di revisione per questa versione di documento";
$text["cannot_rm_root"] = "Impossibile cancellare la cartella di root";
$text["choose_category"] = "Seleziona";
$text["choose_group"] = "--Seleziona gruppo--";
$text["choose_target_document"] = "Seleziona documento";
$text["choose_target_folder"] = "Seleziona cartella";
$text["choose_user"] = "--Seleziona utente--";
$text["comment_for_current_version"] = "Commento per la versione";
$text["comment"] = "Commento";
$text["confirm_pwd"] = "Conferma Password";
$text["confirm_rm_document"] = "Vuoi veramente eliminare il documento \"[documentname]\"?<br>Attenzione: L'operazione &egrave; irreversibile";
$text["confirm_rm_folder"] = "Vuoi veramente eliminare la cartella \"[foldername]\" e tutto il suo contenuto?<br>Attenzione: L'operazione &egrave; irreversibile";
$text["confirm_rm_version"] = "Vuoi veramente eliminare la versione [version] del documento \"[documentname]\"?<br>Attenzione: L'operazione &egrave; irreversibile";
$text["content"] = "Cartelle";
$text["continue"] = "Continua";
$text["creation_date"] = "Data creazione";
$text["current_version"] = "Ultima versione";
$text["default_access"] = "Permesso di default";
$text["default_keyword_category_name"] = "Nome";
$text["default_keyword_category"] = "Categoria";
$text["default_keywords"] = "Parole chiave disponibili";
$text["delete"] = "Cancella";
$text["details"] = "Dettagli";
$text["details_version"] = "Dettagli versione: [version]";
$text["document_already_locked"] = "Questo documento &egrave; gi&agrave; bloccato";
$text["document_infos"] = "Informazioni documento";
$text["document_is_not_locked"] = "Questo documento non &egrave; bloccato";
$text["document_link_by"] = "Collegato da";
$text["document_link_public"] = "Pubblico";
$text["document_list"] = "Documenti";
$text["document_overview"] = "Descrizione del documento";
$text["document_status"] = "Stato del Documento";
$text["document_title"] = "Documento '[documentname]'";
$text["document_versions"] = "Tutte le versioni";
$text["document"] = "Documento";
$text["documents_in_process"] = "Documenti in lavorazione";
$text["documents_owned_by_user"] = "Documenti posseduti dall'utente";
$text["documents_to_approve"] = "Documenti in attesa della tua approvazione";
$text["documents_to_review"] = "Documenti in attesa della tua revisione";
$text["documents_user_requiring_attention"] = "Tuoi documenti in attesa di revisione o approvazione";
$text["does_not_expire"] = "Nessuna scadenza";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">Imposta permessi ereditari</a>";
$text["download"] = "Scarica";
$text["draft_pending_approval"] = "Bozza in approvazione";
$text["draft_pending_review"] = "Bozza in revisione";
$text["edit_default_keyword_category"] = "Modifica categoria";
$text["edit_default_keywords"] = "Modifica parole chiave";
$text["edit_document_access"] = "Modifica permessi";
$text["edit_document_notify"] = "Lista di notifica file";
$text["edit_document_props_again"] = "Modifica nuovamente il documento";
$text["edit_document_props"] = "Gestione documento";
$text["edit_document"] = "Modifica documento";
$text["edit_existing_access"] = "Gestione permessi";
$text["edit_existing_notify"] = "Gestione lista di notifica";
$text["edit_folder_access"] = "Modifica permessi";
$text["edit_folder_notify"] = "Lista di notifica cartelle";
$text["edit_folder_props_again"] = "Modifica nuovamente la cartella";
$text["edit_folder_props"] = "Gestione Cartella";
$text["edit_folder"] = "Modifica cartella";
$text["edit_group"] = "Modifica gruppo";
$text["edit_personal_default_keywords"] = "Gestione parole chiave personali";
$text["edit_user_details"] = "Gestione dettagli utente";
$text["edit_user"] = "Modifica utente";
$text["edit"] = "modifica";
$text["email_err_group"] = "Errore nell'invio di email a uno o pi&ugrave; membri del gruppo [group]";
$text["email_err_user"] = "Errore nell'invio di email all'utente [user]";
$text["email_sent"] = "Email inviata";
$text["email"] = "Email";
$text["empty_access_list"] = "La lista permessi &egrave; vuota";
$text["empty_notify_list"] = "Nessun record";
$text["error_occured"] = "Si verificato un errore";
$text["exp_date"] = "Data Scadenza";
$text["expired"] = "Scaduto";
$text["expires"] = "Scadenza";
$text["file_info"] = "Informazioni sul file";
$text["file_size"] = "Grandezza";
$text["file"] = "File";
$text["folder_contents"] = "Contenuto cartella";
$text["folder_infos"] = "Informazioni cartella";
$text["folder_notify_again"] = "Modifica nuovamente lista notifica";
$text["folder_overview"] = "Vista generale cartella";
$text["folder_path"] = "Percorso";
$text["folder_title"] = "Cartella '[foldername]'";
$text["folders_and_documents_statistic"] = "Visualizzazione generale";
$text["foldertree"] = "Albero cartella";
$text["from_approval_process"] = "dal processo di approvazione";
$text["from_review_process"] = "dal processo di revisione";
$text["global_default_keywords"] = "Categorie parole chiave globali";
$text["goto"] = "Vai a";
$text["group_already_approved"] = "Un'approvazione &egrave; gi&agrave; stata presentata a nome del gruppo";
$text["group_already_reviewed"] = "Una revisione &egrave; gi&agrave; stata presentata a nome del gruppo";
$text["group_approvers"] = "Gruppo Approvatori";
$text["group_email_sent"] = "Email trasmessa ai membri del gruppo";
$text["group_exists"] = "Il gruppo &egrave; gi&agrave; esistente";
$text["group_management"] = "Amministrazione gruppi";
$text["group_members"] = "Membri del gruppo";
$text["group_reviewers"] = "Gruppo Revisori";
$text["group_unable_to_add"] = "Impossibile aggiungere un gruppo";
$text["group_unable_to_remove"] = "Impossibile rimuovere un gruppo";
$text["group"] = "Gruppo";
$text["groups"] = "Gruppi";
$text["guest_login_disabled"] = "Login ospite &egrave; disabilitato";
$text["guest_login"] = "Login come ospite";
$text["individual_approvers"] = "Approvatori singoli";
$text["individual_reviewers"] = "Revisori singoli";
$text["individuals"] = "Singoli";
$text["inherits_access_msg"] = "E' impostato il permesso ereditario.<p><a class=\"inheritAccess\" href=\"[copyurl]\">Modifica la lista degli accessi ereditati</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">Riimposta una lista di permessi vuota</a>";
$text["internal_error_exit"] = "Errore interno. Impossibile completare la richiesta. Uscire.";
$text["internal_error"] = "Errore interno";
$text["invalid_access_mode"] = "Permessi non validi";
$text["invalid_action"] = "Azione non valida";
$text["invalid_approval_status"] = "Stato di approvazione non valido";
$text["invalid_create_date_end"] = "Fine data non valida per la creazione di un intervallo temporale";
$text["invalid_create_date_start"] = "Inizio data non valida per la creazione di un intervallo temporale";
$text["invalid_doc_id"] = "ID documento non valido";
$text["invalid_folder_id"] = "ID cartella non valido";
$text["invalid_group_id"] = "ID gruppo non valido";
$text["invalid_link_id"] = "ID di collegamento non valido";
$text["invalid_review_status"] = "Stato revisione non valido";
$text["invalid_sequence"] = "Valore di sequenza non valido";
$text["invalid_status"] = "Stato del documento non valido";
$text["invalid_target_doc_id"] = "ID documento selezionato non valido";
$text["invalid_target_folder"] = "ID cartella selezionata non valido";
$text["invalid_user_id"] = "ID utente non valido";
$text["invalid_version"] = "Versione documento non valida";
$text["is_admin"] = "Amministratore privilegiato";
$text["js_no_approval_group"] = "Si prega di selezionare un gruppo di approvazione";
$text["js_no_approval_status"] = "Si prega di selezionare lo stato di approvazione";
$text["js_no_comment"] = "Non ci sono commenti";
$text["js_no_email"] = "Scrivi nel tuo indirizzo di Email";
$text["js_no_file"] = "Per favore seleziona un file";
$text["js_no_keywords"] = "Specifica alcune parole chiave";
$text["js_no_login"] = "Il campo ID utente é necessario";
$text["js_no_name"] = "Il nome é necessario";
$text["js_no_override_status"] = "E' necessario selezionare un nuovo stato";
$text["js_no_pwd"] = "La password è necessaria";
$text["js_no_query"] = "Scrivi nella query";
$text["js_no_review_group"] = "Per favore seleziona un gruppo di revisori";
$text["js_no_review_status"] = "Per favore seleziona lo stato di revisione";
$text["js_pwd_not_conf"] = "Password e passwords-di conferma non corrispondono";
$text["js_select_user_or_group"] = "Selezionare almeno un utente o un gruppo";
$text["js_select_user"] = "Per favore seleziona un utente";
$text["keyword_exists"] = "Parola chiave gi&agrave; presente";
$text["keywords"] = "Parole chiave";
$text["language"] = "Lingua";
$text["last_update"] = "Ultima modifica";
$text["last_updated_by"] = "Ultima modifica eseguita da";
$text["latest_version"] = "Ultima versione";
$text["linked_documents"] = "Documenti collegati";
$text["local_file"] = "File locale";
$text["lock_document"] = "Blocca";
$text["lock_message"] = "Questo documento &egrave; bloccato da <a href=\"mailto:[email]\">[username]</a>. Solo gli utenti autorizzati possono sbloccare questo documento.";
$text["lock_status"] = "Stato";
$text["logged_in_as"] = "Loggato";
$text["login_error_text"] = "Errore nel login. ID utente o passord errati.";
$text["login_error_title"] = "Errore di login";
$text["login_not_found"] = "Questo nome utente non esiste";
$text["login_not_given"] = "Non &egrave; stato inserito il nome utente";
$text["login_ok"] = "Login eseguito";
$text["login"] = "Login";
$text["logout"] = "Logout";
$text["mime_type"] = "Mime-Type";
$text["move_document"] = "Sposta documento";
$text["move_folder"] = "Sposta cartella";
$text["move"] = "Sposta";
$text["my_account"] = "Account personale";
$text["my_documents"] = "Documenti personali";
$text["name"] = "Nome";
$text["new_default_keyword_category"] = "Aggiungi categoria";
$text["new_default_keywords"] = "Aggiungi parole chiave";
$text["new_user_image"] = "Nuova immagine";
$text["no_action_required"] = "n/a";
$text["no_action"] = "Non &egrave; richiesto alcun intervento";
$text["no_active_user_docs"] = "Non ci sono attualmente tuoi documenti in attesa di revisione o approvazione .";
$text["no_approvers"] = "Nessun approvatore assegnato.";
$text["no_default_keywords"] = "Nessuna parola chiave disponibile";
$text["no_documents"] = "Nessun documento";
$text["no_group_members"] = "Questo gruppo non ha membri";
$text["no_groups"] = "Nessun gruppo";
$text["no_previous_versions"] = "Nessun'altra versione trovata";
$text["no_reviewers"] = "Nessun revisore assegnato.";
$text["no_subfolders"] = "Nessuna sottocartella";
$text["no_update_cause_locked"] = "Non &egrave; quindi possible aggiornarlo.";
$text["no_user_image"] = "Nessuna immagine trovata";
$text["no"] = "No";
$text["notify_subject"] = "Documenti nuovi o scaduti nel tuo archivio";
$text["obsolete"] = "Obsoleto";
$text["old_folder"] = "cartella vecchia";
$text["only_jpg_user_images"] = "Possono essere utilizzate solo immagini di tipo jpeg";
$text["op_finished"] = "fatto";
$text["override_content_status"] = "Modifica stato";
$text["overview"] = "Visualizzazione generale";
$text["owner"] = "Proprietario";
$text["password"] = "Password";
$text["pending_approval"] = "Documenti in attesa di approvazione";
$text["pending_review"] = "Documenti in attesa di revisione";
$text["personal_default_keywords"] = "Parole chiave personali";
$text["previous_versions"] = "Versioni precedenti";
$text["rejected"] = "Rifiutato";
$text["released"] = "Rilasciato";
$text["remove_document_link"] = "Rimuovi collegamento";
$text["remove_member"] = "Rimuovi membro";
$text["removed_approver"] = "Rimosso dalla lista degli approvatori.";
$text["removed_reviewer"] = "Rimosso dalla lista dei revisori.";
$text["review_document"] = "Revisione Documento";
$text["review_group"] = "Gruppo revisori";
$text["review_status"] = "Stato revisioni";
$text["review_summary"] = "Dettaglio revisioni";
$text["review_update_failed"] = "Errore nella variazione della revisione. Aggiornamento fallito.";
$text["reviewer_added"] = "aggiunta come revisione";
$text["reviewer_already_assigned"] = "gi&agrave; &egrave; assegnato come revisore";
$text["reviewer_already_removed"] = "gi&agrave; rimosso dal processo di revisione oppure gi&agrave; inserito come revisione";
$text["reviewer_removed"] = "rimosso dal processo di revisione";
$text["reviewers"] = "Revisori";
$text["rm_default_keyword_category"] = "Cancella categoria";
$text["rm_default_keywords"] = "Cancella parole chiave";
$text["rm_document"] = "Rimuovi documento";
$text["rm_folder"] = "Rimuovi cartella";
$text["rm_group"] = "Rimuovi questo gruppo";
$text["rm_user"] = "Rimuovi questo utente";
$text["rm_version"] = "Rimuovi versione";
$text["root_folder"] = "Cartella Principale";
$text["save"] = "Salva";
$text["search_in_all"] = "tutte le cattelle";
$text["search_in_current"] = "solo in questa ([foldername]) incluse le sottocartelle";
$text["search_in"] = "Cerca in";
$text["search_mode_and"] = "tutte le parole";
$text["search_mode_or"] = "almeno una parola";
$text["search_mode"] = "Modo";
$text["search_no_results"] = "Non ci sono documenti che contengano la vostra ricerca";
$text["search_query"] = "Cerca per";
$text["search_report"] = "Trovati [count] documenti";
$text["search_result_pending_approval"] = "stato 'in attesa di approvazione'";
$text["search_result_pending_review"] = "stato 'in attesa di revisione'";
$text["search_results_access_filtered"] = "La ricerca pu&ograve; produrre contenuti il cui accesso &egrave; negato.";
$text["search_results"] = "Risultato ricerca";
$text["search_time"] = "Tempo trascorso: [time] sec.";
$text["search"] = "Cerca";
$text["select_one"] = "Seleziona uno";
$text["selected_document"] = "Seleziona documento";
$text["selected_folder"] = "Seleziona cartella";
$text["selection"] = "Selezione";
$text["seq_after"] = "Dopo \"[prevname]\"";
$text["seq_end"] = "Alla fine";
$text["seq_keep"] = "Mantene Posizione";
$text["seq_start"] = "Prima posizione";
$text["sequence"] = "Posizione";
$text["set_default_access"] = "Conferma permessi di default";
$text["set_expiry"] = "Regola la scadenza";
$text["set_owner"] = "Conferma proprietario";
$text["set_reviewers_approvers"] = "Assegnare i revisori e gli approvatori";
$text["show_all_versions"] = "Mostra tutte le revisioni";
$text["show_current_versions"] = "Mostra solo la versione corrente";
$text["start"] = "Avvia";
$text["status_approval_rejected"] = "Bozza rifiutata";
$text["status_approved"] = "Approvato";
$text["status_approver_removed"] = "Approvatore rimosso dal processo";
$text["status_changed_by"] = "Stato cambiato da";
$text["status_not_approved"] = "Non ancora approvato";
$text["status_not_reviewed"] = "Non ancora revisionato";
$text["status_reviewed"] = "Revisionato";
$text["status_reviewer_rejected"] = "Bozza rifiutata";
$text["status_reviewer_removed"] = "Revisore rimosso dal processo";
$text["status_unknown"] = "Sconosciuto";
$text["status"] = "Stato";
$text["subfolder_list"] = "Sottocartelle";
$text["submit_approval"] = "Approvazione documento";
$text["submit_login"] = "Login";
$text["submit_review"] = "Revisione documento";
$text["theme"] = "Tema";
$text["unable_to_add"] = "Impossibile aggiungere";
$text["unable_to_remove"] = "Impossibile rimuovere";
$text["under_folder"] = "Nella cartella";
$text["unknown_command"] = "Commando non riconosciuto.";
$text["unknown_group"] = "ID gruppo sconosciuto";
$text["unknown_keyword_category"] = "Categoria sconosciuta";
$text["unknown_owner"] = "ID proprietario sconosciuto";
$text["unknown_user"] = "ID utente sconosciuto";
$text["unlock_cause_access_mode_all"] = "Puoi ancora aggiornarlo, perch&egrave; hai il permesso \"all\". Il blocco sar&agrave; rimosso automaticamente.";
$text["unlock_cause_locking_user"] = "Puoi ancora aggiornarlo, perch&egrave; sei l'utente che ha eseguito il blocco. Il blocco sar&agrave; rimosso automaticamente.";
$text["unlock_document"] = "Sblocca";
$text["update_approvers"] = "Aggiornamento lista approvatori";
$text["update_document"] = "Aggiorna";
$text["update_info"] = "Aggiorna informazioni";
$text["update_locked_msg"] = "Questo documento &egrave; bloccato.";
$text["update_reviewers"] = "Aggiornamento lista revisori";
$text["update"] = "Aggiorna";
$text["updated_by"] = "Aggiornato da";
$text["upload_date"] = "Data Upload";
$text["uploaded_by"] = "Caricato da";
$text["uploaded"] = "Uploaded";
$text["uploading_failed"] = "Upload fallito. Sei pregato di contattare l'amministratore.";
$text["use_default_keywords"] = "Usa le parole chiave predefinite";
$text["user_exists"] = "Utente esistente";
$text["user_image"] = "Immagine";
$text["user_info"] = "Informazioni utente";
$text["user_list"] = "Lista utenti";
$text["user_login"] = "ID utente";
$text["user_management"] = "Amministrazione utenti";
$text["user_name"] = "Nome e Cognome";
$text["user"] = "Utente";
$text["users"] = "Utenti";
$text["version_info"] = "Informazioni versione";
$text["version_under_approval"] = "Versione in fase di approvazione";
$text["version_under_review"] = "Versione in fase di revisione";
$text["version"] = "Versione";
$text["view_document"] = "Visualizza documento";
$text["view_online"] = "Visualizza";
$text["warning"] = "Attenzione";
$text["wrong_pwd"] = "Password errata. Riprova.";
$text["yes"] = "Si";
// new
$text["documents"] = "Documenti";
$text["folders"] = "Cartelle";
$text["no_folders"] = "Nessuna cartella";
$text["notification_summary"] = "Sommario notifiche";
$text["all_pages"] = "Tutte";
$text["results_page"] = "Pagina dei risultati";
$text["sign_out"] = "Esci";
$text["signed_in_as"] = "Utente";
$text["assign_reviewers"] = "Assegna Revisori";
$text["assign_approvers"] = "Assegna Approvatori";
$text["override_status"] = "Modifica lo Stato";
$text["change_status"] = "Modifica lo Stato";
$text["change_assignments"] = "Modifica le Assegnazioni";
$text["no_user_docs"] = "Non ci sono attualmente tuoi documenti";
$text["disclaimer"] = "Questa &egrave; un'area riservata. L'accesso &egrave; consentito solo al personale autorizzato. Qualunque violazione sar&agrave; perseguita a norma delle leggi italiane ed internazionali.";
$text["error_updating_status"] = "Errore durante la modifica dello stato del documento";
$text["unknown_id"] = "identificativo sconosciuto";
$text["help"] = "Aiuto";
$text["group_approval_summary"] = "Dettaglio approvazioni di gruppo";
$text["group_review_summary"] = "Dettaglio revisioni di gruppo";
$text["documents_locked_by_you"] = "Documenti bloccati da te";
$text["document_renamed_email"] = "Documento rinominato";
$text["folder_renamed_email"] = "Cartella rinominata";
$text["comment_changed_email"] = "Commento cambiato";
$text["document_moved_email"] = "Documento spostato";
$text["folder_moved_email"] = "Cartella spostata";
$text["ownership_changed_email"] = "Proprietario cambiato";
$text["access_permission_changed_email"] = "Permessi cambiati";
$text["expiry_changed_email"] = "Scadenza cambiata";
$text["notify_added_email"] = "Sei stato aggiunto alla lista di notifica";
$text["notify_deleted_email"] = "Sei stato eliminato dalla lista di notifica";
$text["document_updated_email"] = "Documento aggiornato";
$text["document_deleted_email"] = "Documento cancellato";
$text["folder_deleted_email"] = "Cartella cancellata";
$text["version_deleted_email"] = "Versione cancellata";
$text["document_status_changed_email"] = "Modifica stato del documento";
$text["review_request_email"] = "Richiesta di revisione";
$text["approval_request_email"] = "Richiesta di approvazione";
$text["review_deletion_email"] = "Cancellata la richiesta di revisione";
$text["approval_deletion_email"] = "Cancellata la richiesta di approvazione";
$text["new_subfolder_email"] = "Nuova sottocartella";
$text["new_document_email"] = "Nuovo documento";
$text["approval_submit_email"] = "Sottoposta approvazione";
$text["review_submit_email"] = "Sottoposta revisione";
$text["automatic_status_update"] = "Modifica automatica dello stato";
$text["old"] = "Vecchio";
$text["new"] = "Nuovo";
$text["folder"] = "Cartella";
$text["new_file_email"] = "Nuovo file allegato";
$text["removed_file_email"] = "Rimosso file allegato";
$text["document_deleted"] = "Documento rimosso";
$text["linked_files"] = "File allegati";
$text["invalid_file_id"] = "ID del file non valido";
$text["rm_file"] = "Rimuovi file";
$text["confirm_rm_file"] = "Vuoi veramente eliminare il file \"[name]\" del documento \"[documentname]\"?<br>Attenzione: L'operazione &egrave; irreversibile";
$text["backup_tools"] = "Strumenti di backup";
$text["versioning_file_creation"] = "Creazione file di versionamento";
$text["archive_creation"] = "Creazione archivi";
$text["files_deletion"] = "Cancellazione file";
$text["versioning_info"] = "Informazioni di versionamento";
$text["versioning_file_creation_warning"] = "Con questa operazione &egrave; possibile creare un file di backup delle informazioni di versionamento dei documenti di una intera cartella. Dopo la creazione ogni file viene salvato nella cartella del relativo documento.";
$text["archive_creation_warning"] = "Con questa operazione &egrave; possibile creare archivi contenenti i file di intere cartelle del DMS. Dopo la creazione l'archivio viene salvato nella cartella dati del server.<br>Attenzione: un archivio creato per uso esterno non &egrave; utilizzabile come backup del server.";
$text["files_deletion_warning"] = "Con questa operazione &egrave; possible cancellare i file di intere cartelle. Dopo la cancellazione le informazioni di versionamento resteranno disponibili.";
$text["confirm_rm_folder_files"] = "Vuoi davvero rimuovere tutti i file dalla cartella \"[foldername]\" e dalle sue sottocartelle?<br>Attenzione: Questa operazione non pu&ograve; essere annullata.";
$text["files"] = "Files";
$text["storage_size"] = "Dimensione totale";
$text["backup_list"] = "Lista dei backup presenti";
$text["backup_remove"] = "Elimina file di backup";
$text["confirm_rm_backup"] = "Vuoi davvero rimuovere il file \"[arkname]\"?<br>Attenzione: Questa operazione non pu&ograve; essere annullata.";
$text["edit_comment"] = "Modifica il commento";
// new from 1.9
$text["is_hidden"] = "Nascondi dalla lista utenti";
$text["log_management"] = "Amministrazione log file";
$text["confirm_rm_log"] = "Vuoi davvero rimuovere il file di log \"[logname]\"?<br>Attenzione: Questa operazione non pu&ograve; essere annullata.";
$text["include_subdirectories"] = "Includi sottocartelle";
$text["include_documents"] = "Includi documenti";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Manager";
// new from 2.0
$text["calendar"] = "Calendario";
$text["week_view"] = "Vista settimana";
$text["month_view"] = "Vista mese";
$text["year_view"] = "Vista anno";
$text["add_event"] = "Aggiungi evento";
$text["edit_event"] = "Modifica evento";
$text["january"] = "Gennaio";
$text["february"] = "Febbraio";
$text["march"] = "Marzo";
$text["april"] = "Aprile";
$text["may"] = "Maggio";
$text["june"] = "Giugno";
$text["july"] = "Luglio";
$text["august"] = "Agosto";
$text["september"] = "Settembre";
$text["october"] = "Ottobre";
$text["november"] = "Novembre";
$text["december"] = "Dicembre";
$text["sunday"] = "Domenica";
$text["monday"] = "Luned&igrave;";
$text["tuesday"] = "Marted&igrave;";
$text["wednesday"] = "Mercoled&igrave;";
$text["thursday"] = "Gioved&igrave;";
$text["friday"] = "Venerd&igrave;";
$text["saturday"] = "Sabato";
$text["from"] = "Da";
$text["to"] = "A";
$text["event_details"] = "Dettagli evento";
$text["confirm_rm_event"] = "Vuoli davvero rimuovere l'evento \"[name]\"?<br>Attenzione: Questa operazione non pu&ograve; essere annullata.";
$text["dump_creation"] = "Creazione DB dump";
$text["dump_creation_warning"] = "Con questa operazione &egrave; possibile creare un file di dump del contenuto del database. Dopo la creazione il file viene salvato nella cartella dati del server.";
$text["dump_list"] = "List dei dump presenti";
$text["dump_remove"] = "Cancella il dump file";
$text["confirm_rm_dump"] = "Vuoi davvero rimuovere il file \"[dumpname]\"?<br>Attenzione: Questa operazione non pu&ograve; essere annullata.";
$text["confirm_rm_user"] = "Vuoi davvero rimuovere l'utente \"[username]\"?<br>Attenzione: Questa operazione non pu&ograve; essere annullata.";
$text["confirm_rm_group"] = "Vuoi davvero rimuovere il gruppo \"[groupname]\"?<br>Attenzione: Questa operazione non pu&ograve; essere annullata.";
$text["human_readable"] = "Archivio per uso esterno";
$text["email_header"] = "Questo &egrave; un messaggio automatico inviato dal server DMS";
$text["email_footer"] = "Puoi cambiare le tue preferenze utilizzando le funzioni del menu 'Account personale'";
$text["add_multiple_files"] = "Aggiungi documenti multipli (il nome del file verr&agrave; usato come nome del documento)";
// new from 2.0.1
$text["max_upload_size"] = "Dimensione massima caricabile per ogni file";
?>

View File

@ -0,0 +1,7 @@
<h1>TODO</h1>

View File

@ -0,0 +1,577 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$text = array();
$text["accept"] = "Aceitar";
$text["access_denied"] = "Access denied.";
$text["access_inheritance"] = "Access Inheritance";
$text["access_mode"] = "Modo de acesso";
$text["access_mode_all"] = "Tudo";
$text["access_mode_none"] = "Sem acesso";
$text["access_mode_read"] = "leitura";
$text["access_mode_readwrite"] = "Leitura-Escrita";
$text["account_summary"] = "Account Summary";
$text["action_summary"] = "Action Summary";
$text["actions"] = "Actions";
$text["add"] = "Add";
$text["add_access"] = "Adicionar acesso";
$text["add_doc_reviewer_approver_warning"] = "N.B. Documents are automatically marked as released if no reviewer or approver is assigned.";
$text["add_document"] = "Adicionar documento";
$text["add_document_link"] = "Adicionar link";
$text["add_group"] = "Adicionar grupo";
$text["add_link"] = "Create Link";
$text["add_member"] = "Adicionar membro";
$text["add_new_notify"] = "Adicionar notifica‡ƒo";
$text["add_subfolder"] = "Adicionar sub-pasta";
$text["add_user"] = "Adicionar usußrio ";
$text["adding_default_keywords"] = "Adicionando palavras-chave...";
$text["adding_document"] = "Adicionando documento \"[documentname]\" € pasta \"[foldername]\"...";
$text["adding_document_link"] = "Adicionando link ao documento relacionado...";
$text["adding_document_notify"] = "Adicionando elemento € lista de notifica‡ƒo...";
$text["adding_folder_notify"] = "Adicionando elemento € lista de nofica‡ƒo...";
$text["adding_group"] = "Adicionando grupo ao sistema...";
$text["adding_member"] = "Adicionando membro ao grupo...";
$text["adding_sub_folder"] = "Adicionando sub-pasta \"[subfoldername]\" € pasta \"[foldername]\"...";
$text["adding_user"] = "Adicionando usußrio ao sistema...";
$text["admin"] = "Administrator";
$text["admin_set_owner"] = "Only an Administrator may set a new owner";
$text["admin_tools"] = "Administra‡ƒo";
$text["all_documents"] = "All Documents";
$text["all_users"] = "Todos os usußrios";
$text["and"] = "e";
$text["approval_group"] = "Approval Group";
$text["approval_status"] = "Approval Status";
$text["approval_summary"] = "Approval Summary";
$text["approval_update_failed"] = "Error updating approval status. Update failed.";
$text["approve_document"] = "Approve Document";
$text["approve_document_complete"] = "Approve Document: Complete";
$text["approve_document_complete_records_updated"] = "Document approval completed and records updated";
$text["approver_added"] = "added as an approver";
$text["approver_already_assigned"] = "is already assigned as an approver";
$text["approver_already_removed"] = "has already been removed from approval process or has already submitted an approval";
$text["approver_no_privilege"] = "is not sufficiently privileged to approve this document";
$text["approver_removed"] = "removed from approval process";
$text["approvers"] = "Approvers";
$text["as_approver"] = "as an approver";
$text["as_reviewer"] = "as a reviewer";
$text["assign_privilege_insufficient"] = "Access denied. Privileges insufficient to assign reviewers or approvers to this document.";
$text["assumed_released"] = "Assumed released";
$text["back"] = "Voltar";
$text["between"] = "entre";
$text["cancel"] = "Cancelar";
$text["cannot_approve_pending_review"] = "Document is currently pending review. Cannot submit an approval at this time.";
$text["cannot_assign_invalid_state"] = "Cannot assign new reviewers to a document that is not pending review or pending approval.";
$text["cannot_change_final_states"] = "Warning: Unable to alter document status for documents that have been rejected, marked obsolete or expired.";
$text["cannot_delete_admin"] = "Unable to delete the primary administrative user.";
$text["cannot_move_root"] = "Error: Cannot move root folder.";
$text["cannot_retrieve_approval_snapshot"] = "Unable to retrieve approval status snapshot for this document version.";
$text["cannot_retrieve_review_snapshot"] = "Unable to retrieve review status snapshot for this document version.";
$text["cannot_rm_root"] = "Error: Cannot delete root folder.";
$text["choose_category"] = "--Por favor escolha--";
$text["choose_group"] = "--Escolher grupo--";
$text["choose_target_document"] = "Escolha documento";
$text["choose_target_folder"] = "Escolha pasta-alvo";
$text["choose_user"] = "--Escolher usußrio--";
$text["comment"] = "Comentßrio";
$text["comment_for_current_version"] = "Comentßrio para versƒo atual";
$text["confirm_pwd"] = "Confirme Senha";
$text["confirm_rm_document"] = "Deseja realmente remover o documento \"[documentname]\"?<br>Por favor, tenha cuidado porque esta a‡ƒo nƒo poderß desfeita.";
$text["confirm_rm_folder"] = "Deseja realmente remover a \"[foldername]\" e seu conte”do ?<br>Por favor, tenha cuidado porque esta a‡ƒo nƒo poderß desfeita.";
$text["confirm_rm_version"] = "Deseja realmente remover versƒo [version] do documento \"[documentname]\"?<br>Por favor, tenha cuidado porque esta a‡ƒo nƒo poderß desfeita.";
$text["content"] = "Conte”do";
$text["continue"] = "Continue";
$text["creating_new_default_keyword_category"] = "Adicionando categoria...";
$text["creation_date"] = "Criado";
$text["current_version"] = "Versƒo Atual";
$text["default_access"] = "Modo de acesso Padrƒo";
$text["default_keyword_category"] = "Categorias";
$text["default_keyword_category_name"] = "Nome";
$text["default_keywords"] = "Palavras-chave dispon<6F>veis";
$text["delete"] = "Apagar";
$text["delete_last_version"] = "Document has only one revision. Deleting entire document record...";
$text["deleting_document_notify"] = "Removendo elemento da lista de notifica‡ƒo...";
$text["deleting_folder_notify"] = "Removendo elemento da lista de notifica‡ƒo...";
$text["details"] = "Details";
$text["details_version"] = "Details for version: [version]";
$text["document"] = "Document";
$text["document_access_again"] = "Editar acesso ao documento novamente";
$text["document_add_access"] = "Adicionando elemento € lista de acesso...";
$text["document_already_locked"] = "Este documento jß estß travado";
$text["document_del_access"] = "Removendo elemento a partir da lista de acesso...";
$text["document_edit_access"] = "Mudando modo de acesso...";
$text["document_infos"] = "Informa‡es";
$text["document_is_not_locked"] = "Este documento nƒo estß travado";
$text["document_link_by"] = "Ligado por";
$text["document_link_public"] = "P”blico";
$text["document_list"] = "Documentos";
$text["document_notify_again"] = "Editar lista de notifica‡ƒo novamente";
$text["document_overview"] = "Visualiza‡ƒo do Documento";
$text["document_set_default_access"] = "Definindo acesso padrƒo para documento...";
$text["document_set_inherit"] = "Removendo ACL. Documento herdarß acesso...";
$text["document_set_not_inherit_copy"] = "Copiando lista de acesso...";
$text["document_set_not_inherit_empty"] = "Removendo acessos herdados. Iniciando com ACL vazia...";
$text["document_status"] = "Document Status";
$text["document_title"] = "Documento [documentname]";
$text["document_versions"] = "Todas as verses ";
$text["documents_in_process"] = "Documents In Process";
$text["documents_owned_by_user"] = "Documents Owned by User";
$text["documents_to_approve"] = "Documents Awaiting User's Approval";
$text["documents_to_review"] = "Documents Awaiting User's Review";
$text["documents_user_requiring_attention"] = "Documents Owned by User That Require Attention";
$text["does_not_expire"] = "Nƒo Expira";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">Inherit access</a>";
$text["download"] = "Download";
$text["draft_pending_approval"] = "Draft - pending approval";
$text["draft_pending_review"] = "Draft - pending review";
$text["edit"] = "edit";
$text["edit_default_keyword_category"] = "Editar categorias";
$text["edit_default_keywords"] = "Editar palavras-chave";
$text["edit_document"] = "Editar documento";
$text["edit_document_access"] = "Editar acesso";
$text["edit_document_notify"] = "Lista de notifica‡ƒo";
$text["edit_document_props"] = "Editar documento";
$text["edit_document_props_again"] = "Editar documento novamente";
$text["edit_existing_access"] = "Editar lista de acesso.";
$text["edit_existing_notify"] = "Editar lista de notifica‡ƒo";
$text["edit_folder"] = "Editar pasta";
$text["edit_folder_access"] = "Editar pasta";
$text["edit_folder_notify"] = "Lista de Notifica‡ƒo";
$text["edit_folder_props"] = "Editar pasta";
$text["edit_folder_props_again"] = "Editar pasta novamente";
$text["edit_group"] = "Editar grupo";
$text["edit_inherit_access"] = "Herda acesso";
$text["edit_personal_default_keywords"] = "Editar palavras-chave pessoais";
$text["edit_user"] = "Editar usußrio";
$text["edit_user_details"] = "Edit User Details";
$text["editing_default_keyword_category"] = "Mundando categoria...";
$text["editing_default_keywords"] = "Mundando palavras-chave...";
$text["editing_document_props"] = "Editando documento...";
$text["editing_folder_props"] = "Editando pasta...";
$text["editing_group"] = "Editando grupo...";
$text["editing_user"] = "Editando usußrio...";
$text["editing_user_data"] = "Edi‡ƒo defini‡es de usußrios...";
$text["email"] = "Email";
$text["email_err_group"] = "Error sending email to one or more members of this group.";
$text["email_err_user"] = "Error sending email to user.";
$text["email_sent"] = "Email sent";
$text["empty_access_list"] = "Lista de acesso estß vazia";
$text["empty_notify_list"] = "Sem entradas";
$text["error_adding_session"] = "Error occured while creating session.";
$text["error_occured"] = "Ocorreu um erro";
$text["error_removing_old_sessions"] = "Error occured while removing old sessions";
$text["error_updating_revision"] = "Error updating status of document revision.";
$text["exp_date"] = "Expira";
$text["expired"] = "Expired";
$text["expires"] = "Expira";
$text["file"] = "File";
$text["file_info"] = "File Information";
$text["file_size"] = "Tamanho";
$text["folder_access_again"] = "Editar acesso da pasta novamente";
$text["folder_add_access"] = "Adicionando elemento ß lista de acesso...";
$text["folder_contents"] = "Folders";
$text["folder_del_access"] = "Removendo elemento da lista de acesso...";
$text["folder_edit_access"] = "Editando acesso...";
$text["folder_infos"] = "Informa‡es";
$text["folder_notify_again"] = "Editar lista de notifica‡ƒo novamente";
$text["folder_overview"] = "Visualiza‡ƒo da Pasta";
$text["folder_path"] = "Caminho";
$text["folder_set_default_access"] = "Definindo modo de acesso padrƒo para a pasta...";
$text["folder_set_inherit"] = "Removendo ACL. Pasta will inherit access...";
$text["folder_set_not_inherit_copy"] = "Copiando lista de acesso...";
$text["folder_set_not_inherit_empty"] = "Removendo inherited access. Starting with empty ACL...";
$text["folder_title"] = "Pasta [foldername]";
$text["folders_and_documents_statistic"] = "Overview de pastas e documentos";
$text["foldertree"] = "Ârvore";
$text["from_approval_process"] = "from approval process";
$text["from_review_process"] = "from review process";
$text["global_default_keywords"] = "palavras-chave globais";
$text["goto"] = "Ir Para";
$text["group"] = "Grupo";
$text["group_already_approved"] = "An approval has already been submitted on behalf of group";
$text["group_already_reviewed"] = "A review has already been submitted on behalf of group";
$text["group_approvers"] = "Group Approvers";
$text["group_email_sent"] = "Email sent to group members";
$text["group_exists"] = "Group already exists.";
$text["group_management"] = "Gropos";
$text["group_members"] = "Grupo membros";
$text["group_reviewers"] = "Group Reviewers";
$text["group_unable_to_add"] = "Unable to add group";
$text["group_unable_to_remove"] = "Unable to remove group";
$text["groups"] = "Grupos";
$text["guest_login"] = "Entre como convidado";
$text["guest_login_disabled"] = "Guest login is disabled.";
$text["individual_approvers"] = "Individual Approvers";
$text["individual_reviewers"] = "Individual Reviewers";
$text["individuals"] = "Individuals";
$text["inherits_access_msg"] = "Acesso estß endo herdado.<p><a class=\"inheritAccess\" href=\"[copyurl]\">Copy inherited access-list</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">Inicie com a lista de acesso vazia</a>";
$text["internal_error"] = "Internal error";
$text["internal_error_exit"] = "Internal error. Unable to complete request. Exiting.";
$text["invalid_access_mode"] = "Invalid Access Mode";
$text["invalid_action"] = "Invalid Action";
$text["invalid_approval_status"] = "Invalid Approval Status";
$text["invalid_create_date_end"] = "Invalid end date for creation date range.";
$text["invalid_create_date_start"] = "Invalid start date for creation date range.";
$text["invalid_doc_id"] = "Invalid Document ID";
$text["invalid_folder_id"] = "Invalid Folder ID";
$text["invalid_group_id"] = "Invalid Group ID";
$text["invalid_link_id"] = "Invalid link identifier";
$text["invalid_review_status"] = "Invalid Review Status";
$text["invalid_sequence"] = "Invalid sequence value";
$text["invalid_status"] = "Invalid Document Status";
$text["invalid_target_doc_id"] = "Invalid Target Document ID";
$text["invalid_target_folder"] = "Invalid Target Folder ID";
$text["invalid_user_id"] = "Invalid User ID";
$text["invalid_version"] = "Invalid Document Version";
$text["is_admin"] = "Administrator Privilege";
$text["js_no_approval_group"] = "Please select a approval group";
$text["js_no_approval_status"] = "Please select the approval status";
$text["js_no_comment"] = "Nƒo hß comentßrio";
$text["js_no_email"] = "Digite seu endere‡o de e-mail";
$text["js_no_file"] = "Por favor selecione um arquivo";
$text["js_no_keywords"] = "Especifique algumas palavras-chave";
$text["js_no_login"] = "Por favor digite um usußrio";
$text["js_no_name"] = "Por favor digite um nome";
$text["js_no_pwd"] = "Ð necessßrio digitar sua senha";
$text["js_no_query"] = "Digite uma solicita‡ƒo";
$text["js_no_review_group"] = "Please select a review group";
$text["js_no_review_status"] = "Please select the review status";
$text["js_pwd_not_conf"] = "Senha e confirma‡ƒo de senha nƒo sƒo iguais";
$text["js_select_user"] = "Por favor selecione um usußrio";
$text["js_select_user_or_group"] = "Selecione, no m<>nimo, um usußrio ou grupo";
$text["keyword_exists"] = "Keyword already exists";
$text["keywords"] = "Palavras-chave";
$text["language"] = "Linguagem";
$text["last_update"] = "õltima versƒo";
$text["last_updated_by"] = "Last updated by";
$text["latest_version"] = "Latest Version";
$text["linked_documents"] = "Documentos relacionados";
$text["local_file"] = "Arquivo local";
$text["lock_document"] = "Travar";
$text["lock_message"] = "Este documento foi travado por <a href=\"mailto:[email]\">[username]</a>.<br>Somente usußrios autorizados podem remover a trava deste documento (veja no final da pßgina).";
$text["lock_status"] = "Status";
$text["locking_document"] = "Travando documento...";
$text["logged_in_as"] = "Conectado";
$text["login"] = "Login";
$text["login_error_text"] = "Error signing in. User ID or password incorrect.";
$text["login_error_title"] = "Sign in error";
$text["login_not_found"] = "Este usußrio nƒo existe";
$text["login_not_given"] = "No username has been supplied";
$text["login_ok"] = "Sign in successful";
$text["logout"] = "Sair";
$text["mime_type"] = "Mime-Type";
$text["move"] = "Move";
$text["move_document"] = "Mover documento";
$text["move_folder"] = "Mover Pasta";
$text["moving_document"] = "Movendo documento...";
$text["moving_folder"] = "Movendo pasta...";
$text["msg_document_expired"] = "O documento \"[documentname]\" (Path: \"[path]\") tem expirado em [expires]";
$text["msg_document_updated"] = "O documento \"[documentname]\" (Path: \"[path]\") foi criado ou atualizado em [updated]";
$text["my_account"] = "Minha Conta";
$text["my_documents"] = "My Documents";
$text["name"] = "Nome";
$text["new_default_keyword_category"] = "Adicionar categoria";
$text["new_default_keywords"] = "Adicionar palavras-chave";
$text["new_equals_old_state"] = "Warning: Proposed status and existing status are identical. No action required.";
$text["new_user_image"] = "Nova imagem";
$text["no"] = "No";
$text["no_action"] = "No action required";
$text["no_action_required"] = "n/a";
$text["no_active_user_docs"] = "There are currently no documents owned by the user that require review or approval.";
$text["no_approvers"] = "No approvers assigned.";
$text["no_default_keywords"] = "Nƒo hß palavras-chave dispon<6F>veis";
$text["no_docs_to_approve"] = "There are currently no documents that require approval.";
$text["no_docs_to_review"] = "There are currently no documents that require review.";
$text["no_document_links"] = "Sem documentos relacionados";
$text["no_documents"] = "Sem documentos";
$text["no_group_members"] = "Este grupo nƒo tem membros";
$text["no_groups"] = "Sem grupos";
$text["no_previous_versions"] = "No other versions found";
$text["no_reviewers"] = "No reviewers assigned.";
$text["no_subfolders"] = "Sem pastas";
$text["no_update_cause_locked"] = "Por isso vocŠ nƒo pode atualizar este documento. Por favor contacte usußrio que possui a trava.";
$text["no_user_image"] = "Nƒo foram encontardas imagens";
$text["not_approver"] = "User is not currently assigned as an approver of this document revision.";
$text["not_reviewer"] = "User is not currently assigned as a reviewer of this document revision.";
$text["notify_subject"] = "Documentos novos ou expirados em seu DMS";
$text["obsolete"] = "Obsolete";
$text["old_folder"] = "old folder";
$text["only_jpg_user_images"] = "Somente imagens jpg podem ser utilizadas como imagens de usußrios";
$text["op_finished"] = "Feito";
$text["operation_not_allowed"] = "VocŠ nƒo tem direitos suficientes para fazer isto";
$text["override_content_status"] = "Override Status";
$text["override_content_status_complete"] = "Override Status Complete";
$text["override_privilege_insufficient"] = "Access denied. Privileges insufficient to override the status of this document.";
$text["overview"] = "Overview";
$text["owner"] = "Proprietßrio";
$text["password"] = "Senha";
$text["pending_approval"] = "Documents pending approval";
$text["pending_review"] = "Documents pending review";
$text["personal_default_keywords"] = "palavras-chave pessoais";
$text["previous_versions"] = "Previous Versions";
$text["rejected"] = "Rejected";
$text["released"] = "Released";
$text["remove_document_link"] = "Remove link";
$text["remove_member"] = "Remove membro";
$text["removed_approver"] = "has been removed from the list of approvers.";
$text["removed_reviewer"] = "has been removed from the list of reviewers.";
$text["removing_default_keyword_category"] = "Apagando categoria...";
$text["removing_default_keywords"] = "Apagando palavras-chave...";
$text["removing_document"] = "Removendo documento...";
$text["removing_document_link"] = "Removendo link ao documento relacionado...";
$text["removing_folder"] = "Removendo pasta...";
$text["removing_group"] = "Removendo grupo do sistema...";
$text["removing_member"] = "Removendo membro do grupo...";
$text["removing_user"] = "Removendo usußrio do sistema ...";
$text["removing_version"] = "Removendo versƒo [version]...";
$text["review_document"] = "Review Document";
$text["review_document_complete"] = "Review Document: Complete";
$text["review_document_complete_records_updated"] = "Document review completed and records updated";
$text["review_group"] = "Review Group";
$text["review_status"] = "Review Status";
$text["review_summary"] = "Review Summary";
$text["review_update_failed"] = "Error updating review status. Update failed.";
$text["reviewer_added"] = "added as a reviewer";
$text["reviewer_already_assigned"] = "is already assigned as a reviewer";
$text["reviewer_already_removed"] = "has already been removed from review process or has already submitted a review";
$text["reviewer_no_privilege"] = "is not sufficiently privileged to review this document";
$text["reviewer_removed"] = "removed from review process";
$text["reviewers"] = "Reviewers";
$text["rm_default_keyword_category"] = "Apague esta categoria";
$text["rm_default_keywords"] = "Apagar palavras-chave";
$text["rm_document"] = "Remove documento";
$text["rm_folder"] = "Remove pasta";
$text["rm_group"] = "Remove este grupo";
$text["rm_user"] = "Remove este usußrio";
$text["rm_version"] = "Remove versƒo";
$text["root_folder"] = "Pasta Raiz";
$text["save"] = "Salvar";
$text["search"] = "Busca";
$text["search_in"] = "Busca em ";
$text["search_in_all"] = "todas as pastas";
$text["search_in_current"] = "somente esta ([foldername]) incluindo sub-pastas";
$text["search_mode"] = "Modo";
$text["search_mode_and"] = "todas as palavras";
$text["search_mode_or"] = "at least one word";
$text["search_no_results"] = "Nƒo hß documento que satisfa‡am sua busca";
$text["search_query"] = "Busca por";
$text["search_report"] = "Encontrados [count] documentos";
$text["search_result_pending_approval"] = "status 'pending approval'";
$text["search_result_pending_review"] = "status 'pending review'";
$text["search_results"] = "Resultados da busca";
$text["search_results_access_filtered"] = "Search results may contain content to which access has been denied.";
$text["search_time"] = "Tempo decorrido: [time] sec.";
$text["select_one"] = "Selecione um";
$text["selected_document"] = "Documento selecionado";
$text["selected_folder"] = "Pasta selecionada";
$text["selection"] = "Selection";
$text["seq_after"] = "Depois \"[prevname]\"";
$text["seq_end"] = "No final";
$text["seq_keep"] = "Manter posi‡ƒo";
$text["seq_start"] = "Primeira posi‡ƒo";
$text["sequence"] = "SeqŠncia";
$text["set_default_access"] = "Set Default Access Mode";
$text["set_expiry"] = "Set Expiry";
$text["set_owner"] = "Define proprietßrio";
$text["set_reviewers_approvers"] = "Assign Reviewers and Approvers";
$text["setting_expires"] = "Definindo expira‡ƒo...";
$text["setting_owner"] = "Definindo proprietßrio...";
$text["setting_user_image"] = "<br>SDefinindo imagem para usußrio...";
$text["show_all_versions"] = "Show All Revisions";
$text["show_current_versions"] = "Show Current";
$text["start"] = "Desde";
$text["status"] = "Status";
$text["status_approval_rejected"] = "Draft rejected";
$text["status_approved"] = "Approved";
$text["status_approver_removed"] = "Approver removed from process";
$text["status_change_summary"] = "Document revision changed from status '[oldstatus]' to status '[newstatus]'.";
$text["status_changed_by"] = "Status changed by";
$text["status_not_approved"] = "Not approved";
$text["status_not_reviewed"] = "Not reviewed";
$text["status_reviewed"] = "Reviewed";
$text["status_reviewer_rejected"] = "Draft rejected";
$text["status_reviewer_removed"] = "Reviewer removed from process";
$text["status_unknown"] = "Unknown";
$text["subfolder_list"] = "Sub-pastas";
$text["submit_approval"] = "Submit approval";
$text["submit_login"] = "Sign in";
$text["submit_review"] = "Submit review";
$text["theme"] = "Tema";
$text["unable_to_add"] = "Unable to add";
$text["unable_to_remove"] = "Unable to remove";
$text["under_folder"] = "Na pasta";
$text["unknown_command"] = "Command not recognized.";
$text["unknown_group"] = "Unknown group id";
$text["unknown_keyword_category"] = "Unknown category";
$text["unknown_owner"] = "Unknown owner id";
$text["unknown_user"] = "Unknown user id";
$text["unlock_cause_access_mode_all"] = "VocŠ pode atualizß-lo, porque voc tem mode de acesso \"all\". Trava serß automaticamente removida.";
$text["unlock_cause_locking_user"] = "VocŠ pode pode atualizß-lo, porque vocŠ o travou tamb‰m. Trava serß automaticamente removida.";
$text["unlock_document"] = "Remover trava";
$text["unlocking_denied"] = "VocŠ nƒo tem permisses suficientes para remover a trava deste documento";
$text["unlocking_document"] = "Destravando documento...";
$text["update"] = "Update";
$text["update_approvers"] = "Update List of Approvers";
$text["update_document"] = "Atualizar";
$text["update_info"] = "Update Information";
$text["update_locked_msg"] = "Este documento estß trabado.";
$text["update_reviewers"] = "Update List of Reviewers";
$text["update_reviewers_approvers"] = "Update List of Reviewers and Approvers";
$text["updated_by"] = "Updated by";
$text["updating_document"] = "Atualizando documento...";
$text["upload_date"] = "Data de inser‡ƒo";
$text["uploaded"] = "Uploaded";
$text["uploaded_by"] = "Inserido por";
$text["uploading_failed"] = "Inser‡ƒo falhou. Por favor contacte o administrador";
$text["use_default_keywords"] = "Use palavras-chave pr‰-definidas";
$text["user"] = "Usußrio";
$text["user_already_approved"] = "User has already submitted an approval of this document version";
$text["user_already_reviewed"] = "User has already submitted a review of this document version";
$text["user_approval_not_required"] = "No document approval required of user at this time.";
$text["user_exists"] = "User already exists.";
$text["user_image"] = "Imagem";
$text["user_info"] = "User Information";
$text["user_list"] = "Lista de Usußrios";
$text["user_login"] = "Usußrio";
$text["user_management"] = "Usußrios";
$text["user_name"] = "Nome Completo";
$text["user_removed_approver"] = "User has been removed from the list of individual approvers.";
$text["user_removed_reviewer"] = "User has been removed from the list of individual reviewers.";
$text["user_review_not_required"] = "No document review required of user at this time.";
$text["users"] = "Usußrios";
$text["version"] = "Versƒo";
$text["version_info"] = "Version Information";
$text["version_under_approval"] = "Version under approval";
$text["version_under_review"] = "Version under review";
$text["view_document"] = "View Document";
$text["view_online"] = "Ver on-line";
$text["warning"] = "Warning";
$text["wrong_pwd"] = "Sua senha estß incorreta. Tente novamente.";
$text["yes"] = "Yes";
// New as of 1.7.1. Require updated translation.
$text["documents"] = "Documents";
$text["folders"] = "Folders";
$text["no_folders"] = "No folders";
$text["notification_summary"] = "Notification Summary";
// New as of 1.7.2
$text["all_pages"] = "All";
$text["results_page"] = "Results Page";
// New
$text["sign_out"] = "sign out";
$text["signed_in_as"] = "Signed in as";
$text["assign_reviewers"] = "Assign Reviewers";
$text["assign_approvers"] = "Assign Approvers";
$text["override_status"] = "Override Status";
$text["change_status"] = "Change Status";
$text["change_assignments"] = "Change Assignments";
$text["no_user_docs"] = "There are currently no documents owned by the user";
$text["disclaimer"] = "This is a classified area. Access is permitted only to authorized personnel. Any violation will be prosecuted according to the english and international laws.";
$text["backup_tools"] = "Backup tools";
$text["versioning_file_creation"] = "Versioning file creation";
$text["archive_creation"] = "Archive creation";
$text["files_deletion"] = "Files deletion";
$text["folder"] = "Folder";
$text["unknown_id"] = "unknown id";
$text["help"] = "Help";
$text["versioning_info"] = "Versioning info";
$text["versioning_file_creation_warning"] = "With this operation you can create a file containing the versioning information of an entire DMS folder. After the creation every file will be saved inside the document folder.";
$text["archive_creation_warning"] = "With this operation you can create achive containing the files of entire DMS folders. After the creation the archive will be saved in the data folder of your server.<br>WARNING: an archive created as human readable will be unusable as server backup.";
$text["files_deletion_warning"] = "With this option you can delete all files of entire DMS folders. The versioning information will remain visible.";
$text["backup_list"] = "Existings backup list";
$text["backup_remove"] = "Remove backup file";
$text["confirm_rm_backup"] = "Do you really want to remove the file \"[arkname]\"?<br>Be careful: This action cannot be undone.";
$text["document_deleted"] = "Document deleted";
$text["linked_files"] = "Attachments";
$text["invalid_file_id"] = "Invalid file ID";
$text["rm_file"] = "Remove file";
$text["confirm_rm_file"] = "Do you really want to remove file \"[name]\" of document \"[documentname]\"?<br>Be careful: This action cannot be undone.";
$text["edit_comment"] = "Edit comment";
// new from 1.9
$text["is_hidden"] = "Hide from users list";
$text["log_management"] = "Log files management";
$text["confirm_rm_log"] = "Do you really want to remove log file \"[logname]\"?<br>Be careful: This action cannot be undone.";
$text["include_subdirectories"] = "Include subdirectories";
$text["include_documents"] = "Include documents";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Toggle manager";
// new from 2.0
$text["calendar"] = "Calendar";
$text["week_view"] = "Week view";
$text["month_view"] = "Month view";
$text["year_view"] = "Year View";
$text["add_event"] = "Add event";
$text["edit_event"] = "Edit event";
$text["january"] = "January";
$text["february"] = "February";
$text["march"] = "March";
$text["april"] = "April";
$text["may"] = "May";
$text["june"] = "June";
$text["july"] = "July";
$text["august"] = "August";
$text["september"] = "September";
$text["october"] = "October";
$text["november"] = "November";
$text["december"] = "December";
$text["sunday"] = "Sunday";
$text["monday"] = "Monday";
$text["tuesday"] = "Tuesday";
$text["wednesday"] = "Wednesday";
$text["thursday"] = "Thursday";
$text["friday"] = "Friday";
$text["saturday"] = "Saturday";
$text["from"] = "From";
$text["to"] = "To";
$text["event_details"] = "Event details";
$text["confirm_rm_event"] = "Do you really want to remove event \"[name]\"?<br>Be careful: This action cannot be undone.";
$text["dump_creation"] = "DB dump creation";
$text["dump_creation_warning"] = "With this operation you can create a dump file of your database content. After the creation the dump file will be saved in the data folder of your server.";
$text["dump_list"] = "Existings dump files";
$text["dump_remove"] = "Remove dump file";
$text["confirm_rm_dump"] = "Do you really want to remove the file \"[dumpname]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_user"] = "Do you really want to remove the user \"[username]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_group"] = "Do you really want to remove the group \"[groupname]\"?<br>Be careful: This action cannot be undone.";
$text["human_readable"] = "Human readable archive";
$text["email_header"] = "This is an automatic message from the DMS server.";
$text["email_footer"] = "You can always change your e-mail settings using 'My Account' functions";
$text["add_multiple_files"] = "Add multiple files (will use filename as document name)";
// new from 2.0.1
$text["max_upload_size"] = "Maximum upload size for each file";
?>

View File

@ -0,0 +1,7 @@
<h1>TODO</h1>

565
languages/Slovak/lang.inc Normal file
View File

@ -0,0 +1,565 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006 Malcolm Cowe
// Copyright (C) 2008 Ivan Masár
// Copyright (C) 2010 Peter Nemšák
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$text = array();
$text["accept"] = "Prijať";
$text["access_denied"] = "Prístup zamietnutý.";
$text["access_inheritance"] = "Dedičnosť prístupu";
$text["access_mode"] = "Režim prístupu";
$text["access_mode_all"] = "Každý";
$text["access_mode_none"] = "Žiadny prístup";
$text["access_mode_read"] = "Na čítanie";
$text["access_mode_readwrite"] = "Na čítanie aj zápis";
$text["account_summary"] = "Zhrnutie účtu";
$text["action_summary"] = "Zhrnutie činností";
$text["actions"] = "Činnosti";
$text["add"] = "Pridať";
$text["add_access"] = "Pridať prístup";
$text["add_doc_reviewer_approver_warning"] = "Pozn.: Dokumenty sa automaticky označia ako vydané ak nie je pridelený žiadny kontrolór alebo schvaľovateľ.";
$text["add_document"] = "Pridať dokument";
$text["add_document_link"] = "Pridať odkaz";
$text["add_group"] = "Pridať novú skupinu";
$text["add_link"] = "Vytvoriť odkaz";
$text["add_member"] = "Pridať člena";
$text["add_new_notify"] = "Pridať nové upozornenia";
$text["add_subfolder"] = "Pridať podzložku";
$text["add_user"] = "Pridať nového používatela";
$text["admin"] = "Správca";
$text["admin_tools"] = "Nástroje správcu";
$text["all_documents"] = "Všetky dokumenty";
$text["all_pages"] = "Všetky";
$text["all_users"] = "Všetci používatelia";
$text["and"] = "a";
$text["approval_group"] = "Skupina schválenia";
$text["approval_status"] = "Stav schválenia";
$text["approval_summary"] = "Zhrnutie schválenia";
$text["approval_update_failed"] = "Chyba pri aktualizácii stavu schválenia. Aktualizácia zlyhala.";
$text["approve_document"] = "Schváliť dokument";
$text["approve_document_complete"] = "Schváliť dokument: Hotovo";
$text["approve_document_complete_records_updated"] = "Schválenie dokumentu bolo dokončené a záznamy aktualizované";
$text["approver_added"] = "pridaný ako schvaľovateľ";
$text["approver_already_assigned"] = "už je pridelený ako schvaľovateľ";
$text["approver_already_removed"] = "bol odstránený z procesu schvaľovania alebo už poslal schválenie";
$text["approver_no_privilege"] = "nemá dostatočné oprávnenie na schválenie tohto dokumentu";
$text["approver_removed"] = "bol odstránený z procesu schvaľovania";
$text["approvers"] = "Schvaľovatelia";
$text["as_approver"] = "ako schvaľovateľ";
$text["as_reviewer"] = "ako kontrolór";
$text["assign_privilege_insufficient"] = "Prístup zamietnutý. Nedostatočné oprávnenie na pridelenie kontrolórov k tomuto dokumentu.";
$text["assumed_released"] = "Pokladá sa za zverejnené";
$text["back"] = "Prejsť späť";
$text["between"] = "medzi";
$text["cancel"] = "Zrušiť";
$text["cannot_approve_pending_review"] = "Dokument momentálne čaká na kontrolu. Momentálne nie je možné poslať schválenie.";
$text["cannot_assign_invalid_state"] = "Nie je možné prideliť schvaľovateľov dokumentu, ktorý nečaká na kontrolu alebo schválenie.";
$text["cannot_change_final_states"] = "Upozornenie: Nebolo možné zmeniť stav dokumentov, ktoré boli odmietnuté, označené ako zastaralé alebo platnosť vypršala.";
$text["cannot_delete_admin"] = "Nie je možné zmazať primárneho správcu.";
$text["cannot_move_root"] = "Chyba: Nie je možné presunúť koreňovú zložku.";
$text["cannot_retrieve_approval_snapshot"] = "Nie je možné získať informáciu o stave schválenia tejto verzie dokumentu.";
$text["cannot_retrieve_review_snapshot"] = "Nie je možné získať informáciu o stave kontroly tejto verzie dokumentu.";
$text["cannot_rm_root"] = "Chyba: Nie je možné zmazať koreňovú zložku.";
$text["choose_category"] = "--Vyberte prosím--";
$text["choose_group"] = "--Vyberte skupinu--";
$text["choose_target_document"] = "Vyberte dokument";
$text["choose_target_folder"] = "Vyberte cieľovú zložku";
$text["choose_user"] = "--Vyberte používateľa--";
$text["comment"] = "Komentár";
$text["comment_for_current_version"] = "Komentár k aktuálnej verzii";
$text["confirm_pwd"] = "Potvrdenie hesla";
$text["confirm_rm_document"] = "Naozaj chcete odstrániť dokument \"[documentname]\"?<br>Buďte opatrní: Túto činnosť nemožno vrátiť späť.";
$text["confirm_rm_folder"] = "Naozaj chcete odstrániť \"[foldername]\" a jeho obsah?<br>Buďte opatrní: Túto činnosť nemožno vrátiť späť.";
$text["confirm_rm_version"] = "Naozaj chcete odstrániť verziu [version] dokumentu \"[documentname]\"?<br>Buďte opatrní: Túto činnosť nemožno vrátiť späť.";
$text["content"] = "Obsah";
$text["continue"] = "Pokračovať";
$text["creation_date"] = "Vytvorené";
$text["current_version"] = "Aktuálna verzia";
$text["default_access"] = "Štandardný režim prístupu";
$text["default_keyword_category"] = "Kategórie";
$text["default_keyword_category_name"] = "Názov";
$text["default_keywords"] = "Dostupné kľúčové slová";
$text["delete"] = "Zmazať";
$text["details"] = "Podrobnosti";
$text["details_version"] = "Podrobnosti verzie: [version]";
$text["document"] = "Dokument";
$text["document_access_again"] = "Znova upraviť prístup k dokumentu";
$text["document_already_locked"] = "Tento dokument je už zamknutý";
$text["document_infos"] = "Informácie o dokumente";
$text["document_is_not_locked"] = "Tento dokument nie je zamknutý";
$text["document_link_by"] = "Odkazuje sem";
$text["document_link_public"] = "Verejný";
$text["document_list"] = "Dokumenty";
$text["document_notify_again"] = "Znova upraviť zoznam upozornení";
$text["document_overview"] = "Prehľad dokumentu";
$text["document_status"] = "Stav dokumentu";
$text["document_title"] = "Dokument '[documentname]'";
$text["document_versions"] = "Všetky verzie";
$text["documents"] = "Dokumenty";
$text["documents_in_process"] = "Dokumenty v spracovaní";
$text["documents_owned_by_user"] = "Dokumenty tohto používateľa";
$text["documents_to_approve"] = "Dokumenty čakajúce na schválenie používateľa";
$text["documents_to_review"] = "Dokumenty čakajúce na kontrolu používateľa";
$text["documents_user_requiring_attention"] = "Dokumenty, ktoré používateľ vlastní a vyžadujú pozornosť";
$text["does_not_expire"] = "Platnosť nikdy nevyprší";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">Zdediť prístup</a>";
$text["download"] = "Stiahnuť";
$text["draft_pending_approval"] = "Návrh - čaká na schválenie";
$text["draft_pending_review"] = "Návrh - čaká na kontrolu";
$text["edit"] = "upraviť";
$text["edit_default_keyword_category"] = "Upraviť kategórie";
$text["edit_default_keywords"] = "Upraviť kľúčové slová";
$text["edit_document"] = "Upraviť dokument";
$text["edit_document_access"] = "Upraviť prístup";
$text["edit_document_notify"] = "Zoznam upozornení";
$text["edit_document_props"] = "Upraviť dokument";
$text["edit_document_props_again"] = "Znova upraviť dokument";
$text["edit_existing_access"] = "Upraviť zoznam riadenia prístupu";
$text["edit_existing_notify"] = "Upraviť zoznam upozornení";
$text["edit_folder"] = "Upraviť zložku";
$text["edit_folder_access"] = "Upraviť prístup";
$text["edit_folder_notify"] = "Zoznam upozornení";
$text["edit_folder_props"] = "Upraviť vlastnosti zložky";
$text["edit_folder_props_again"] = "Znova upraviť vlastnosti zložky";
$text["edit_group"] = "Upraviť skupinu";
$text["edit_inherit_access"] = "Zdediť prístup";
$text["edit_personal_default_keywords"] = "Upraviť osobné kľúčové slová";
$text["edit_user"] = "Upraviť používateľa";
$text["edit_user_details"] = "Upraviť podrobnosti používateľa";
$text["email"] = "Email";
$text["email_err_group"] = "Chyba pri posielaní emailu jednému alebo viacerým členom tejto skupiny.";
$text["email_err_user"] = "Chyba pri posielaní emailu používateľovi.";
$text["email_sent"] = "Email odoslaný";
$text["empty_access_list"] = "Zoznam riadenia prístupu je prázdny";
$text["empty_notify_list"] = "Žiadne položky";
$text["error_adding_session"] = "Pri vytváraní relácie sa vyskytla chyba.";
$text["error_occured"] = "Vyskytla sa chyba";
$text["error_removing_old_sessions"] = "Vyskytla sa chyba pri odstraňovaní starých relácií";
$text["error_updating_revision"] = "Chyba pri aktualizácii stavu revízie dokumentu.";
$text["exp_date"] = "Platnosť vyprší";
$text["expired"] = "Platnosť vypršala";
$text["expires"] = "Platnosť vyprší";
$text["file"] = "Súbor";
$text["file_info"] = "Informácie o súbore";
$text["file_size"] = "Veľkosť súboru";
$text["folder_access_again"] = "Znova upraviť prístup k zložke";
$text["folder_contents"] = "Obsah zložky";
$text["folder_infos"] = "Informácie o zložke";
$text["folder_notify_again"] = "Znova upraviť zoznam upozornení zložky";
$text["folder_overview"] = "Prehľad zložky";
$text["folder_path"] = "Cesta";
$text["folder_title"] = "Zložka '[foldername]'";
$text["folders"] = "Zložky";
$text["folders_and_documents_statistic"] = "Prehľad zložiek a dokumentov";
$text["foldertree"] = "Strom zložiek";
$text["from_approval_process"] = "z procesu schválenia";
$text["from_review_process"] = "z procesu kontroly";
$text["global_default_keywords"] = "Globálne kľúčové slová";
$text["goto"] = "Prejsť na";
$text["group"] = "Skupina";
$text["group_already_approved"] = "V mene skupiny už bolo odoslané schválenie";
$text["group_already_reviewed"] = "V mene skupiny už bola odoslaná kontrola";
$text["group_approvers"] = "Schvaľovatelia skupiny";
$text["group_email_sent"] = "Email odoslaný členom skupiny";
$text["group_exists"] = "Skupina už existuje.";
$text["group_management"] = "Skupiny";
$text["group_members"] = "Členovia skupiny";
$text["group_reviewers"] = "Kontrolóri skupiny";
$text["group_unable_to_add"] = "Nebolo možné pridať skupinu";
$text["group_unable_to_remove"] = "Nebolo možné odstrániť skupinu";
$text["groups"] = "Skupiny";
$text["guest_login"] = "Prihlásiť sa ako hosť";
$text["guest_login_disabled"] = "Prihlásenie ako hosť je vypnuté.";
$text["individual_approvers"] = "Jednotliví schvaľovatelia";
$text["individual_reviewers"] = "Jednotliví kontrolóri";
$text["individuals"] = "Jednotlivci";
$text["inherits_access_msg"] = "Prístup sa dedí.<p><a class=\"inheritAccess\" href=\"[copyurl]\">Skopírovať zdedený zoznam riadenia prístupu</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">Založiť nový zoznam riadenia prístupu</a>";
$text["internal_error"] = "Vnútorná chyba";
$text["internal_error_exit"] = "Vnútorná chyba. Nebolo možné dokončiť požiadavku. Ukončuje sa.";
$text["invalid_access_mode"] = "Neplatný režim prístupu";
$text["invalid_action"] = "Neplatná činnosť";
$text["invalid_approval_status"] = "Neplatný stav schválenia";
$text["invalid_create_date_end"] = "Neplatný koncový dátum vytvorenia.";
$text["invalid_create_date_start"] = "Neplatný počiatočný dátum vytvorenia.";
$text["invalid_doc_id"] = "Neplatný ID dokumentu";
$text["invalid_folder_id"] = "Neplatný ID zložky";
$text["invalid_group_id"] = "Neplatný ID skupiny";
$text["invalid_link_id"] = "Neplatný ID odkazu";
$text["invalid_review_status"] = "Neplatný stav kontroly";
$text["invalid_sequence"] = "Neplatná hodnota postupnosti";
$text["invalid_status"] = "Neplatný stav dokumentu";
$text["invalid_target_doc_id"] = "Neplatné cieľové ID dokumentu";
$text["invalid_target_folder"] = "Neplatné cieľové ID zložky";
$text["invalid_user_id"] = "Neplatné ID používateľa";
$text["invalid_version"] = "Neplatná verzia dokumentu";
$text["is_admin"] = "Oprávnenie správcu";
$text["js_no_approval_group"] = "Prosím, vyberte skupinu pre schválenie";
$text["js_no_approval_status"] = "Prosím, vyberte stav schválenia";
$text["js_no_comment"] = "Žiadny komentár";
$text["js_no_email"] = "Napíšte svoju emailovú adresu";
$text["js_no_file"] = "Prosím, vyberte súbor";
$text["js_no_keywords"] = "Zadajte nejaké kľúčové slová";
$text["js_no_login"] = "Prosím, napíšte meno používateľa";
$text["js_no_name"] = "Prosím, napíšte meno";
$text["js_no_override_status"] = "Prosím, vyberte nový stav [prepíše sa]";
$text["js_no_pwd"] = "Budete musieť napísať svoje heslo";
$text["js_no_query"] = "Napíšte požiadavku";
$text["js_no_review_group"] = "Prosím, vyberte skupinu pre kontrolu";
$text["js_no_review_status"] = "Prosím, vyberte stav kontroly";
$text["js_pwd_not_conf"] = "Heslo a potvrdenie hesla sa nezhodujú";
$text["js_select_user"] = "Prosím, vyberte používateľa";
$text["js_select_user_or_group"] = "Vyberte aspoň používateľa alebo skupinu";
$text["keyword_exists"] = "Kľúčové slovo už existuje";
$text["keywords"] = "Kľúčové slová";
$text["language"] = "Jazyk";
$text["last_update"] = "Posledná aktualizácia";
$text["last_updated_by"] = "Naposledy aktualizoval";
$text["latest_version"] = "Posledná verzia";
$text["linked_documents"] = "Súvisiace dokumenty";
$text["local_file"] = "Lokálny súbor";
$text["lock_document"] = "Zamknúť";
$text["lock_message"] = "Tento dokument zamkol <a href=\"mailto:[email]\">[username]</a>.<br>Iba oprávnení používatelia ho môžu odomknúť (pozri koniec stránky).";
$text["lock_status"] = "Stav";
$text["logged_in_as"] = "Prihlásený";
$text["login"] = "Prihlásiť sa";
$text["login_error_text"] = "Chyba pri prihlasovaní. ID používateľa alebo heslo je nesprávne.";
$text["login_error_title"] = "Chyba pri prihlasovaní";
$text["login_not_found"] = "Toto používateľské meno neexistuje";
$text["login_not_given"] = "Nebolo zadané používateľské meno";
$text["login_ok"] = "Prihlásenie prebehlo úspešne";
$text["logout"] = "Odhlásenie";
$text["mime_type"] = "Mime-Type";
$text["move"] = "Presunúť";
$text["move_document"] = "Presunúť dokument";
$text["move_folder"] = "Presunúť zložku";
$text["msg_document_expired"] = "Platnosť dokumentu \"[documentname]\" (Cesta: \"[path]\") vypršala [expires]";
$text["msg_document_updated"] = "Dokument \"[documentname]\" (Cesta: \"[path]\") bol vytvorený alebo aktualizovaný [updated]";
$text["my_account"] = "Môj účet";
$text["my_documents"] = "Moje dokumenty";
$text["name"] = "Meno";
$text["new_default_keyword_category"] = "Pridať kategóriu";
$text["new_default_keywords"] = "Pridať kľúčové slová";
$text["new_equals_old_state"] = "Upozornenie: Navrhovaný stav a súčasný stav sú zhodné. Nič sa nevykoná.";
$text["new_user_image"] = "Nový obrázok";
$text["no"] = "Nie";
$text["no_action"] = "Nič sa nevykoná";
$text["no_action_required"] = "n/a";
$text["no_active_user_docs"] = "Momentálne neexistujú žiadne dokumenty tohto používateľa, ktoré vyžadujú kontrolu alebo schválenie.";
$text["no_approvers"] = "Neboli pridelení žiadni schvaľovatelia.";
$text["no_default_keywords"] = "Nie sú dostupné žiadne kľúčové slová.";
$text["no_docs_to_approve"] = "Momentálne neexistujú žiadne dokumenty, ktoré vyžadujú schválenie.";
$text["no_docs_to_review"] = "Momentálne neexistujú žiadne dokumenty, ktoré vyžadujú kontrolu.";
$text["no_document_links"] = "Žiadne súvisiace dokumenty";
$text["no_documents"] = "Žiadne dokumenty";
$text["no_folders"] = "Žiadne zložky";
$text["no_group_members"] = "Táto skupina nemá žiadnych členov";
$text["no_groups"] = "Žiadne skupiny";
$text["no_previous_versions"] = "Neboli nájdené žiadne iné verzie";
$text["no_reviewers"] = "Neboli pridelení žiadni kontrolóri.";
$text["no_subfolders"] = "Žiadne podzložky";
$text["no_update_cause_locked"] = "Preto nemôžete aktualizovať tento dokument. Prosím, kontaktujte používateľa, ktorý ho zamkol.";
$text["no_user_image"] = "nebol nájdený žiadny obrázok";
$text["not_approver"] = "Používateľ momentálne nie je pridelený ako schvaľovateľ tejto revízie dokumentu.";
$text["not_reviewer"] = "Používateľ momentálne nie je pridelený ako kontrolór tejto revízie dokumentu.";
$text["notification_summary"] = "Notification summary";
$text["notify_subject"] = "Nové alebo expirované dokumenty vo vašom systéme";
$text["obsolete"] = "Zastaralé";
$text["old_folder"] = "Stará zložka";
$text["only_jpg_user_images"] = "Ako obrázky používateľov je možné použiť iba obrázky .jpg";
$text["op_finished"] = "Hotovo";
$text["operation_not_allowed"] = "na to nemáte dostatočné oprávnenie";
$text["override_content_status"] = "Prepísať stav";
$text["override_content_status_complete"] = "Prepísanie stavu dokončené";
$text["override_privilege_insufficient"] = "Prístup zamietnutý. Nedostatočné oprávnenie na prepísanie stavu tohto dokumentu.";
$text["overview"] = "Prehľad";
$text["owner"] = "Vlastník";
$text["password"] = "Heslo";
$text["pending_approval"] = "Dokumenty čakajúce na schválenie";
$text["pending_review"] = "Dokumenty čakajúce na kontrolu";
$text["personal_default_keywords"] = "Osobné kľúčové slová";
$text["previous_versions"] = "Predošlé verzie";
$text["rejected"] = "Odmietnuté";
$text["released"] = "Vydané";
$text["remove_document_link"] = "Odstrániť odkaz";
$text["remove_member"] = "Odstrániť člena";
$text["removed_approver"] = "bol odstránený zo zoznamu schvaľovateľov.";
$text["removed_reviewer"] = "bol odstránený zo zoznamu kontrolórov.";
$text["results_page"] = "Výsledky";
$text["review_document"] = "Skontrolovať dokument";
$text["review_document_complete"] = "Kontrola dokumentu: Dokončená";
$text["review_document_complete_records_updated"] = "Kontrola dokumentu bola dokončená a záznamy aktualizované";
$text["review_group"] = "Skupina kontroly";
$text["review_status"] = "Stav kontroly";
$text["review_summary"] = "Zhrnutie kontroly";
$text["review_update_failed"] = "Chyba pri aktualizácii stavu kontroly. Aktualizácia zlyhala.";
$text["reviewer_added"] = "pridaný ako kontrolór";
$text["reviewer_already_assigned"] = "je už poverený ako kontrolór";
$text["reviewer_already_removed"] = "už bol odstránený z procesu kontroly alebo poslal kontrolu";
$text["reviewer_no_privilege"] = "nemá dostatočné oprávnenie na kontrolu tohto dokumentu";
$text["reviewer_removed"] = "odstránený z procesu kontroly";
$text["reviewers"] = "Kontrolóri";
$text["rm_default_keyword_category"] = "Zmazať kategóriu";
$text["rm_default_keywords"] = "Zmazať kľúčové slová";
$text["rm_document"] = "Odstrániť dokument";
$text["rm_folder"] = "Odstrániť zložku";
$text["rm_group"] = "Odstrániť túto skupinu";
$text["rm_user"] = "Odstrániť tohto používateľa";
$text["rm_version"] = "Odstrániť verziu";
$text["root_folder"] = "Koreňová zložka";
$text["save"] = "Uložiť";
$text["search"] = "Hľadať";
$text["search_in"] = "Prehľadávať";
$text["search_in_all"] = "všetky zložky";
$text["search_in_current"] = "iba tento ([foldername]) vrátane podzložiek";
$text["search_mode"] = "Režim";
$text["search_mode_and"] = "všetky slová";
$text["search_mode_or"] = "aspoň jedno zo slov";
$text["search_no_results"] = "Vašej požiadavke nevyhovujú žiadne dokumenty ";
$text["search_query"] = "Hľadať";
$text["search_report"] = "Nájdených [count] dokumentov";
$text["search_result_pending_approval"] = "stav 'čaká na schválenie'";
$text["search_result_pending_review"] = "stav 'čaká na kontrolu'";
$text["search_results"] = "Výsledky hľadania";
$text["search_results_access_filtered"] = "Výsledky hľadania môžu obsahovať obsah, ku ktorému bol zamietnutý prístup.";
$text["search_time"] = "Uplynulý čas: [time] sek";
$text["select_one"] = "Vyberte jeden";
$text["selected_document"] = "Vybraný dokument";
$text["selected_folder"] = "Vybraná zložka";
$text["selection"] = "Výber";
$text["seq_after"] = "Po \"[prevname]\"";
$text["seq_end"] = "Na koniec";
$text["seq_keep"] = "Ponechať pozíciu";
$text["seq_start"] = "Prvá pozícia";
$text["sequence"] = "Postupnosť";
$text["set_default_access"] = "Nastaviť štandardný režim prístupu";
$text["set_expiry"] = "Nastaviť vypršanie";
$text["set_owner"] = "Nastaviť vlastníka";
$text["set_reviewers_approvers"] = "Poveriť kontrolórov a schvaľovateľov";
$text["show_all_versions"] = "Zobraziť všetky revízie";
$text["show_current_versions"] = "Zobraziť aktuálne";
$text["start"] = "Začiatok";
$text["status"] = "Stav";
$text["status_approval_rejected"] = "Návrh zamietnutý";
$text["status_approved"] = "Schválený";
$text["status_approver_removed"] = "Schvaľovateľ odstránený z procesu";
$text["status_change_summary"] = "Revízia dokumentu sa zmenila zo stavu '[oldstatus]' na stav '[newstatus]'.";
$text["status_changed_by"] = "Stav zmenil ";
$text["status_not_approved"] = "Neschválený";
$text["status_not_reviewed"] = "Neskontrolovaný";
$text["status_reviewed"] = "Skontrolovaný";
$text["status_reviewer_rejected"] = "Návrh zamietnutý";
$text["status_reviewer_removed"] = "Kontrolór odstránený z procesu";
$text["status_unknown"] = "Neznámy";
$text["subfolder_list"] = "Podzložky";
$text["submit_approval"] = "Poslať schválenie";
$text["submit_login"] = "Prihlásiť sa";
$text["submit_review"] = "Poslať kontrolu";
$text["theme"] = "Vzhľad";
$text["unable_to_add"] = "Nebolo možné pridať";
$text["unable_to_remove"] = "Nebolo možné odstrániť";
$text["under_folder"] = "V zložke";
$text["unknown_command"] = "Príkaz nebol rozpoznaný.";
$text["unknown_group"] = "Neznámy ID skupiny";
$text["unknown_keyword_category"] = "Neznáma kategória";
$text["unknown_owner"] = "Neznámy ID vlastníka";
$text["unknown_user"] = "Neznámy ID používateľa";
$text["unlock_cause_access_mode_all"] = "Môžete ho stále aktualizovať, pretože máte režim prístupu \"all\". Zámok bude automaticky odstránený.";
$text["unlock_cause_locking_user"] = "Môžete ho stále aktualizovať, pretože ste ten, kto ho aj zamkol. Zámok bude automaticky odstránený.";
$text["unlock_document"] = "Odomknúť";
$text["unlocking_denied"] = "Nemáte dostatočné oprávnenie na odomknutie tohto dokumentu";
$text["update"] = "Aktualizovať";
$text["update_approvers"] = "Aktualizovať zoznam schvaľovateľov";
$text["update_document"] = "Aktualizovať";
$text["update_info"] = "Aktualizovať informácie";
$text["update_locked_msg"] = "Tento dokument je zamknutý.";
$text["update_reviewers"] = "Aktualizovať zoznam kontrolórov";
$text["update_reviewers_approvers"] = "Aktualizovať zoznam kontrolórov a schvaľovateľov";
$text["updated_by"] = "Aktualizoval";
$text["upload_date"] = "Dátum nahrania";
$text["uploaded"] = "Nahral";
$text["uploaded_by"] = "Nahral";
$text["uploading_failed"] = "Nahranie zlyhalo. Prosám, kontaktujte správcu.";
$text["use_default_keywords"] = "Použiť preddefinované kľúčové slová";
$text["user"] = "Používateľ";
$text["user_already_approved"] = "Používateľ už poslal schválenie tejto verzie dokumentu";
$text["user_already_reviewed"] = "Používateľ už poslal kontrolu tejto verzie dokumentu";
$text["user_approval_not_required"] = "Momentálne sa od používateľa nevyžaduje schválenie dokumetu.";
$text["user_exists"] = "Používateľ už existuje.";
$text["user_image"] = "Obrázok";
$text["user_info"] = "Informácie o používateľovi";
$text["user_list"] = "Zoznam používateľov";
$text["user_login"] = "ID používateľa";
$text["user_management"] = "Používatelia";
$text["user_name"] = "Plné meno";
$text["user_removed_approver"] = "Používateľ bol odstránený zo zoznamu jednotlivých schvaľovateľov.";
$text["user_removed_reviewer"] = "Používateľ bol odstránený zo zoznamu jednotlivých kontrolórov.";
$text["user_review_not_required"] = "Momentálne sa od používateľa nevyžaduje kontrola dokumetu.";
$text["users"] = "Používateľ";
$text["version"] = "Verzia";
$text["version_info"] = "Informácie o verzii";
$text["version_under_approval"] = "Verzia sa schvaľuje";
$text["version_under_review"] = "Verzia sa kontroluje";
$text["view_document"] = "Zobraziť dokument";
$text["view_online"] = "Zobraziť online";
$text["warning"] = "Upozornenie";
$text["wrong_pwd"] = "Vaše heslo je nesprávne. Skúste znova.";
$text["yes"] = "Áno";
$text["sign_out"] = "odhlásiť";
$text["signed_in_as"] = "Prihlásený ako";
$text["assign_reviewers"] = "Určiť recenzentov";
$text["assign_approvers"] = "Určiť schvaľovateľov";
$text["override_status"] = "Zmeniť stav";
$text["change_status"] = "Zmeniť stav";
$text["change_assignments"] = "Zmeniť úlohy";
$text["no_user_docs"] = "Momentálne nie sú k dispozícii žiadne dokumenty vlastnené používateľom";
$text["disclaimer"] = "Toto je zabezpečená zóna. Prístup je povolený len autorizovaným osobám.";
$text["error_updating_status"] = "Pri nastavovaní stavu nastala chyba";
$text["unknown_id"] = "Neznáme ID";
$text["help"] = "Pomoc";
$text["group_approval_summary"] = "Zhrnutie skupinového schválenia";
$text["group_review_summary"] = "Zhrnutie skupinovej recenzie";
$text["documents_locked_by_you"] = "Vami uzamknuté dokumenty";
$text["document_renamed_email"] = "Dokument premenovany";
$text["folder_renamed_email"] = "Zlozka premenovana";
$text["comment_changed_email"] = "Komentar zmeneny";
$text["document_moved_email"] = "Dokument presunuty";
$text["folder_moved_email"] = "Zlozka presunuta";
$text["ownership_changed_email"] = "Majitel zmeneny";
$text["access_permission_changed_email"] = "Pristupové prava zmenene";
$text["expiry_changed_email"] = "Datum platnosti zmeneny";
$text["notify_added_email"] = "Boli ste pridani do notifikacneho zoznamu";
$text["notify_deleted_email"] = "Boli ste odstraneni do notifikacneho zoznamu";
$text["document_updated_email"] = "Dokument aktualizovany";
$text["document_deleted_email"] = "Dokument zmazany";
$text["folder_deleted_email"] = "Zlozka zmazana";
$text["version_deleted_email"] = "Verzia zmazana";
$text["document_status_changed_email"] = "Stav dokumentu zmeneny";
$text["review_request_email"] = "Poziadavka na recenziu";
$text["approval_request_email"] = "Poziadavka na schvalenie";
$text["review_deletion_email"] = "Poziadavka na recenziu zmazana";
$text["approval_deletion_email"] = "Poziadavka na schvalenie zmazana";
$text["new_subfolder_email"] = "Nova zlozka";
$text["new_document_email"] = "Novy dokument";
$text["approval_submit_email"] = "Poslane schvalenie";
$text["review_submit_email"] = "Poslana recenzia";
$text["automatic_status_update"] = "Automaticka zmena stavu";
$text["old"] = "Stare";
$text["new"] = "Nove";
$text["folder"] = "Zlozka";
$text["new_file_email"] = "Nova priloha";
$text["removed_file_email"] = "Odstranena priloha";
$text["document_deleted"] = "Dokument zmazaný";
$text["linked_files"] = "Prílohy";
$text["invalid_file_id"] = "Nesprávne ID súboru";
$text["rm_file"] = "Odstrániť súbor";
$text["confirm_rm_file"] = "Skutočne si prajete odstrániť súbor \"[name]\" z dokumentu \"[documentname]\"?<br>Buďte opatrní, táto akcia je nezvratná.";
$text["backup_tools"] = "Zálohovacie nástroje";
$text["versioning_file_creation"] = "Vytvorenie verziovacieho súboru";
$text["archive_creation"] = "Vytvorenie archívu";
$text["files_deletion"] = "Odstránenie súboru";
$text["versioning_info"] = "Informácie o verziách";
$text["versioning_file_creation_warning"] = "Touto akciou môžete vytvoriť súbor, obsahujúci verziovaciu informáciu celej DMS zložky. Po vytvorení bude každý súbor uložený do zložky súborov.";
$text["archive_creation_warning"] = "Touto akciou môžete vytvoriť archív obsahujúci celú DMS zložku. Po vytvorení bude každý súbor uložený do dátovej zložky súborov na vašom serveri.<br>UPOZORNENIE: uživateľsky prístupný archív nie je možné použiť ako zálohu servera.";
$text["files_deletion_warning"] = "Touto akciou môžete odstrániť celú DMS zložku. Verziovacie informácie zostanú viditeľné.";
$text["confirm_rm_folder_files"] = "Skutočne si prajete odstrániť všetky súbory zložky \"[foldername]\" a všetkých jej podzložiek?<br>Buďte opatrní, táto akcia je nezvratná.";
$text["files"] = "Súbory";
$text["storage_size"] = "Objem dát";
$text["backup_list"] = "Zoznam záloh";
$text["backup_remove"] = "Odstrániť zálohu";
$text["confirm_rm_backup"] = "Skutočne si prajete odstrániť zálohu \"[arkname]\"?<br>Buďte opatrní, táto akcia je nezvratná.";
$text["edit_comment"] = "Upraviť komentár";
// new from 1.9
$text["is_hidden"] = "Nezobrazovať v zozname používateľov";
$text["log_management"] = "Správa protokolov";
$text["confirm_rm_log"] = "Skutočne si prajete zmazať protokol \"[logname]\"?<br>Buďte opatrní, táto akcia je nezvratná.";
$text["include_subdirectories"] = "Vrátane podzložiek";
$text["include_documents"] = "Vrátane súborov";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Prepnúť stav manager";
// new from 2.0
$text["calendar"] = "Kalendár";
$text["week_view"] = "Týždeň";
$text["month_view"] = "Mesiac";
$text["year_view"] = "Rok";
$text["add_event"] = "Pridať udalosť";
$text["edit_event"] = "Upraviť udalosť";
$text["january"] = "Január";
$text["february"] = "Február";
$text["march"] = "Marec";
$text["april"] = "Apríl";
$text["may"] = "Máj";
$text["june"] = "Jún";
$text["july"] = "Júl";
$text["august"] = "August";
$text["september"] = "September";
$text["october"] = "Október";
$text["november"] = "November";
$text["december"] = "December";
$text["sunday"] = "Nedeľa";
$text["monday"] = "Pondelok";
$text["tuesday"] = "Utorok";
$text["wednesday"] = "Streda";
$text["thursday"] = "Štvrtok";
$text["friday"] = "Piatok";
$text["saturday"] = "Sobota";
$text["from"] = "Od";
$text["to"] = "Do";
$text["event_details"] = "Detail udalosti";
$text["confirm_rm_event"] = "Skutočne si prajete odstrániť udalosť \"[name]\"?<br>Buďte opatrní, táto akcia je nezvratná.";
$text["dump_creation"] = "Vytvorenie výstupu DB";
$text["dump_creation_warning"] = "Touto akciou môžete vytvoriť výstup obsahu Vašej databázy. Po vytvorení bude výstup uložený v dátovej zložke vášho servera.";
$text["dump_list"] = "Existujúce výstupy";
$text["dump_remove"] = "Odstrániť vystup";
$text["confirm_rm_dump"] = "Skutočne si prajete odstrániť \"[dumpname]\"?<br>Buďte opatrní, táto akcia je nezvratná.";
$text["confirm_rm_user"] = "Skutočne si prajete odstrániť používateľa \"[username]\"?<br>Buďte opatrní, táto akcia je nezvratná.";
$text["confirm_rm_group"] = "Skutočne si prajete odstrániť skupinu \"[groupname]\"?<br>Buďte opatrní, táto akcia je nezvratná.";
$text["human_readable"] = "Použivateľský archív";
$text["email_header"] = "Toto je automatická správa od DMS servera.";
$text["email_footer"] = "Nastavenia e-mailu si kedykoľvek môžete zmeniť cez 'Môj účet'";
$text["add_multiple_files"] = "Pridať viacero súborov (názov súboru sa použije ako názov dokumentu)";
// new from 2.0.1
$text["max_upload_size"] = "Maximálna veľkosť každého súboru";
?>

View File

@ -0,0 +1,7 @@
<h1>TODO</h1>

588
languages/Spanish/lang.inc Normal file
View File

@ -0,0 +1,588 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
// Translation to castillian (spanish) for version 1.51
// Translation updated by Rubén Marcos (resete[at]linuxlover[dot]org)
$text = array();
$text["accept"] = "Aceptar";
$text["access_denied"] = "Access denied.";
$text["access_inheritance"] = "Access Inheritance";
$text["access_mode_all"] = "Todo";
$text["access_mode_none"] = "No hay acceso";
$text["access_mode_read"] = "Leer";
$text["access_mode_readwrite"] = "Lectura-Escritura";
$text["access_mode"] = "Modo de acceso";
$text["account_summary"] = "Account Summary";
$text["action_summary"] = "Action Summary";
$text["actions"] = "Actions";
$text["add_access"] = "Añadir acceso";
$text["add_doc_reviewer_approver_warning"] = "N.B. Documents are automatically marked as released if no reviewer or approver is assigned.";
$text["add_document_link"] = "Añadir vinculo";
$text["add_document"] = "Añadir documento";
$text["add_group"] = "Añadir nuevo grupo";
$text["add_link"] = "Create Link";
$text["add_member"] = "Añadir miembro";
$text["add_new_notify"] = "Añadir nueva notificacion";
$text["add_subfolder"] = "Añadir subdirectorio";
$text["add_user"] = "Añadir nuevo usuario";
$text["add"] = "Add";
$text["adding_default_keywords"] = "Agregando palabras claves ";
$text["adding_document_link"] = "Añadiendo vinculo al documento relacionado...";
$text["adding_document_notify"] = "Añadiendo elemento a la lista de notificacion...";
$text["adding_document"] = "Añadiendo documento \"[documentname]\" al directorio \"[foldername]\"...";
$text["adding_folder_notify"] = "Añadiendo elemento a la lista de notificacion...";
$text["adding_group"] = "Añadiendo grupo al sistema...";
$text["adding_member"] = "Añadiendo miembro al grupo...";
$text["adding_sub_folder"] = "Añadiendo subdirectorio \"[subfoldername]\" al directorio \"[foldername]\"...";
$text["adding_user"] = "Añadiendo usuario al sistema...";
$text["admin_set_owner"] = "Only an Administrator may set a new owner";
$text["admin_tools"] = "Admin-Tools";
$text["admin"] = "Administrator";
$text["all_documents"] = "All Documents";
$text["all_users"] = "Todos los usuarios";
$text["and"] = "y";
$text["approval_group"] = "Approval Group";
$text["approval_status"] = "Approval Status";
$text["approval_summary"] = "Approval Summary";
$text["approval_update_failed"] = "Error updating approval status. Update failed.";
$text["approve_document_complete_records_updated"] = "Document approval completed and records updated";
$text["approve_document_complete"] = "Approve Document: Complete";
$text["approve_document"] = "Approve Document";
$text["approver_added"] = "added as an approver";
$text["approver_already_assigned"] = "is already assigned as an approver";
$text["approver_already_removed"] = "has already been removed from approval process or has already submitted an approval";
$text["approver_no_privilege"] = "is not sufficiently privileged to approve this document";
$text["approver_removed"] = "removed from approval process";
$text["approvers"] = "Approvers";
$text["as_approver"] = "as an approver";
$text["as_reviewer"] = "as a reviewer";
$text["assign_privilege_insufficient"] = "Access denied. Privileges insufficient to assign reviewers or approvers to this document.";
$text["assumed_released"] = "Assumed released";
$text["back"] = "Atras";
$text["between"] = "entre";
$text["cancel"] = "Cancelar";
$text["cannot_approve_pending_review"] = "Document is currently pending review. Cannot submit an approval at this time.";
$text["cannot_assign_invalid_state"] = "Cannot assign new reviewers to a document that is not pending review or pending approval.";
$text["cannot_change_final_states"] = "Warning: Unable to alter document status for documents that have been rejected, marked obsolete or expired.";
$text["cannot_delete_admin"] = "Unable to delete the primary administrative user.";
$text["cannot_move_root"] = "Error: Cannot move root folder.";
$text["cannot_retrieve_approval_snapshot"] = "Unable to retrieve approval status snapshot for this document version.";
$text["cannot_retrieve_review_snapshot"] = "Unable to retrieve review status snapshot for this document version.";
$text["cannot_rm_root"] = "Error: Cannot delete root folder.";
$text["choose_category"] = "--Elegir categoría--";
$text["choose_group"] = "--Seleccionar grupo--";
$text["choose_target_document"] = "Escoger documento";
$text["choose_target_folder"] = "Escoger directorio destino";
$text["choose_user"] = "--Seleccionar usuario--";
$text["comment_for_current_version"] = "Comentario de la version actual";
$text["comment"] = "Comentarios";
$text["confirm_pwd"] = "Confirmar password";
$text["confirm_rm_document"] = "Desea realmente eliminar el documento \"[documentname]\"?<br>Atencion: Esta accion no se puede deshacer.";
$text["confirm_rm_folder"] = "Realmente desea eliminar el directorio \"[foldername]\" y su contenido?<br>Atencion: Esta accion no se puede deshacer.";
$text["confirm_rm_version"] = "¿Realmente quiere eliminar la versión [version] del documento \"[documentname]\"?<br>Tenga cuidado: esta acción no se puede deshacer.";
$text["content"] = "Contenido";
$text["continue"] = "Continue";
$text["creating_new_default_keyword_category"] = "Creando categoría";
$text["creation_date"] = "Creacion";
$text["current_version"] = "Version actual";
$text["default_access"] = "Modo de acceso predefinido";
$text["default_keyword_category_name"] = "Nombre";
$text["default_keyword_category"] = "Categorías";
$text["default_keywords"] = "Palabras claves disponibles";
$text["delete_last_version"] = "Document has only one revision. Deleting entire document record...";
$text["delete"] = "Eliminado";
$text["deleting_document_notify"] = "Eliminando elemento de la lista de notificacion...";
$text["deleting_folder_notify"] = "Eliminando elemento de la lista de notificacion...";
$text["details"] = "Details";
$text["details_version"] = "Details for version: [version]";
$text["document_access_again"] = "Editar de nuevo acceso al documento";
$text["document_add_access"] = "Añadiendo elemento a la lista de acceso...";
$text["document_already_locked"] = "Este documento ya esta bloqueado";
$text["document_del_access"] = "Eliminando elemento de la lista de acceso...";
$text["document_edit_access"] = "Cambiando modo de acceso...";
$text["document_infos"] = "Informaciones";
$text["document_is_not_locked"] = "Este documento no esta bloqueado";
$text["document_link_by"] = "Vinculado por";
$text["document_link_public"] = "Publico";
$text["document_list"] = "Documentos";
$text["document_notify_again"] = "Editar de nuevo lista de notificacion";
$text["document_overview"] = "Información documento";
$text["document_set_default_access"] = "Estableciendo modo de acceso predefinido para el documento...";
$text["document_set_inherit"] = "Eliminando ACL. El documento heredara acceso...";
$text["document_set_not_inherit_copy"] = "Copiando lista de acceso...";
$text["document_set_not_inherit_empty"] = "Eliminando acceso heredado. Empezando con un ACL vacio...";
$text["document_status"] = "Document Status";
$text["document_title"] = "Documento '[documentname]'";
$text["document_versions"] = "Todas las versiones";
$text["document"] = "Document";
$text["documents_in_process"] = "Documents In Process";
$text["documents_owned_by_user"] = "Documents Owned by User";
$text["documents_to_approve"] = "Documents Awaiting User's Approval";
$text["documents_to_review"] = "Documents Awaiting User's Review";
$text["documents_user_requiring_attention"] = "Documents Owned by User That Require Attention";
$text["does_not_expire"] = "No caduca";
$text["does_not_inherit_access_msg"] = "<a class=\"inheritAccess\" href=\"[inheriturl]\">Inherit access</a>";
$text["download_document_content"] = "Download";
$text["download"] = "Download";
$text["draft_pending_approval"] = "Draft - pending approval";
$text["draft_pending_review"] = "Draft - pending review";
$text["edit_default_keyword_category"] = "Editar categorías";
$text["edit_default_keywords"] = "Edit keywords";
$text["edit_document_access"] = "Editar acceso";
$text["edit_document_notify"] = "Lista de notificacion";
$text["edit_document_props_again"] = "Editar documento otra vez";
$text["edit_document_props"] = "Editar documento";
$text["edit_document"] = "Editar documento";
$text["edit_existing_access"] = "Editar lista de acceso";
$text["edit_existing_notify"] = "Editar lista de notificacion";
$text["edit_folder_access"] = "Editar acceso";
$text["edit_folder_notify"] = "Lista de notificacion";
$text["edit_folder_props_again"] = "Editar de nuevo directorio";
$text["edit_folder_props"] = "Editar directorio";
$text["edit_folder"] = "Editar directorio";
$text["edit_group"] = "Editar grupo...";
$text["edit_inherit_access"] = "Heredar acceso";
$text["edit_personal_default_keywords"] = "Editar palabras claves personales";
$text["edit_user_details"] = "Edit User Details";
$text["edit_user"] = "Editar usuario...";
$text["edit"] = "edit";
$text["editing_default_keyword_category"] = "Editando categoría";
$text["editing_default_keywords"] = "Cambiando categorías...";
$text["editing_document_props"] = "Editando documento...";
$text["editing_folder_props"] = "Editando directorio...";
$text["editing_group"] = "Editando grupo...";
$text["editing_user_data"] = "Editando configuracion de usuario...";
$text["editing_user"] = "Editando usuario...";
$text["email_err_group"] = "Error sending email to one or more members of this group.";
$text["email_err_user"] = "Error sending email to user.";
$text["email_sent"] = "Email sent";
$text["email"] = "Email";
$text["empty_access_list"] = "Lista de acceso vacia";
$text["empty_notify_list"] = "No hay entradas";
$text["error_adding_session"] = "Error occured while creating session.";
$text["error_occured"] = "Un error ha ocurrido";
$text["error_removing_old_sessions"] = "Error occured while removing old sessions";
$text["error_updating_revision"] = "Error updating status of document revision.";
$text["exp_date"] = "Caducidad";
$text["expired"] = "Expired";
$text["expires"] = "Caduca";
$text["file_info"] = "File Information";
$text["file_size"] = "Tamaño";
$text["file"] = "File";
$text["folder_access_again"] = "Editar de nuevo acceso al directorio";
$text["folder_add_access"] = "Añadiendo elemento a la lista de acceso...";
$text["folder_contents"] = "Folders";
$text["folder_del_access"] = "Eliminando elemento de la lista de acceso...";
$text["folder_edit_access"] = "Editando acceso...";
$text["folder_infos"] = "Informaciones";
$text["folder_notify_again"] = "Editar de nuevo lista de notificacion";
$text["folder_overview"] = "Información directorio";
$text["folder_path"] = "(Ruta)";
$text["folder_set_default_access"] = "Estableciendo modo de acceso predeterminado para el directorio...";
$text["folder_set_inherit"] = "Eliminando ACL. Directorio heredara acceso...";
$text["folder_set_not_inherit_copy"] = "Copiando lista de acceso...";
$text["folder_set_not_inherit_empty"] = "Eliminando acceso heredado. Empezando con un ACL vacio...";
$text["folder_title"] = "Directorio '[foldername]'";
$text["folders_and_documents_statistic"] = "Vista de directorios y documentos";
$text["foldertree"] = "Arbol de directorios";
$text["from_approval_process"] = "from approval process";
$text["from_review_process"] = "from review process";
$text["global_default_keywords"] = "Palabras claves globales";
$text["goto"] = "Ir a";
$text["group_already_approved"] = "An approval has already been submitted on behalf of group";
$text["group_already_reviewed"] = "A review has already been submitted on behalf of group";
$text["group_approvers"] = "Group Approvers";
$text["group_email_sent"] = "Email sent to group members";
$text["group_exists"] = "Group already exists.";
$text["group_management"] = "Grupos";
$text["group_members"] = "Miembros del grupo";
$text["group_reviewers"] = "Group Reviewers";
$text["group_unable_to_add"] = "Unable to add group";
$text["group_unable_to_remove"] = "Unable to remove group";
$text["group"] = "Grupo";
$text["groups"] = "Grupos";
$text["guest_login_disabled"] = "Guest login is disabled.";
$text["guest_login"] = "Acceso como invitado";
$text["individual_approvers"] = "Individual Approvers";
$text["individual_reviewers"] = "Individual Reviewers";
$text["individuals"] = "Individuals";
$text["inherits_access_msg"] = "Acceso esta siendo heredado.<p><a class=\"inheritAccess\" href=\"[copyurl]\">Copiar lista de acceso heredado</a><br><a class=\"inheritAccess\" href=\"[emptyurl]\">Empezar con una lista de acceso vacia</a>";
$text["internal_error_exit"] = "Internal error. Unable to complete request. Exiting.";
$text["internal_error"] = "Internal error";
$text["invalid_access_mode"] = "Invalid Access Mode";
$text["invalid_action"] = "Invalid Action";
$text["invalid_approval_status"] = "Invalid Approval Status";
$text["invalid_create_date_end"] = "Invalid end date for creation date range.";
$text["invalid_create_date_start"] = "Invalid start date for creation date range.";
$text["invalid_doc_id"] = "Invalid Document ID";
$text["invalid_folder_id"] = "Invalid Folder ID";
$text["invalid_group_id"] = "Invalid Group ID";
$text["invalid_link_id"] = "Invalid link identifier";
$text["invalid_review_status"] = "Invalid Review Status";
$text["invalid_sequence"] = "Invalid sequence value";
$text["invalid_status"] = "Invalid Document Status";
$text["invalid_target_doc_id"] = "Invalid Target Document ID";
$text["invalid_target_folder"] = "Invalid Target Folder ID";
$text["invalid_user_id"] = "Invalid User ID";
$text["invalid_version"] = "Invalid Document Version";
$text["is_admin"] = "Administrator Privilege";
$text["js_no_approval_group"] = "Please select a approval group";
$text["js_no_approval_status"] = "Please select the approval status";
$text["js_no_comment"] = "No hay comentarios";
$text["js_no_email"] = "Escriba su direccion Email";
$text["js_no_file"] = "Por favor, seleccione un archivo";
$text["js_no_keywords"] = "Especifique palabras clave";
$text["js_no_login"] = "Por favor, escriba un nombre de usuario";
$text["js_no_name"] = "Por favor, escriba un nombre";
$text["js_no_override_status"] = "Please select the new [override] status";
$text["js_no_pwd"] = "Necesita escribir su password";
$text["js_no_query"] = "Escriba una busqueda";
$text["js_no_review_group"] = "Please select a review group";
$text["js_no_review_status"] = "Please select the review status";
$text["js_pwd_not_conf"] = "Password y la confirmacion del password no coinciden";
$text["js_select_user_or_group"] = "Seleccione al menos un usuario o un grupo";
$text["js_select_user"] = "Por favor, seleccione un usuario";
$text["keyword_exists"] = "Keyword already exists";
$text["keywords"] = "Palabras clave";
$text["language"] = "Lenguaje";
$text["last_update"] = "Ultima modificacion";
$text["last_updated_by"] = "Last updated by";
$text["latest_version"] = "Latest Version";
$text["linked_documents"] = "Documentos relacionados";
$text["local_file"] = "Archivo local";
$text["lock_document"] = "Bloquear";
$text["lock_message"] = "Este documento ha sido bloqueado por <a href=\"mailto:[email]\">[username]</a>.<br>Solo usuarios autorizados pueden desbloquear este documento (vea el final de la pagina).";
$text["lock_status"] = "Estado";
$text["locking_document"] = "Bloqueando documento...";
$text["logged_in_as"] = "Conectado";
$text["login_error_text"] = "Error signing in. User ID or password incorrect.";
$text["login_error_title"] = "Sign in error";
$text["login_not_found"] = "Este nombre de usuario no existe";
$text["login_not_given"] = "Nombre de usuario no facilitado.";
$text["login_ok"] = "Sign in successful";
$text["login"] = "Acceso";
$text["logout"] = "Desconectar";
$text["mime_type"] = "Tipo Mime";
$text["move_document"] = "Mover documento";
$text["move_folder"] = "Mover directorio";
$text["move"] = "Move";
$text["moving_document"] = "Moviendo documento...";
$text["moving_folder"] = "Moviendo directorio...";
$text["msg_document_expired"] = "El documento \"[documentname]\" (Ruta: \"[path]\") caduco el [expires]";
$text["msg_document_updated"] = "El documento \"[documentname]\" (Ruta: \"[path]\") fue creado o actualizado el [updated]";
$text["my_account"] = "Mi cuenta";
$text["my_documents"] = "My Documents";
$text["name"] = "Nombre";
$text["new_default_keyword_category"] = "Nueva categoría";
$text["new_default_keywords"] = "Agregar palabras claves";
$text["new_equals_old_state"] = "Warning: Proposed status and existing status are identical. No action required.";
$text["new_user_image"] = "Nueva imagen";
$text["no_action_required"] = "n/a";
$text["no_action"] = "No action required";
$text["no_active_user_docs"] = "There are currently no documents owned by the user that require review or approval.";
$text["no_approvers"] = "No approvers assigned.";
$text["no_default_keywords"] = "Sin palabras claves";
$text["no_docs_to_approve"] = "There are currently no documents that require approval.";
$text["no_docs_to_review"] = "There are currently no documents that require review.";
$text["no_document_links"] = "Sin documentos relacionados";
$text["no_documents"] = "Sin documentos";
$text["no_group_members"] = "Este grupo no tiene miembros";
$text["no_groups"] = "No hay grupos";
$text["no_previous_versions"] = "No other versions found";
$text["no_reviewers"] = "No reviewers assigned.";
$text["no_subfolders"] = "Sin subdirectorios";
$text["no_update_cause_locked"] = "No puede actualizar este documento. Contacte con el usuario que lo bloqueo.";
$text["no_user_image"] = "No se encontro imagen";
$text["no"] = "No";
$text["not_approver"] = "User is not currently assigned as an approver of this document revision.";
$text["not_reviewer"] = "User is not currently assigned as a reviewer of this document revision.";
$text["notify_subject"] = "Documentos nuevos o caducados en DMS";
$text["obsolete"] = "Obsolete";
$text["old_folder"] = "old folder";
$text["only_jpg_user_images"] = "Solo puede usar imagenes .jpg como imagenes de usuario";
$text["op_finished"] = ": Hecho.";
$text["operation_not_allowed"] = "No tiene privilegios para esa accion";
$text["override_content_status_complete"] = "Override Status Complete";
$text["override_content_status"] = "Override Status";
$text["override_privilege_insufficient"] = "Access denied. Privileges insufficient to override the status of this document.";
$text["overview"] = "Overview";
$text["owner"] = "Propietario";
$text["password"] = "Password";
$text["pending_approval"] = "Documents pending approval";
$text["pending_review"] = "Documents pending review";
$text["personal_default_keywords"] = "Palabras claves personales";
$text["previous_versions"] = "Previous Versions";
$text["rejected"] = "Rejected";
$text["released"] = "Released";
$text["remove_document_link"] = "Eliminar vinculo";
$text["remove_member"] = "Eliminar miembro";
$text["removed_approver"] = "has been removed from the list of approvers.";
$text["removed_reviewer"] = "has been removed from the list of reviewers.";
$text["removing_default_keyword_category"] = "Eliminando categoría";
$text["removing_default_keywords"] = "Eliminado palabras claves ";
$text["removing_document_link"] = "Eliminando vinculo al documento relacionado...";
$text["removing_document"] = "Eliminando documento...";
$text["removing_folder"] = "Eliminando directorio...";
$text["removing_group"] = "Eliminando grupo del sistema...";
$text["removing_member"] = "Eliminando miembro del grupo...";
$text["removing_user"] = "Eliminando usuario del sistema...";
$text["removing_version"] = "Eliminando versión [version]...";
$text["review_document_complete_records_updated"] = "Document review completed and records updated";
$text["review_document_complete"] = "Review Document: Complete";
$text["review_document"] = "Review Document";
$text["review_group"] = "Review Group";
$text["review_status"] = "Review Status";
$text["review_summary"] = "Review Summary";
$text["review_update_failed"] = "Error updating review status. Update failed.";
$text["reviewer_added"] = "added as a reviewer";
$text["reviewer_already_assigned"] = "is already assigned as a reviewer";
$text["reviewer_already_removed"] = "has already been removed from review process or has already submitted a review";
$text["reviewer_no_privilege"] = "is not sufficiently privileged to review this document";
$text["reviewer_removed"] = "removed from review process";
$text["reviewers"] = "Reviewers";
$text["rm_default_keyword_category"] = "Eliminar categoría";
$text["rm_default_keywords"] = "Eliminando palabras claves ";
$text["rm_document"] = "Eliminar documento";
$text["rm_folder"] = "Eliminar directorio";
$text["rm_group"] = "Eliminar este grupo";
$text["rm_user"] = "Eliminar este usuario";
$text["rm_version"] = "Eliminar versión";
$text["root_folder"] = "Directorio raíz";
$text["save"] = "Grabar";
$text["search_in_all"] = "todos los Directorios";
$text["search_in_current"] = "solo en el directorio ([foldername]) incluyendo subdirectorios";
$text["search_in"] = "Buscar en";
$text["search_mode_and"] = "todas las palabras";
$text["search_mode_or"] = "al menos una palabra";
$text["search_mode"] = "Modo";
$text["search_no_results"] = "No hay documentos que coinciden con su busqueda";
$text["search_query"] = "Buscar";
$text["search_report"] = "Found [count] documents";
$text["search_result_pending_approval"] = "status 'pending approval'";
$text["search_result_pending_review"] = "status 'pending review'";
$text["search_results_access_filtered"] = "Search results may contain content to which access has been denied.";
$text["search_results"] = "Resultados de la busqueda";
$text["search_time"] = "Tiempo transcurrido: [time] seg.";
$text["search"] = "Busqueda";
$text["select_one"] = "Seleccionar uno";
$text["selected_document"] = "Documento seleccionado";
$text["selected_folder"] = "Directorio seleccionado";
$text["selection"] = "Selection";
$text["seq_after"] = "Despues \"[prevname]\"";
$text["seq_end"] = "Al final";
$text["seq_keep"] = "Mantener posicion";
$text["seq_start"] = "Primera posicion";
$text["sequence"] = "Secuencia";
$text["set_default_access"] = "Set Default Access Mode";
$text["set_expiry"] = "Set Expiry";
$text["set_owner"] = "Establecer propietario";
$text["set_reviewers_approvers"] = "Assign Reviewers and Approvers";
$text["setting_expires"] = "Establecer caducidad...";
$text["setting_owner"] = "Estableciendo propietario...";
$text["setting_user_image"] = "<br>Colocando imagen para usuario...";
$text["show_all_versions"] = "Show All Revisions";
$text["show_current_versions"] = "Show Current";
$text["start"] = "Iniciar";
$text["status_approval_rejected"] = "Draft rejected";
$text["status_approved"] = "Approved";
$text["status_approver_removed"] = "Approver removed from process";
$text["status_change_summary"] = "Document revision changed from status '[oldstatus]' to status '[newstatus]'.";
$text["status_changed_by"] = "Status changed by";
$text["status_not_approved"] = "Not approved";
$text["status_not_reviewed"] = "Not reviewed";
$text["status_reviewed"] = "Reviewed";
$text["status_reviewer_rejected"] = "Draft rejected";
$text["status_reviewer_removed"] = "Reviewer removed from process";
$text["status_unknown"] = "Unknown";
$text["status"] = "Status";
$text["subfolder_list"] = "Subdirectorio";
$text["submit_approval"] = "Submit approval";
$text["submit_login"] = "Sign in";
$text["submit_review"] = "Submit review";
$text["theme"] = "Tema gráfico";
$text["unable_to_add"] = "Unable to add";
$text["unable_to_remove"] = "Unable to remove";
$text["under_folder"] = "En directorio";
$text["unknown_command"] = "Command not recognized.";
$text["unknown_group"] = "Unknown group id";
$text["unknown_keyword_category"] = "Unknown category";
$text["unknown_owner"] = "Unknown owner id";
$text["unknown_user"] = "Unknown user id";
$text["unlock_cause_access_mode_all"] = "Puede actualizarlo porque tiene modo de acceso \"all\". El bloqueo sera automaticamente eliminado.";
$text["unlock_cause_locking_user"] = "Puede actualizarlo porque fue quien lo bloqueo. El bloqueo sera automaticamente eliminado.";
$text["unlock_document"] = "Desbloquear";
$text["unlocking_denied"] = "No tiene suficientes privilegios para desbloquear este documento";
$text["unlocking_document"] = "Desbloqueando documento...";
$text["update_approvers"] = "Update List of Approvers";
$text["update_document"] = "Actualizar";
$text["update_info"] = "Update Information";
$text["update_locked_msg"] = "Este documento esta bloqueado.";
$text["update_reviewers_approvers"] = "Update List of Reviewers and Approvers";
$text["update_reviewers"] = "Update List of Reviewers";
$text["update"] = "Update";
$text["updated_by"] = "Updated by";
$text["updating_document"] = "Actualizando documento...";
$text["upload_date"] = "Fecha de envio";
$text["uploaded_by"] = "Enviado por";
$text["uploaded"] = "Uploaded";
$text["uploading_failed"] = "Envio (Upload) fallido. Por favor contacte con el Administrador.";
$text["use_default_keywords"] = "Utilizar palabras claves por defecto";
$text["user_already_approved"] = "User has already submitted an approval of this document version";
$text["user_already_reviewed"] = "User has already submitted a review of this document version";
$text["user_approval_not_required"] = "No document approval required of user at this time.";
$text["user_exists"] = "User already exists.";
$text["user_image"] = "Imagen";
$text["user_info"] = "User Information";
$text["user_list"] = "Lista de usuarios";
$text["user_login"] = "Nombre de usuario";
$text["user_management"] = "Usuarios";
$text["user_name"] = "Nombre completo";
$text["user_removed_approver"] = "User has been removed from the list of individual approvers.";
$text["user_removed_reviewer"] = "User has been removed from the list of individual reviewers.";
$text["user_review_not_required"] = "No document review required of user at this time.";
$text["user"] = "Usuario";
$text["users"] = "Usuarios";
$text["version_info"] = "Version Information";
$text["version_under_approval"] = "Version under approval";
$text["version_under_review"] = "Version under review";
$text["version"] = "Version";
$text["view_document"] = "View Document";
$text["view_online"] = "Ver online";
$text["warning"] = "Warning";
$text["wrong_pwd"] = "Su password es incorrecto. Intentelo de nuevo.";
$text["yes"] = "Si";
// New as of 1.7.1. Require updated translation.
$text["documents"] = "Documents";
$text["folders"] = "Folders";
$text["no_folders"] = "No folders";
$text["notification_summary"] = "Notification Summary";
$text["group_approval_summary"] = "Group approval summary";
$text["group_review_summary"] = "Group review summary";
$text["documents_locked_by_you"] = "Documents locked by you";
// New as of 1.7.2
$text["all_pages"] = "All";
$text["results_page"] = "Results Page";
// New
$text["sign_out"] = "sign out";
$text["signed_in_as"] = "Signed in as";
$text["assign_reviewers"] = "Assign Reviewers";
$text["assign_approvers"] = "Assign Approvers";
$text["override_status"] = "Override Status";
$text["change_status"] = "Change Status";
$text["change_assignments"] = "Change Assignments";
$text["no_user_docs"] = "There are currently no documents owned by the user";
$text["disclaimer"] = "This is a classified area. Access is permitted only to authorized personnel. Any violation will be prosecuted according to the english and international laws.";
$text["backup_tools"] = "Backup tools";
$text["versioning_file_creation"] = "Versioning file creation";
$text["archive_creation"] = "Archive creation";
$text["files_deletion"] = "Files deletion";
$text["folder"] = "Folder";
$text["unknown_id"] = "unknown id";
$text["help"] = "Help";
$text["versioning_info"] = "Versioning info";
$text["versioning_file_creation_warning"] = "With this operation you can create a file containing the versioning information of an entire DMS folder. After the creation every file will be saved inside the document folder.";
$text["archive_creation_warning"] = "With this operation you can create achive containing the files of entire DMS folders. After the creation the archive will be saved in the data folder of your server.<br>WARNING: an archive created as human readable will be unusable as server backup.";
$text["files_deletion_warning"] = "With this option you can delete all files of entire DMS folders. The versioning information will remain visible.";
$text["backup_list"] = "Existings backup list";
$text["backup_remove"] = "Remove backup file";
$text["confirm_rm_backup"] = "Do you really want to remove the file \"[arkname]\"?<br>Be careful: This action cannot be undone.";
$text["document_deleted"] = "Document deleted";
$text["linked_files"] = "Attachments";
$text["invalid_file_id"] = "Invalid file ID";
$text["rm_file"] = "Remove file";
$text["confirm_rm_file"] = "Do you really want to remove file \"[name]\" of document \"[documentname]\"?<br>Be careful: This action cannot be undone.";
$text["edit_comment"] = "Edit comment";
// new from 1.9
$text["is_hidden"] = "Hide from users list";
$text["log_management"] = "Log files management";
$text["confirm_rm_log"] = "Do you really want to remove log file \"[logname]\"?<br>Be careful: This action cannot be undone.";
$text["include_subdirectories"] = "Include subdirectories";
$text["include_documents"] = "Include documents";
$text["manager"] = "Manager";
$text["toggle_manager"] = "Toggle manager";
// new from 2.0
$text["calendar"] = "Calendar";
$text["week_view"] = "Week view";
$text["month_view"] = "Month view";
$text["year_view"] = "Year View";
$text["add_event"] = "Add event";
$text["edit_event"] = "Edit event";
$text["january"] = "January";
$text["february"] = "February";
$text["march"] = "March";
$text["april"] = "April";
$text["may"] = "May";
$text["june"] = "June";
$text["july"] = "July";
$text["august"] = "August";
$text["september"] = "September";
$text["october"] = "October";
$text["november"] = "November";
$text["december"] = "December";
$text["sunday"] = "Sunday";
$text["monday"] = "Monday";
$text["tuesday"] = "Tuesday";
$text["wednesday"] = "Wednesday";
$text["thursday"] = "Thursday";
$text["friday"] = "Friday";
$text["saturday"] = "Saturday";
$text["from"] = "From";
$text["to"] = "To";
$text["event_details"] = "Event details";
$text["confirm_rm_event"] = "Do you really want to remove event \"[name]\"?<br>Be careful: This action cannot be undone.";
$text["dump_creation"] = "DB dump creation";
$text["dump_creation_warning"] = "With this operation you can create a dump file of your database content. After the creation the dump file will be saved in the data folder of your server.";
$text["dump_list"] = "Existings dump files";
$text["dump_remove"] = "Remove dump file";
$text["confirm_rm_dump"] = "Do you really want to remove the file \"[dumpname]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_user"] = "Do you really want to remove the user \"[username]\"?<br>Be careful: This action cannot be undone.";
$text["confirm_rm_group"] = "Do you really want to remove the group \"[groupname]\"?<br>Be careful: This action cannot be undone.";
$text["human_readable"] = "Human readable archive";
$text["email_header"] = "This is an automatic message from the DMS server.";
$text["email_footer"] = "You can always change your e-mail settings using 'My Account' functions";
$text["add_multiple_files"] = "Add multiple files (will use filename as document name)";
// new from 2.0.1
$text["max_upload_size"] = "Maximum upload size for each file";
?>

3
op/.htaccess Normal file
View File

@ -0,0 +1,3 @@
RewriteEngine on
RewriteCond %{REQUEST_URI} (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$
RewriteRule (.*)viewonline/([0-9]+)/([0-9]+)/(.+)$ $1op.ViewOnline.php?request=$2:$3 [PT]

33
op/convert_excel.js Normal file
View File

@ -0,0 +1,33 @@
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//var logFile = fs.CreateTextFile("convertlog.txt", true);
var source = WScript.Arguments(0);
var target = WScript.Arguments(1);
var ExcelApp;
ExcelApp = new ActiveXObject("Excel.Application");
var Newdoc;
Newdoc = ExcelApp.Workbooks.Open(source);
Newdoc.SaveAs(target, 44); // xlHTML = 44
ExcelApp.Quit();
//logFile.Close();

32
op/convert_pp.js Normal file
View File

@ -0,0 +1,32 @@
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//var logFile = fs.CreateTextFile("convertlog.txt", true);
var source = WScript.Arguments(0);
var target = WScript.Arguments(1);
var PPApp;
PPApp = new ActiveXObject("Powerpoint.Application");
var Newdoc;
PPApp.Visible = true;
Newdoc = PPApp.Presentations.Open(source);
Newdoc.SaveAs(target, 12); // ppSaveAsHTML = 12
PPApp.Quit();
//logFile.Close();

33
op/convert_word.js Normal file
View File

@ -0,0 +1,33 @@
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//var logFile = fs.CreateTextFile("convertlog.txt", true);
var source = WScript.Arguments(0);
var target = WScript.Arguments(1);
var WordApp;
WordApp = new ActiveXObject("Word.Application");
var Newdoc;
Newdoc = WordApp.Documents.Open(source);
Newdoc.SaveAs(target, 8); // wdFormatHTML = 8
WordApp.Quit();
//logFile.Close();

176
op/op.AddDocument.php Normal file
View File

@ -0,0 +1,176 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["folderid"]) || !is_numeric($_POST["folderid"]) || intval($_POST["folderid"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderid = $_POST["folderid"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderPathHTML = getFolderPathHTML($folder, true);
if ($folder->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
$comment = sanitizeString($_POST["comment"]);
$version_comment = sanitizeString($_POST["version_comment"]);
$keywords = sanitizeString($_POST["keywords"]);
$reqversion = (int)$_POST["reqversion"];
if ($reqversion<1) $reqversion=1;
$sequence = $_POST["sequence"];
if (!is_numeric($sequence)) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("invalid_sequence"));
}
$expires = ($_POST["expires"] == "true") ? mktime(0,0,0, sanitizeString($_POST["expmonth"]), sanitizeString($_POST["expday"]), sanitizeString($_POST["expyear"])) : false;
// Get the list of reviewers and approvers for this document.
$reviewers = array();
$approvers = array();
$reviewers["i"] = array();
$reviewers["g"] = array();
$approvers["i"] = array();
$approvers["g"] = array();
// Retrieve the list of individual reviewers from the form.
if (isset($_POST["indReviewers"])) {
foreach ($_POST["indReviewers"] as $ind) {
$reviewers["i"][] = $ind;
}
}
// Retrieve the list of reviewer groups from the form.
if (isset($_POST["grpReviewers"])) {
foreach ($_POST["grpReviewers"] as $grp) {
$reviewers["g"][] = $grp;
}
}
// Retrieve the list of individual approvers from the form.
if (isset($_POST["indApprovers"])) {
foreach ($_POST["indApprovers"] as $ind) {
$approvers["i"][] = $ind;
}
}
// Retrieve the list of approver groups from the form.
if (isset($_POST["grpApprovers"])) {
foreach ($_POST["grpApprovers"] as $grp) {
$approvers["g"][] = $grp;
}
}
// add mandatory reviewers/approvers
$docAccess = $folder->getApproversList();
$res=$user->getMandatoryReviewers();
foreach ($res as $r){
if ($r['reviewerUserID']!=0){
foreach ($docAccess["users"] as $usr)
if ($usr->getID()==$r['reviewerUserID']){
$reviewers["i"][] = $r['reviewerUserID'];
break;
}
}
else if ($r['reviewerGroupID']!=0){
foreach ($docAccess["groups"] as $grp)
if ($grp->getID()==$r['reviewerGroupID']){
$reviewers["g"][] = $r['reviewerGroupID'];
break;
}
}
}
$res=$user->getMandatoryApprovers();
foreach ($res as $r){
if ($r['approverUserID']!=0){
foreach ($docAccess["users"] as $usr)
if ($usr->getID()==$r['approverUserID']){
$approvers["i"][] = $r['approverUserID'];
break;
}
}
else if ($r['approverGroupID']!=0){
foreach ($docAccess["groups"] as $grp)
if ($grp->getID()==$r['approverGroupID']){
$approvers["g"][] = $r['approverGroupID'];
break;
}
}
}
for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
if ($_FILES["userfile"]["size"][$file_num]==0) continue;
if (is_uploaded_file($_FILES["userfile"]["tmp_name"][$file_num]) && $_FILES['userfile']['error'][$file_num]!=0){
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("uploading_failed"));
}
$userfiletmp = $_FILES["userfile"]["tmp_name"][$file_num];
$userfiletype = sanitizeString($_FILES["userfile"]["type"][$file_num]);
$userfilename = sanitizeString($_FILES["userfile"]["name"][$file_num]);
$lastDotIndex = strrpos(basename($userfilename), ".");
if (is_bool($lastDotIndex) && !$lastDotIndex) $fileType = ".";
else $fileType = substr($userfilename, $lastDotIndex);
if ((count($_FILES["userfile"]["tmp_name"])==1)&&($_POST["name"]!=""))
$name = sanitizeString($_POST["name"]);
else $name = basename($userfilename);
$res = $folder->addDocument($name, $comment, $expires, $user, $keywords,
$userfiletmp, basename($userfilename),
$fileType, $userfiletype, $sequence,
$reviewers, $approvers, $reqversion,$version_comment);
if (is_bool($res) && !$res) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
}
add_log_line("?name=".$name."&folderid=".$folderid);
}
header("Location:../out/out.ViewFolder.php?folderid=".$folderid."&showtree=".$_POST["showtree"]);
?>

76
op/op.AddDocumentLink.php Normal file
View File

@ -0,0 +1,76 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$public = (isset($_GET["public"]) && $_GET["public"] == "true") ? true : false;
if ($public && ($document->getAccessMode($user) == M_READ)) {
$public = false;
}
if (!isset($_GET["docidform1"]) || !is_numeric($_GET["docidform1"]) || intval($_GET["docidform1"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_target_doc_id"));
}
$docid = $_GET["docidform1"];
$doc = getDocument($docid);
if (!is_object($doc)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_doc_id"));
}
if (!$document->addDocumentLink($docid, $user->getID(), $public)){
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

69
op/op.AddEvent.php Normal file
View File

@ -0,0 +1,69 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Calendar.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["frommonth"]) || !isset($_POST["fromday"]) || !isset($_POST["fromyear"]) ) {
UI::exitError(getMLText("add_event"),getMLText("error_occured"));
}
if (!isset($_POST["tomonth"]) || !isset($_POST["today"]) || !isset($_POST["toyear"]) ) {
UI::exitError(getMLText("add_event"),getMLText("error_occured"));
}
if (!isset($_POST["name"]) || !isset($_POST["comment"]) ) {
UI::exitError(getMLText("add_event"),getMLText("error_occured"));
}
$name = sanitizeString($_POST["name"]);
$comment = sanitizeString($_POST["comment"]);
$from = mktime(0,0,0, sanitizeString($_POST["frommonth"]), sanitizeString($_POST["fromday"]), sanitizeString($_POST["fromyear"]));
$to = mktime(23,59,59, sanitizeString($_POST["tomonth"]), sanitizeString($_POST["today"]), sanitizeString($_POST["toyear"]));
if ($to<$from){
$to= mktime(23,59,59, sanitizeString($_POST["frommonth"]), sanitizeString($_POST["fromday"]), sanitizeString($_POST["fromyear"]));
}
$res = addEvent($from, $to, $name, $comment);
if (is_bool($res) && !$res) {
UI::exitError(getMLText("add_event"),getMLText("error_occured"));
}
add_log_line("?name=".$name."&from=".$from."&to=".$to);
header("Location:../out/out.Calendar.php?mode=w&day=".$_POST["fromday"]."&year=".$_POST["fromyear"]."&month=".$_POST["frommonth"]);
?>

81
op/op.AddFile.php Normal file
View File

@ -0,0 +1,81 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
if ($document->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']!=0){
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("uploading_failed"));
}
$name = sanitizeString($_POST["name"]);
$comment = sanitizeString($_POST["comment"]);
$userfiletmp = $_FILES["userfile"]["tmp_name"];
$userfiletype = sanitizeString($_FILES["userfile"]["type"]);
$userfilename = sanitizeString($_FILES["userfile"]["name"]);
$lastDotIndex = strrpos(basename($userfilename), ".");
if (is_bool($lastDotIndex) && !$lastDotIndex)
$fileType = ".";
else
$fileType = substr($userfilename, $lastDotIndex);
$res = $document->addDocumentFile($name, $comment, $user, $userfiletmp,
basename($userfilename),$fileType, $userfiletype );
if (is_bool($res) && !$res) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
}
add_log_line("?name=".$name."&documentid=".$documentid);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

70
op/op.AddSubFolder.php Normal file
View File

@ -0,0 +1,70 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["folderid"]) || !is_numeric($_POST["folderid"]) || intval($_POST["folderid"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderid = $_POST["folderid"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderPathHTML = getFolderPathHTML($folder, true);
if ($folder->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
$sequence = $_POST["sequence"];
if (!is_numeric($sequence)) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("invalid_sequence"));
}
$name = sanitizeString($_POST["name"]);
$comment = sanitizeString($_POST["comment"]);
$subFolder = $folder->addSubFolder($name, $comment, $user, $sequence);
if (!is_object($subFolder)) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
}
add_log_line("?name=".$name."&folderid=".$folderid);
header("Location:../out/out.ViewFolder.php?folderid=".$folderid."&showtree=".$_POST["showtree"]);
?>

224
op/op.ApproveDocument.php Normal file
View File

@ -0,0 +1,224 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Utils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!isset($_POST["version"]) || !is_numeric($_POST["version"]) || intval($_POST["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version = $_POST["version"];
$content = $document->getContentByVersion($version);
if (!is_object($content)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
// operation is admitted only for last deocument version
$latestContent = $document->getLatestContent();
if ($latestContent->getVersion()!=$version) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
// verify if document has expired
if ($document->hasExpired()){
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!isset($_POST["approvalStatus"]) || !is_numeric($_POST["approvalStatus"]) ||
(intval($_POST["approvalStatus"])!=1 && intval($_POST["approvalStatus"])!=-1)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_approval_status"));
}
// retrieve the approve status for the current user.
$approvalStatus = $user->getApprovalStatus($documentid, $version);
if (count($approvalStatus["indstatus"]) == 0 && count($approvalStatus["grpstatus"]) == 0) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if ($_POST["approvalType"] == "ind") {
$indApprover = true;
if (count($approvalStatus["indstatus"])==0) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if ($approvalStatus["indstatus"][0]["status"]==-2) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
// User is eligible to make this update.
$comment = sanitizeString($_POST["comment"]);
$queryStr = "INSERT INTO `tblDocumentApproveLog` (`approveID`, `status`, `comment`, `date`, `userID`) ".
"VALUES ('". $approvalStatus["indstatus"][0]["approveID"] ."', '".
$_POST["approvalStatus"] ."', '". $comment ."', NOW(), '". $user->getID() ."')";
$res=$db->getResult($queryStr);
if (is_bool($res) && !res) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("approval_update_failed"));
}
else {
// Send an email notification to the document updater.
$subject = $settings->_siteName.": ".$document->getName().", v.".$version." - ".getMLText("approval_submit_email");
$message = getMLText("approval_submit_email")."\r\n";
$message .=
getMLText("name").": ".$document->getName()."\r\n".
getMLText("version").": ".$version."\r\n".
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
getMLText("status").": ".getApprovalStatusText($_POST["approvalStatus"])."\r\n".
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);
Email::toIndividual($user, $content->getUser(), $subject, $message);
// Send notification to subscribers.
$nl=$document->getNotifyList();
Email::toList($user, $nl["users"], $subject, $message);
foreach ($nl["groups"] as $grp) {
Email::toGroup($user, $grp, $subject, $message);
}
}
}
else if ($_POST["approvalType"] == "grp") {
$grpApprover=false;
foreach ($approvalStatus["grpstatus"] as $gs) {
if ($_POST["approvalGroup"] == $gs["required"]) {
if ($gs["status"]==-2) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$grpStatus=$gs;
$grpApprover=true;
break;
}
}
if (!$grpApprover) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
// User is eligible to make this update.
$comment = sanitizeString($_POST["comment"]);
$queryStr = "INSERT INTO `tblDocumentApproveLog` (`approveID`, `status`, `comment`, `date`, `userID`) ".
"VALUES ('". $grpStatus["approveID"] ."', '".
$_POST["approvalStatus"] ."', '". $comment ."', NOW(), '". $user->getID() ."')";
$res=$db->getResult($queryStr);
if (is_bool($res) && !res) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("approval_update_failed"));
}
else {
// Send an email notification to the document updater.
$grp = getGroup($grpStatus["required"]);
$subject = $settings->_siteName.": ".$document->getName().", v.".$version." - ".getMLText("approval_submit_email");
$message = getMLText("approval_submit_email")."\r\n";
$message .=
getMLText("name").": ".$document->getName()."\r\n".
getMLText("version").": ".$version."\r\n".
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
getMLText("status").": ".getApprovalStatusText($_POST["approvalStatus"])."\r\n".
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);
Email::toIndividual($user, $content->getUser(), $subject, $message);
// Send notification to subscribers.
$nl=$document->getNotifyList();
Email::toList($user, $nl["users"], $subject, $message);
foreach ($nl["groups"] as $grp) {
Email::toGroup($user, $grp, $subject, $message);
}
}
}
//
// Check to see if the overall status for the document version needs to be
// updated.
//
if ($_POST["approvalStatus"]==-1){
$content->setStatus(S_REJECTED,$comment,$user);
}else{
$docApprovalStatus = $content->getApprovalStatus(true);
if (is_bool($docApprovalStatus) && !$docApprovalStatus) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("cannot_retrieve_approval_snapshot"));
}
$approvalCT = 0;
$approvalTotal = 0;
foreach ($docApprovalStatus as $drstat) {
if ($drstat["status"] == 1) {
$approvalCT++;
}
if ($drstat["status"] != -2) {
$approvalTotal++;
}
}
// If all approvals have been received and there are no rejections, retrieve a
// count of the approvals required for this document.
if ($approvalCT == $approvalTotal) {
// Change the status to released.
$newStatus=2;
$content->setStatus($newStatus, getMLText("automatic_status_update"), $user);
}
}
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

77
op/op.CreateDump.php Normal file
View File

@ -0,0 +1,77 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
$dump_name = $settings->_contentDir.time().".sql";
$h=fopen($dump_name,"w");
if (is_bool($h)&&!$h)
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
$tables = $db->TableList('TABLES');
foreach ($tables as $table){
$query = "SELECT * FROM ".$table;
$records = $db->getResultArray($query);
fwrite($h,"\n-- TABLE: ".$table."--\n\n");
foreach ($records as $record){
$values="";
for ($i=0;$i<(count($record)/2);$i++){
if (is_numeric($record[$i])) $values .= $record[$i];
else $values .= "'".$record[$i]."'";
if ($i<(count($record)/2-1)) $values .= ",";
}
fwrite($h, "INSERT INTO " . $table . " VALUES (" . $values . ");\n");
}
}
fclose($h);
if (gzcompressfile($dump_name,9)) unlink($dump_name);
else UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
add_log_line();
header("Location:../out/out.BackupTools.php");
?>

View File

@ -0,0 +1,210 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
// Adds file header to the tar file, it is used before adding file content.
// f: file resource (provided by eg. fopen)
// phisfn: path to file
// archfn: path to file in archive, directory names must be followed by '/'
// code by calmarius at nospam dot atw dot hu
function TarAddHeader($f,$phisfn,$archfn)
{
$info=stat($phisfn);
$ouid=sprintf("%6s ", decoct($info[4]));
$ogid=sprintf("%6s ", decoct($info[5]));
$omode=sprintf("%6s ", decoct(fileperms($phisfn)));
$omtime=sprintf("%11s", decoct(filemtime($phisfn)));
if (@is_dir($phisfn))
{
$type="5";
$osize=sprintf("%11s ", decoct(0));
}
else
{
$type='';
$osize=sprintf("%11s ", decoct(filesize($phisfn)));
clearstatcache();
}
$dmajor = '';
$dminor = '';
$gname = '';
$linkname = '';
$magic = '';
$prefix = '';
$uname = '';
$version = '';
$chunkbeforeCS=pack("a100a8a8a8a12A12",$archfn, $omode, $ouid, $ogid, $osize, $omtime);
$chunkafterCS=pack("a1a100a6a2a32a32a8a8a155a12", $type, $linkname, $magic, $version, $uname, $gname, $dmajor, $dminor ,$prefix,'');
$checksum = 0;
for ($i=0; $i<148; $i++) $checksum+=ord(substr($chunkbeforeCS,$i,1));
for ($i=148; $i<156; $i++) $checksum+=ord(' ');
for ($i=156, $j=0; $i<512; $i++, $j++) $checksum+=ord(substr($chunkafterCS,$j,1));
fwrite($f,$chunkbeforeCS,148);
$checksum=sprintf("%6s ",decoct($checksum));
$bdchecksum=pack("a8", $checksum);
fwrite($f,$bdchecksum,8);
fwrite($f,$chunkafterCS,356);
return true;
}
// Writes file content to the tar file must be called after a TarAddHeader
// f:file resource provided by fopen
// phisfn: path to file
// code by calmarius at nospam dot atw dot hu
function TarWriteContents($f,$phisfn)
{
if (@is_dir($phisfn))
{
return;
}
else
{
$size=filesize($phisfn);
$padding=$size % 512 ? 512-$size%512 : 0;
$f2=fopen($phisfn,"rb");
while (!feof($f2)) fwrite($f,fread($f2,1024*1024));
$pstr=sprintf("a%d",$padding);
fwrite($f,pack($pstr,''));
}
}
// Adds 1024 byte footer at the end of the tar file
// f: file resource
// code by calmarius at nospam dot atw dot hu
function TarAddFooter($f)
{
fwrite($f,pack('a1024',''));
}
// thanks to Doudoux
function getFolderPathPlainAST($folder) {
$path="";
$folderPath = $folder->getPath();
for ($i = 0; $i < count($folderPath); $i++) {
$path .= $folderPath[$i]->getName();
if ($i+1 < count($folderPath)) $path .= "/";
}
return $path;
}
function createFolderTar($folder,$ark)
{
global $settings,$human_readable;
$documents=$folder->getDocuments();
foreach ($documents as $document){
if (file_exists($settings->_contentDir.$document->getDir())){
if ($human_readable){
// create an archive containing the files with original names and DMS path
// thanks to Doudoux
$latestContent = $document->getLatestContent();
if (is_object($latestContent))
{
TarAddHeader(
$ark,
$settings->_contentDir.$latestContent->getDir().$latestContent->getVersion().$latestContent->getFileType(),
getFolderPathPlainAST($folder)."/".$document->getID()."_".mydmsDecodeString($latestContent->getOriginalFileName()));
TarWriteContents($ark, $settings->_contentDir.$latestContent->getDir().$latestContent->getVersion().$latestContent->getFileType());
}
}else{
// create a server backup archive
$handle = opendir($settings->_contentDir.$document->getDir());
while ($entry = readdir($handle) )
{
if (!is_dir($settings->_contentDir.$document->getDir().$entry)){
TarAddHeader($ark,$settings->_contentDir.$document->getDir().$entry,$document->getDir().$entry);
TarWriteContents($ark,$settings->_contentDir.$document->getDir().$entry);
}
}
closedir($handle);
}
}
}
$subFolders=$folder->getSubfolders();
foreach ($subFolders as $folder)
if (!createFolderTar($folder,$ark))
return false;
return true;
}
if (!isset($_GET["targetidform2"]) || !is_numeric($_GET["targetidform2"]) || intval($_GET["targetidform2"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
}
$folderid = $_GET["targetidform2"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
}
$human_readable = (isset($_GET["human_readable"]) && $_GET["human_readable"]==1 ? true : false);
if ($human_readable)$ark_name = $settings->_contentDir.time()."_".$folderid."_HR.tar";
else $ark_name = $settings->_contentDir.time()."_".$folderid.".tar";
$ark = fopen($ark_name,"w");
if (!createFolderTar($folder,$ark)) {
fclose($ark);
unlink($ark_name);
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
TarAddFooter($ark);
fclose($ark);
if (gzcompressfile($ark_name,9)) unlink($ark_name);
else UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
add_log_line();
header("Location:../out/out.BackupTools.php");
?>

View File

@ -0,0 +1,97 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
UI::htmlStartPage("Create Initial Status Index");
UI::globalNavigation();
UI::pageNavigation("Create Initial Status Index");
UI::contentHeading("Generate a New Document Status Index.");
UI::contentContainerStart();
if (!$user->isAdmin()) {
print "<p>Error: User must have administrative privileges to create the status index.</p>";
UI::contentContainerEnd();
UI::htmlEndPage();
exit;
}
if (!isset($_GET["genIndex"]) || $_GET["genIndex"]!=1) {
print "<form method=\"GET\">";
print "<input type=\"checkbox\" name=\"genIndex\" id=\"genIndex\" value=\"1\"/><label for=\"genIndex\">Generate the Initial Status Index (for MyDMS upgrades only)</label>";
print "<p><input type=\"submit\" value=\"go\"/></p>";
print "</form>";
UI::contentContainerEnd();
UI::htmlEndPage();
exit;
}
$queryStr = "SELECT `tblDocumentContent`.`document`, `tblDocumentContent`.`version` FROM `tblDocumentContent`";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr)) {
print "<p>Error: unable to retrieve document content listing.</p>";
UI::contentContainerEnd();
UI::htmlEndPage();
exit;
}
print "<ul>";
foreach ($resArr as $row) {
echo "<li>Creating status log for: '".$row["document"]."', version: '".$row["version"]."'";
$queryStr = "INSERT INTO `tblDocumentStatus` (`documentID`, `version`) ".
"VALUES ('".$row["document"]."', '".$row["version"]."')";
if (!$db->getResult($queryStr)) {
print "<p>Error: unable to insert status row.</p>";
echo "</li>";
UI::contentContainerEnd();
UI::htmlEndPage();
exit;
}
$statusID = $db->getInsertID();
$queryStr = "INSERT INTO `tblDocumentStatusLog` (`statusID`, `status`, `comment`, `date`, `userID`) ".
"VALUES ('".$statusID."', '2', '-', NOW(), '".$user->getID()."')";
if (!$db->getResult($queryStr)) {
print "<p>Error: unable to insert status log entry.</p>";
echo "</li>";
UI::contentContainerEnd();
UI::htmlEndPage();
exit;
}
echo "</li>";
}
print "<ul>";
print "<p>Status Index Generation is complete.</p>";
UI::contentContainerEnd();
UI::htmlEndPage();
?>

View File

@ -0,0 +1,117 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
UI::htmlStartPage("Create Document Folder Index");
UI::globalNavigation();
UI::pageNavigation("Create Document Folder Index");
UI::contentHeading("Indexing Documents...");
if (!$user->isAdmin()) {
UI::contentContainer("<p>Permission denied.</p>");
UI::htmlPageEnd();
exit;
}
function getTime() {
if (function_exists('microtime')) {
$tm = microtime();
$tm = explode(' ', $tm);
return (float) sprintf('%f', $tm[1] + $tm[0]);
}
return time();
}
// ------------------------------------- Suche starten --------------------------------------------
UI::contentContainerStart();
$startTime = getTime();
$results = array();
//searchInFolder($startFolder);
//
// Construct the SQL query that will be used to search the database.
//
// Create the keyword search string. This search spans up to three columns
// in the database: keywords, name and comment.
//
// The base query.
//
$searchQuery = "SELECT `tblDocuments`.* FROM `tblDocuments` ";
// Send the search query to the database.
$resArr = $db->getResultArray($searchQuery);
// Assemble the results into an array of MyDMS Document objects.
if (!is_bool($resArr) && count($resArr)>0) {
echo "<ol>";
foreach($resArr as $docArr) {
$doc = new Document($docArr["id"],
$docArr["name"],
$docArr["comment"],
$docArr["date"],
$docArr["expires"],
$docArr["owner"],
$docArr["folder"],
$docArr["inheritAccess"],
$docArr["defaultAccess"],
$docArr["lockUser"],
$docArr["keywords"],
$docArr["sequence"]);
// Make sure that the folder search path is also updated.
$folder = $doc->getFolder();
$path = $folder->getPath();
$flist = "";
foreach ($path as $f) {
$flist .= ":".$f->getID();
}
if (strlen($flist)>1) {
$flist .= ":";
}
$queryStr = "UPDATE tblDocuments SET folderList = '" . $flist . "' WHERE id = ". $doc->getID();
$db->getResult($queryStr);
echo "<li>Updating docID '".$doc->getID()."' -- '".$flist."'</li>";
}
echo "</ol>";
}
$searchTime = getTime() - $startTime;
$searchTime = round($searchTime, 2);
echo "<p>";
printMLText("search_time", array("time" => $searchTime));
UI::contentContainerEnd();
UI::htmlEndPage();
?>

View File

@ -0,0 +1,75 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
function createVersionigFiles($folder)
{
global $settings;
$documents = $folder->getDocuments();
foreach ($documents as $document)
if (!createVersionigFile($document))
return false;
$subFolders = $folder->getSubFolders();
foreach ($subFolders as $folder)
if (!createVersionigFiles($folder))
return false;
return true;
}
if (!isset($_GET["targetidform1"]) || !is_numeric($_GET["targetidform1"]) || intval($_GET["targetidform1"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
}
$folderid = $_GET["targetidform1"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
}
if (!createVersionigFiles($folder)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
add_log_line();
header("Location:../out/out.BackupTools.php");
?>

179
op/op.DefaultKeywords.php Normal file
View File

@ -0,0 +1,179 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.ClassKeywords.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
$action = $_GET["action"];
//Neue Kategorie anlegen -----------------------------------------------------------------------------
if ($action == "addcategory") {
$name = sanitizeString($_GET["name"]);
if (is_object(getKeywordCategoryByName($name, $settings->_adminID))) {
UI::exitError(getMLText("admin_tools"),getMLText("keyword_exists"));
}
$newCategory = addKeywordCategory($settings->_adminID, $name);
if (!$newCategory) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
$categoryid=$newCategory->getID();
}
//Kategorie löschen ----------------------------------------------------------------------------------
else if ($action == "removecategory") {
if (!isset($_GET["categoryid"]) || !is_numeric($_GET["categoryid"]) || intval($_GET["categoryid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_keyword_category"));
}
$categoryid = $_GET["categoryid"];
$category = getKeywordCategory($categoryid);
if (!is_object($category)) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_keyword_category"));
}
$owner = $category->getOwner();
if ($owner->getID() != $settings->_adminID) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!$category->remove()) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
$categoryid=-1;
}
//Kategorie bearbeiten: Neuer Name --------------------------------------------------------------------
else if ($action == "editcategory") {
if (!isset($_GET["categoryid"]) || !is_numeric($_GET["categoryid"]) || intval($_GET["categoryid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_keyword_category"));
}
$categoryid = $_GET["categoryid"];
$category = getKeywordCategory($categoryid);
if (!is_object($category)) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_keyword_category"));
}
$owner = $category->getOwner();
if ($owner->getID() != $settings->_adminID) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
$name = sanitizeString($_GET["name"]);
if (!$category->setName($name)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
}
//Kategorie bearbeiten: Neue Stichwortliste ----------------------------------------------------------
else if ($action == "newkeywords") {
$categoryid = sanitizeString($_GET["categoryid"]);
$category = getKeywordCategory($categoryid);
$owner = $category->getOwner();
if ($owner->getID() != $settings->_adminID) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
$keywords = sanitizeString($_GET["keywords"]);
if (!$category->addKeywordList($keywords)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
}
//Kategorie bearbeiten: Stichwortliste bearbeiten ----------------------------------------------------------
else if ($action == "editkeywords")
{
if (!isset($_GET["categoryid"]) || !is_numeric($_GET["categoryid"]) || intval($_GET["categoryid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_keyword_category"));
}
$categoryid = $_GET["categoryid"];
$category = getKeywordCategory($categoryid);
if (!is_object($category)) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_keyword_category"));
}
$owner = $category->getOwner();
if ($owner->getID() != $settings->_adminID) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!isset($_GET["keywordsid"]) || !is_numeric($_GET["keywordsid"]) || intval($_GET["keywordsid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
$keywordsid = $_GET["keywordsid"];
$keywords = sanitizeString($_GET["keywords"]);
if (!$category->editKeywordList($keywordsid, $keywords)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
}
//Kategorie bearbeiten: Neue Stichwortliste löschen ----------------------------------------------------------
else if ($action == "removekeywords") {
if (!isset($_GET["categoryid"]) || !is_numeric($_GET["categoryid"]) || intval($_GET["categoryid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_keyword_category"));
}
$categoryid = $_GET["categoryid"];
$category = getKeywordCategory($categoryid);
if (!is_object($category)) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_keyword_category"));
}
$owner = $category->getOwner();
if ($owner->getID() != $settings->_adminID) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!isset($_GET["keywordsid"]) || !is_numeric($_GET["keywordsid"]) || intval($_GET["keywordsid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
$keywordsid = $_GET["keywordsid"];
if (!$category->removeKeywordList($keywordsid)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
}
else {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_command"));
}
header("Location:../out/out.DefaultKeywords.php?categoryid=".$categoryid);
?>

189
op/op.DocumentAccess.php Normal file
View File

@ -0,0 +1,189 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
switch ($_GET["action"]) {
case "setowner":
case "delaccess":
case "inherit":
$action = $_GET["action"];
break;
case "setdefault":
case "editaccess":
case "addaccess":
$action = $_GET["action"];
if (!isset($_GET["mode"]) || !is_numeric($_GET["mode"]) || $_GET["mode"]<M_ANY || $_GET["mode"]>M_ALL) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_access_mode"));
}
$mode = $_GET["mode"];
break;
case "notinherit":
$action = $_GET["action"];
if (strcasecmp($_GET["mode"], "copy") && strcasecmp($_GET["mode"], "empty")) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_access_mode"));
}
$mode = $_GET["mode"];
break;
default:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_action"));
break;
}
if (isset($_GET["userid"])) {
if (!is_numeric($_GET["userid"])) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_user"));
}
if (!strcasecmp($action, "addaccess") && $_GET["userid"]==-1) {
$userid = -1;
}
else {
if (!is_object(getUser($_GET["userid"]))) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_user"));
}
$userid = $_GET["userid"];
}
}
if (isset($_GET["groupid"])) {
if (!is_numeric($_GET["groupid"])) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_group"));
}
if (!strcasecmp($action, "addaccess") && $_GET["groupid"]==-1) {
$groupid = -1;
}
else {
if (!is_object(getGroup($_GET["groupid"]))) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_group"));
}
$groupid = $_GET["groupid"];
}
}
//Ändern des Besitzers ----------------------------------------------------------------------------
if ($action == "setowner") {
if (!$user->isAdmin()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!isset($_GET["ownerid"]) || !is_numeric($_GET["ownerid"]) || $_GET["ownerid"]<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_user"));
}
$newOwner = getUser($_GET["ownerid"]);
if (!is_object($newOwner)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_user"));
}
$document->setOwner($newOwner);
}
//Änderung auf nicht erben ------------------------------------------------------------------------
else if ($action == "notinherit") {
$defAccess = $document->getDefaultAccess();
$document->setInheritAccess(false);
$document->setDefaultAccess($defAccess);
//copy ACL of parent folder
if ($mode == "copy") {
$accessList = $folder->getAccessList();
foreach ($accessList["users"] as $userAccess)
$document->addAccess($userAccess->getMode(), $userAccess->getUserID(), true);
foreach ($accessList["groups"] as $groupAccess)
$document->addAccess($groupAccess->getMode(), $groupAccess->getGroupID(), false);
}
}
//Änderung auf erben ------------------------------------------------------------------------------
else if ($action == "inherit") {
$document->clearAccessList();
$document->setInheritAccess(true);
}
//Standardberechtigung setzen----------------------------------------------------------------------
else if ($action == "setdefault") {
$document->setDefaultAccess($mode);
}
//Bestehende Berechtigung änndern -----------------------------------------------------------------
else if ($action == "editaccess") {
if (isset($userid)) {
$document->changeAccess($mode, $userid, true);
}
else if (isset($groupid)) {
$document->changeAccess($mode, $groupid, false);
}
}
//Berechtigung löschen ----------------------------------------------------------------------------
else if ($action == "delaccess") {
if (isset($userid)) {
$document->removeAccess($userid, true);
}
else if (isset($groupid)) {
$document->removeAccess($groupid, false);
}
}
//Neue Berechtigung hinzufügen --------------------------------------------------------------------
else if ($action == "addaccess") {
if (isset($userid) && $userid != -1) {
$document->addAccess($mode, $userid, true);
}
if (isset($groupid) && $groupid != -1) {
$document->addAccess($mode, $groupid, false);
}
}
add_log_line("");
header("Location:../out/out.DocumentAccess.php?documentid=".$documentid);
?>

149
op/op.DocumentNotify.php Normal file
View File

@ -0,0 +1,149 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if (!isset($_GET["action"]) || (strcasecmp($_GET["action"], "delnotify") && strcasecmp($_GET["action"],"addnotify"))) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_action"));
}
$action = $_GET["action"];
if (isset($_GET["userid"]) && (!is_numeric($_GET["userid"]) || $_GET["userid"]<-1)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_user"));
}
$userid = $_GET["userid"];
if (isset($_GET["groupid"]) && (!is_numeric($_GET["groupid"]) || $_GET["groupid"]<-1)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_group"));
}
$groupid = $_GET["groupid"];
if (isset($_GET["groupid"])&&$_GET["groupid"]!=-1){
$group=getGroup($groupid);
if (!$group->isMember($user,true) && !$user->isAdmin())
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
//Benachrichtigung löschen ------------------------------------------------------------------------
if ($action == "delnotify"){
if (isset($userid)) {
$res = $document->removeNotify($userid, true);
}
else if (isset($groupid)) {
$res = $document->removeNotify($groupid, false);
}
switch ($res) {
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),isset($userid) ? getMLText("unknown_user") : getMLText("unknown_group"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("already_subscribed"));
break;
case -4:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case 0:
break;
}
}
//Benachrichtigung hinzufügen ---------------------------------------------------------------------
else if ($action == "addnotify") {
if ($userid != -1) {
$res = $document->addNotify($userid, true);
switch ($res) {
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_user"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("already_subscribed"));
break;
case -4:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case 0:
break;
}
}
if ($groupid != -1) {
$res = $document->addNotify($groupid, false);
switch ($res) {
case -1:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("unknown_group"));
break;
case -2:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("already_subscribed"));
break;
case -4:
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
break;
case 0:
break;
}
}
}
header("Location:../out/out.DocumentNotify.php?documentid=".$documentid);
?>

227
op/op.Download.php Normal file
View File

@ -0,0 +1,227 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Authentication.php");
if (isset($_GET["version"])){
// document download
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!is_numeric($_GET["version"]) || intval($_GET["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version = $_GET["version"];
$content = $document->getContentByVersion($version);
if (!is_object($content)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
//header("Content-Type: application/force-download; name=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($settings->_contentDir . $content->getPath() ));
header("Content-Disposition: attachment; filename=\"" . mydmsDecodeString($content->getOriginalFileName()) . "\"");
//header("Expires: 0");
header("Content-Type: " . $content->getMimeType());
//header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: must-revalidate");
//header("Pragma: no-cache");
readfile($settings->_contentDir . $content->getPath());
}else if (isset($_GET["file"])){
// file download
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!is_numeric($_GET["file"]) || intval($_GET["file"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_file_id"));
}
$fileid = $_GET["file"];
$file = getDocumentFile($fileid);
if (!is_object($file)) {
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-Transfer-Encoding: binary");
header("Content-Length: " . filesize($settings->_contentDir . $file->getPath() ));
header("Content-Disposition: attachment; filename=\"" . mydmsDecodeString($file->getOriginalFileName()) . "\"");
//header("Expires: 0");
//header("Content-Type: " . $content->getMimeType());
//header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: must-revalidate");
//header("Pragma: no-cache");
readfile($settings->_contentDir . $file->getPath());
}else if (isset($_GET["arkname"])){
// backup download
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!isset($_GET["arkname"]) || !file_exists($settings->_contentDir.$_GET["arkname"]) ) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
header('Content-Description: File Transfer');
//header("Content-Type: application/force-download; name=\"" . $_GET["arkname"] . "\"");
//header("Content-Type: application/octet-stream");
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($settings->_contentDir . $_GET["arkname"] ));
header("Content-Disposition: attachment; filename=\"" .$_GET["arkname"] . "\"");
// header("Expires: 0");
//header("Content-Type: " . $content->getMimeType());
//header("Cache-Control: no-cache, must-revalidate");
// header("Cache-Control: must-revalidate");
header("Cache-Control: public");
//header("Pragma: no-cache");
readfile($settings->_contentDir .$_GET["arkname"] );
}else if (isset($_GET["logname"])){
// log download
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!isset($_GET["logname"]) || !file_exists($settings->_contentDir.$_GET["arkname"]) ) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
header("Content-Type: text/plain; name=\"" . $_GET["logname"] . "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($settings->_contentDir . $_GET["logname"] ));
header("Content-Disposition: attachment; filename=\"" .$_GET["logname"] . "\"");
header("Cache-Control: must-revalidate");
readfile($settings->_contentDir .$_GET["logname"] );
}else if (isset($_GET["vfile"])){
// versioning info download
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
// update infos
createVersionigFile($document);
header("Content-Type: text/plain; name=\"" . $_GET["logname"] . "\"");
//header("Content-Type: application/force-download; name=\"" . $settings->_versioningFileName . "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($settings->_contentDir.$document->getDir().$settings->_versioningFileName )."\"");
header("Content-Disposition: attachment; filename=\"". $settings->_versioningFileName . "\"");
//header("Expires: 0");
//header("Content-Type: " . $content->getMimeType());
//header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: must-revalidate");
//header("Pragma: no-cache");
readfile($settings->_contentDir . $document->getDir() .$settings->_versioningFileName);
}else if (isset($_GET["dumpname"])){
// dump file download
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!isset($_GET["dumpname"]) || !file_exists($settings->_contentDir.$_GET["dumpname"]) ) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
header("Content-Type: application/zip; name=\"" . $_GET["dumpname"] . "\"");
//header("Content-Type: application/force-download; name=\"" . $_GET["dumpname"] . "\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: " . filesize($settings->_contentDir . $_GET["dumpname"] ));
header("Content-Disposition: attachment; filename=\"" .$_GET["dumpname"] . "\"");
//header("Expires: 0");
//header("Content-Type: " . $content->getMimeType());
//header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: must-revalidate");
//header("Pragma: no-cache");
readfile($settings->_contentDir .$_GET["dumpname"] );
}
add_log_line();
exit();
?>

74
op/op.EditComment.php Normal file
View File

@ -0,0 +1,74 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$versionid = $_POST["version"];
$version = $document->getContentByVersion($versionid);
if (!is_object($version)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$comment = sanitizeString($_POST["comment"]);
if (($version->getComment() == $comment) || $version->setComment($comment))
{
}
else {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
add_log_line("?documentid=".$documentid);
header("Location:../out/out.DocumentVersionDetail.php?documentid=".$documentid."&version=".$versionid);
?>

77
op/op.EditDocument.php Normal file
View File

@ -0,0 +1,77 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$name = sanitizeString($_POST["name"]);
$comment = sanitizeString($_POST["comment"]);
$keywords = sanitizeString($_POST["keywords"]);
$sequence = $_POST["sequence"];
if (!is_numeric($sequence)) {
$sequence="keep";
}
if (
(($document->getName() == $name) || $document->setName($name))
&& (($document->getComment() == $comment) || $document->setComment($comment))
&& (($document->getKeywords() == $keywords) || $document->setKeywords($keywords))
&& (($sequence == "keep") || $document->setSequence($sequence))
)
{
}
else {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
add_log_line("?documentid=".$documentid);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

74
op/op.EditEvent.php Normal file
View File

@ -0,0 +1,74 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Calendar.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["frommonth"]) || !isset($_POST["fromday"]) || !isset($_POST["fromyear"]) ) {
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
}
if (!isset($_POST["tomonth"]) || !isset($_POST["today"]) || !isset($_POST["toyear"]) ) {
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
}
if (!isset($_POST["name"]) || !isset($_POST["comment"]) ) {
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
}
if (!isset($_POST["eventid"])) {
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
}
$name = sanitizeString($_POST["name"]);
$comment = sanitizeString($_POST["comment"]);
$from = mktime(0,0,0, sanitizeString($_POST["frommonth"]), sanitizeString($_POST["fromday"]), sanitizeString($_POST["fromyear"]));
$to = mktime(23,59,59, sanitizeString($_POST["tomonth"]), sanitizeString($_POST["today"]), sanitizeString($_POST["toyear"]));
if ($to<$from){
$to= mktime(23,59,59, sanitizeString($_POST["frommonth"]), sanitizeString($_POST["fromday"]), sanitizeString($_POST["fromyear"]));
}
$res = editEvent($_POST["eventid"], $from, $to, $name, $comment );
if (is_bool($res) && !$res) {
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
}
add_log_line("?eventid=".$_POST["eventid"]."&name=".$name."&from=".$from."&to=".$to);
header("Location:../out/out.Calendar.php?mode=w&day=".$_POST["fromday"]."&year=".$_POST["fromyear"]."&month=".$_POST["frommonth"]);
?>

74
op/op.EditFolder.php Normal file
View File

@ -0,0 +1,74 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["folderid"]) || !is_numeric($_POST["folderid"]) || intval($_POST["folderid"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderid = $_POST["folderid"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderPathHTML = getFolderPathHTML($folder, true);
if ($folder->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
$name = sanitizeString($_POST["name"]);
$comment = sanitizeString($_POST["comment"]);
$sequence = $_POST["sequence"];
if (!is_numeric($sequence)) {
$sequence = "keep";
}
if (
(($folder->getName() == $name) || $folder->setName($name))
&& (($folder->getComment() == $comment) || $folder->setComment($comment))
&& ((!strcasecmp($sequence, "keep")) || $folder->setSequence($sequence))
)
{
}
else {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
}
add_log_line("?folderid=".$folderid);
header("Location:../out/out.ViewFolder.php?folderid=".$folderid."&showtree=".$_POST["showtree"]);
?>

80
op/op.EditUserData.php Normal file
View File

@ -0,0 +1,80 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
$fullname = sanitizeString($_POST["fullname"]);
$email = sanitizeString($_POST["email"]);
$comment = sanitizeString($_POST["comment"]);
if (isset($_POST["pwd"]) && ($_POST["pwd"] != ""))
$user->setPwd(md5($_POST["pwd"]));
if ($user->getFullName() != $fullname)
$user->setFullName($fullname);
if ($user->getEmail() != $email)
$user->setEmail($email);
if ($user->getComment() != $comment)
$user->setComment($comment);
if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']==0)
{
$lastDotIndex = strrpos(basename($_FILES["userfile"]["name"]), ".");
$fileType = substr($_FILES["userfile"]["name"], $lastDotIndex);
if ($fileType != ".jpg" && $filetype != ".jpeg") {
UI::exitError(getMLText("user_info"),getMLText("only_jpg_user_images"));
}
//verkleinern des Bildes, so dass es 150 Pixel hoch ist
// Originalbild einlesen
$origImg = imagecreatefromjpeg($_FILES["userfile"]["tmp_name"]);
$width = imagesx($origImg);
$height = imagesy($origImg);
// Thumbnail im Speicher erzeugen
$newHeight = 150;
$newWidth = ($width/$height) * $newHeight;
$newImg = imagecreatetruecolor($newWidth, $newHeight);
// Verkleinern
imagecopyresized($newImg, $origImg, 0, 0, 0, 0, $newWidth, $newHeight, $width, $height);
// In File speichern
imagejpeg($newImg, $_FILES["userfile"]["tmp_name"]);
// Aufräumen
imagedestroy($origImg);
imagedestroy($newImg);
$user->setImage($_FILES["userfile"]["tmp_name"], $_FILES["userfile"]["type"]);
}
add_log_line("?user=".$user->getLogin());
header("Location:../out/out.MyAccount.php");
?>

192
op/op.FolderAccess.php Normal file
View File

@ -0,0 +1,192 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["folderid"]) || !is_numeric($_GET["folderid"]) || intval($_GET["folderid"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderid = $_GET["folderid"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderPathHTML = getFolderPathHTML($folder, true);
if ($folder->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
switch ($_GET["action"]) {
case "setowner":
case "delaccess":
case "inherit":
$action = $_GET["action"];
break;
case "setdefault":
case "editaccess":
case "addaccess":
$action = $_GET["action"];
if (!isset($_GET["mode"]) || !is_numeric($_GET["mode"]) || $_GET["mode"]<M_ANY || $_GET["mode"]>M_ALL) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("invalid_access_mode"));
}
$mode = $_GET["mode"];
break;
case "notinherit":
$action = $_GET["action"];
if (strcasecmp($_GET["mode"], "copy") && strcasecmp($_GET["mode"], "empty")) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("invalid_access_mode"));
}
$mode = $_GET["mode"];
break;
default:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("invalid_action"));
break;
}
if (isset($_GET["userid"])) {
if (!is_numeric($_GET["userid"])) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_user"));
}
if (!strcasecmp($action, "addaccess") && $_GET["userid"]==-1) {
$userid = -1;
}
else {
if (!is_object(getUser($_GET["userid"]))) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_user"));
}
$userid = $_GET["userid"];
}
}
if (isset($_GET["groupid"])) {
if (!is_numeric($_GET["groupid"])) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_group"));
}
if (!strcasecmp($action, "addaccess") && $_GET["groupid"]==-1) {
$groupid = -1;
}
else {
if (!is_object(getGroup($_GET["groupid"]))) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_group"));
}
$groupid = $_GET["groupid"];
}
}
//Ändern des Besitzers ----------------------------------------------------------------------------
if ($action == "setowner") {
if (!$user->isAdmin()) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
if (!isset($_GET["ownerid"]) || !is_numeric($_GET["ownerid"]) || $_GET["ownerid"]<1) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_user"));
}
$newOwner = getUser($_GET["ownerid"]);
if (!is_object($newOwner)) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_user"));
}
$folder->setOwner($newOwner);
}
//Änderung auf nicht erben ------------------------------------------------------------------------
else if ($action == "notinherit") {
$defAccess = $folder->getDefaultAccess();
$folder->setInheritAccess(false);
$folder->setDefaultAccess($defAccess);
if ($mode == "copy") {
$parent = $folder->getParent();
$accessList = $parent->getAccessList();
foreach ($accessList["users"] as $userAccess)
$folder->addAccess($userAccess->getMode(), $userAccess->getUserID(), true);
foreach ($accessList["groups"] as $groupAccess)
$folder->addAccess($groupAccess->getMode(), $groupAccess->getGroupID(), false);
}
}
//Änderung auf erben ------------------------------------------------------------------------------
else if ($action == "inherit") {
if ($folderid == $settings->_rootFolderID || !$folder->getParent()) return;
$folder->clearAccessList();
$folder->setInheritAccess(true);
}
//Standardberechtigung setzen----------------------------------------------------------------------
else if ($action == "setdefault") {
$folder->setDefaultAccess($mode);
}
//Bestehende Berechtigung änndern -----------------------------------------------------------------
else if ($action == "editaccess") {
if (isset($userid)) {
$folder->changeAccess($mode, $userid, true);
}
else if (isset($groupid)) {
$folder->changeAccess($mode, $groupid, false);
}
}
//Berechtigung löschen ----------------------------------------------------------------------------
else if ($action == "delaccess") {
if (isset($userid)) {
$folder->removeAccess($userid, true);
}
else if (isset($groupid)) {
$folder->removeAccess($groupid, false);
}
}
//Neue Berechtigung hinzufügen --------------------------------------------------------------------
else if ($action == "addaccess") {
if (isset($userid) && $userid != -1) {
$folder->addAccess($mode, $userid, true);
}
if (isset($groupid) && $groupid != -1) {
$folder->addAccess($mode, $groupid, false);
}
}
add_log_line();
header("Location:../out/out.FolderAccess.php?folderid=".$folderid);
?>

145
op/op.FolderNotify.php Normal file
View File

@ -0,0 +1,145 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["folderid"]) || !is_numeric($_GET["folderid"]) || intval($_GET["folderid"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderid = $_GET["folderid"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
if (!isset($_GET["action"]) || (strcasecmp($_GET["action"], "delnotify") && strcasecmp($_GET["action"], "addnotify"))) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("invalid_action"));
}
$action = $_GET["action"];
if (isset($_GET["userid"]) && (!is_numeric($_GET["userid"]) || $_GET["userid"]<-1)) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_user"));
}
$userid = $_GET["userid"];
if (isset($_GET["groupid"]) && (!is_numeric($_GET["groupid"]) || $_GET["groupid"]<-1)) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_group"));
}
$groupid = $_GET["groupid"];
if (isset($_GET["groupid"])&&$_GET["groupid"]!=-1){
$group=getGroup($groupid);
if (!$group->isMember($user,true) && !$user->isAdmin())
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
$folderPathHTML = getFolderPathHTML($folder, true);
if ($folder->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
//Benachrichtigung löschen ------------------------------------------------------------------------
if ($action == "delnotify") {
if (isset($userid)) {
$res = $folder->removeNotify($userid, true);
}
else if (isset($groupid)) {
$res = $folder->removeNotify($groupid, false);
}
switch ($res) {
case -1:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),isset($userid) ? getMLText("unknown_user") : getMLText("unknown_group"));
break;
case -2:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("already_subscribed"));
break;
case -4:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("internal_error"));
break;
case 0:
break;
}
}
//Benachrichtigung hinzufügen ---------------------------------------------------------------------
else if ($action == "addnotify") {
if ($userid != -1) {
$res = $folder->addNotify($userid, true);
switch ($res) {
case -1:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_user"));
break;
case -2:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("already_subscribed"));
break;
case -4:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("internal_error"));
break;
case 0:
break;
}
}
if ($groupid != -1) {
$res = $folder->addNotify($groupid, false);
switch ($res) {
case -1:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("unknown_group"));
break;
case -2:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
break;
case -3:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("already_subscribed"));
break;
case -4:
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("internal_error"));
break;
case 0:
break;
}
}
}
header("Location:../out/out.FolderNotify.php?folderid=".$folderid);
?>

197
op/op.GroupMgr.php Normal file
View File

@ -0,0 +1,197 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (isset($_GET["action"])) $action = $_GET["action"];
else if (isset($_POST["action"])) $action = $_POST["action"];
//Neue Gruppe anlegen -----------------------------------------------------------------------------
if ($action == "addgroup") {
$name = sanitizeString($_GET["name"]);
$comment = sanitizeString($_GET["comment"]);
if (is_object(getGroupByName($name))) {
UI::exitError(getMLText("admin_tools"),getMLText("group_exists"));
}
$newGroup = addGroup($name, $comment);
if (!$newGroup) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
$groupid=$newGroup->getID();
add_log_line();
}
//Gruppe löschen ----------------------------------------------------------------------------------
else if ($action == "removegroup") {
if (!isset($_POST["groupid"]) || !is_numeric($_POST["groupid"]) || intval($_POST["groupid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
$group = getGroup($_POST["groupid"]);
if (!is_object($group)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
if (!$group->remove()) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
add_log_line(".php?groupid=".$groupid."&action=removegroup");
}
//Gruppe bearbeiten -------------------------------------------------------------------------------
else if ($action == "editgroup") {
if (!isset($_GET["groupid"]) || !is_numeric($_GET["groupid"]) || intval($_GET["groupid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
$groupid=$_GET["groupid"];
$group = getGroup($groupid);
if (!is_object($group)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
$name = sanitizeString($_GET["name"]);
$comment = sanitizeString($_GET["comment"]);
if ($group->getName() != $name)
$group->setName($name);
if ($group->getComment() != $comment)
$group->setComment($comment);
add_log_line();
}
//Benutzer zu Gruppe hinzufügen -------------------------------------------------------------------
else if ($action == "addmember") {
if (!isset($_POST["groupid"]) || !is_numeric($_POST["groupid"]) || intval($_POST["groupid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
$groupid=$_POST["groupid"];
$group = getGroup($groupid);
if (!is_object($group)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
if (!isset($_POST["userid"]) || !is_numeric($_POST["userid"]) || intval($_POST["userid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_user_id"));
}
$newMember = getUser($_POST["userid"]);
if (!is_object($newMember)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_user_id"));
}
if (!$group->isMember($newMember)){
$group->addUser($newMember);
if (isset($_POST["manager"])) $group->toggleManager($newMember);
}
add_log_line(".php?groupid=".$groupid."&userid=".$_POST["userid"]."&action=addmember");
}
//Benutzer aus Gruppe entfernen -------------------------------------------------------------------
else if ($action == "rmmember") {
if (!isset($_GET["groupid"]) || !is_numeric($_GET["groupid"]) || intval($_GET["groupid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
$groupid=$_GET["groupid"];
$group = getGroup($groupid);
if (!is_object($group)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
if (!isset($_GET["userid"]) || !is_numeric($_GET["userid"]) || intval($_GET["userid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_user_id"));
}
$oldMember = getUser($_GET["userid"]);
if (!is_object($oldMember)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_user_id"));
}
$group->removeUser($oldMember);
add_log_line();
}
// toggle manager flag
else if ($action == "tmanager") {
if (!isset($_GET["groupid"]) || !is_numeric($_GET["groupid"]) || intval($_GET["groupid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
$groupid=$_GET["groupid"];
$group = getGroup($groupid);
if (!is_object($group)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_group_id"));
}
if (!isset($_GET["userid"]) || !is_numeric($_GET["userid"]) || intval($_GET["userid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_user_id"));
}
$usertoedit = getUser($_GET["userid"]);
if (!is_object($usertoedit)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_user_id"));
}
$group->toggleManager($usertoedit);
add_log_line();
}
header("Location:../out/out.GroupMgr.php?groupid=".$groupid);
?>

64
op/op.LockDocument.php Normal file
View File

@ -0,0 +1,64 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Utils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$folder = $document->getFolder();
$docPathHTML = getFolderPathHTML($folder, true). " / <a href=\"../out/out.ViewDocument.php?documentid=".$documentid."\">".$document->getName()."</a>";
if ($document->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if ($document->isLocked()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("document_already_locked"));
}
if (!$document->setLocked($user)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
add_log_line();
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

285
op/op.Login.php Normal file
View File

@ -0,0 +1,285 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.Language.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassUser.php");
function _printMessage($heading, $message) {
UI::htmlStartPage($heading, "login");
UI::globalBanner();
UI::pageNavigation($heading);
UI::contentContainer($message);
UI::htmlEndPage();
return;
}
if (isset($_POST["login"])) {
$login = sanitizeString($_POST["login"]);
$login = str_replace("*", "", $login);
}
else if (isset($_GET["login"])) {
$login = sanitizeString($_GET["login"]);
$login = str_replace("*", "", $login);
}
if (!isset($login) || strlen($login)==0) {
_printMessage(getMLText("login_error_title"), "<p>".getMLText("login_not_given")."</p>\n".
"<p><a href='".$settings->_httpRoot."op/op.Logout.php'>".getMLText("back")."</a></p>\n");
exit;
}
$pwd = (string) $_POST["pwd"];
if (get_magic_quotes_gpc()) {
$pwd = stripslashes($pwd);
}
$guestUser = getUser($settings->_guestID);
if ((!isset($pwd) || strlen($pwd)==0) && ($login != $guestUser->getLogin())) {
_printMessage(getMLText("login_error_title"), "<p>".getMLText("login_error_text")."</p>\n".
"<p><a href='".$settings->_httpRoot."op/op.Logout.php'>".getMLText("back")."</a></p>\n");
exit;
}
//
// LDAP Sign In
//
/* new code by doudoux - TO BE TESTED */
$ldapSearchAttribut = "uid=";
$tmpDN = "uid=".$login.",".$settings->_ldapBaseDN;
if (isset($settings->_ldapType))
{
if ($settings->_ldapType==1)
{
$ldapSearchAttribut = "sAMAccountName=";
$tmpDN = $login.'@'.$settings->_ldapAccountDomainName;
}
}
/* end of new code */
$user = false;
if (isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) {
if (isset($settings->_ldapPort) && is_int($settings->_ldapPort)) {
$ds = ldap_connect($settings->_ldapHost, $settings->_ldapPort);
}
else {
$ds = ldap_connect($settings->_ldapHost);
}
if (!is_bool($ds)) {
// Ensure that the LDAP connection is set to use version 3 protocol.
// Required for most authentication methods, including SASL.
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
// try an anonymous bind first. If it succeeds, get the DN for the user.
$bind = @ldap_bind($ds);
$dn = false;
/* new code by doudoux - TO BE TESTED */
if ($bind) {
$search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut.$login);
if (!is_bool($search)) {
$info = ldap_get_entries($ds, $search);
if (!is_bool($info) && $info["count"]>0) {
$dn = $info[0]['dn'];
}
}
}
/* end of new code */
/* old code */
if ($bind) {
$search = ldap_search($ds, $settings->_ldapBaseDN, "uid=".$login);
if (!is_bool($search)) {
$info = ldap_get_entries($ds, $search);
if (!is_bool($info) && $info["count"]>0) {
$dn = $info[0]['dn'];
}
}
}
/* end of old code */
if (is_bool($dn)) {
// This is the fallback position, in case the anonymous bind does not
// succeed.
/* new code by doudoux - TO BE TESTED */
$dn = $tmpDN;
/* old code */
//$dn = "uid=".$login.",".$settings->_ldapBaseDN;
}
$bind = @ldap_bind($ds, $dn, $pwd);
if ($bind) {
// Successfully authenticated. Now check to see if the user exists within
// the database. If not, add them in, but do not add their password.
$user = getUserByLogin($login);
if (is_bool($user) && !$settings->_restricted) {
// Retrieve the user's LDAP information.
/* new code by doudoux - TO BE TESTED */
$search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut . $login);
/* old code */
//$search = ldap_search($ds, $dn, "uid=".$login);
if (!is_bool($search)) {
$info = ldap_get_entries($ds, $search);
if (!is_bool($info) && $info["count"]==1 && $info[0]["count"]>0) {
$user = addUser($login, null, $info[0]['cn'][0], $info[0]['mail'][0], $settings->_language, $settings->_theme, "");
}
}
}
if (!is_bool($user)) {
$userid = $user->getID();
}
}
ldap_close($ds);
}
}
if (is_bool($user)) {
//
// LDAP Authentication did not succeed or is not configured. Try internal
// authentication system.
//
//Retrieve user information from the database.
$queryStr = "SELECT * FROM tblUsers WHERE login = '".$login."'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false) {
_printMessage(getMLText("login_error_title"), "<p>".getMLText("internal_error")." - database: " . $db->getErrorMsg().
"</p>\n<p><a href='".$settings->_httpRoot."op/op.Logout.php'>".getMLText("back")."</a></p>\n");
exit;
}
if (count($resArr) == 0) {
_printMessage(getMLText("login_error_title"), "<p>".getMLText("login_error_text")."</p>\n".
"<p><a href='".$settings->_httpRoot."op/op.Logout.php'>".getMLText("back")."</a></p>\n");
exit;
}
$resArr = $resArr[0];
if (($resArr["id"] == $settings->_guestID) && (!$settings->_enableGuestLogin)) {
_printMessage(getMLText("login_error_title"), "<p>".getMLText("guest_login_disabled").
"</p>\n<p><a href='".$settings->_httpRoot."op/op.Logout.php'>".getMLText("back")."</a></p>\n");
exit;
}
//Vergleichen des Passwortes (falls kein guest-login)
// Assume that the password has been sent via HTTP POST. It would be careless
// (and dangerous) for passwords to be sent via GET.
if (($resArr["id"] != $settings->_guestID) && (md5($pwd) != $resArr["pwd"])) {
_printMessage(getMLText("login_error_title"), "<p>".getMLText("login_error_text").
"</p>\n<p><a href='".$settings->_httpRoot."op/op.Logout.php'>".getMLText("back")."</a></p>\n");
exit;
}
$userid = $resArr["id"];
$user = getUser($userid);
}
// Löschen von Sitzungen, die älter als 24h sind
// Delete any sessions that are more than 24 hours old. Probably not the most
// reliable place to put this check -- move to inc.Authentication.php?
$queryStr = "DELETE FROM tblSessions WHERE " . mktime() . " - lastAccess > 86400";
if (!$db->getResult($queryStr)) {
_printMessage(getMLText("login_error_title"), "<p>".getMLText("error_occured").": ".$db->getErrorMsg()."</p>");
exit;
}
//Erstellen einer Sitzungs-ID
$id = "" . rand() . mktime() . rand() . "";
$id = md5($id);
// Capture the user's language and theme settings.
if (isset($_POST["lang"]) && strlen($_POST["lang"])>0 && is_numeric(array_search($_POST["lang"],getLanguages())) ) {
$lang = sanitizeString($_POST["lang"]);
$user->setLanguage($lang);
}
else if (isset($_GET["lang"]) && strlen($_GET["lang"])>0 && is_numeric(array_search($_GET["lang"],getLanguages())) ) {
$lang = sanitizeString($_GET["lang"]);
$user->setLanguage($lang);
}
else {
$lang = $user->getLanguage();
if (strlen($lang)==0) {
$lang = $settings->_language;
$user->setLanguage($lang);
}
}
if (isset($_POST["sesstheme"]) && strlen($_POST["sesstheme"])>0 && is_numeric(array_search($_POST["sesstheme"],UI::getStyles())) ) {
$sesstheme = sanitizeString($_POST["sesstheme"]);
$user->setTheme($sesstheme);
}
else if (isset($_GET["sesstheme"]) && strlen($_GET["sesstheme"])>0 && is_numeric(array_search($_GET["sesstheme"],UI::getStyles())) ) {
$sesstheme = sanitizeString($_GET["sesstheme"]);
$user->setTheme($sesstheme);
}
else {
$sesstheme = $user->getTheme();
if (strlen($sesstheme)==0) {
$sesstheme = $settings->_theme;
$user->setTheme($sesstheme);
}
}
//Einfügen eines neuen Datensatzes in tblSessions
$queryStr = "INSERT INTO tblSessions (id, userID, lastAccess, theme, language) ".
"VALUES ('".$id."', ".$userid.", ".mktime().", '".$sesstheme."', '".$lang."')";
if (!$db->getResult($queryStr)) {
_printMessage(getMLText("login_error_title"), "<p>".getMLText("error_occured").": ".$db->getErrorMsg()."</p>");
exit;
}
//Setzen des Sitzungs-Cookies
// Set the session cookie.
setcookie("mydms_session", $id, 0, $settings->_httpRoot);
// TODO: by the PHP manual: The superglobals $_GET and $_REQUEST are already decoded.
// Using urldecode() on an element in $_GET or $_REQUEST could have unexpected and dangerous results.
if (isset($_POST["referuri"]) && strlen($_POST["referuri"])>0) {
$referuri = urldecode($_POST["referuri"]);
}
else if (isset($_GET["referuri"]) && strlen($_GET["referuri"])>0) {
$referuri = urldecode($_GET["referuri"]);
}
add_log_line();
if (isset($referuri) && strlen($referuri)>0) {
header("Location: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'] . $referuri);
}
else {
header("Location: ../".(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=1"));
}
//_printMessage(getMLText("login_ok"),
// "<p><a href='".$settings->_httpRoot.(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php")."'>".getMLText("continue")."</a></p>");
?>

52
op/op.Logout.php Normal file
View File

@ -0,0 +1,52 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
//Code when running PHP as Module -----------------------------------------------------------------
/*
setcookie("mydms_logged_out", "true", 0, $settings->_httpRoot);
header("Location: ../out/out.ViewFolder.php");
print "Logout successful";
*/
//Code when running PHP in CGI-Mode ---------------------------------------------------------------
//Delete from tblSessions
$dms_session = $_COOKIE["mydms_session"];
$dms_session = sanitizeString($dms_session);
$queryStr = "DELETE FROM tblSessions WHERE id = '$dms_session'";
if (!$db->getResult($queryStr))
die ("Error while removing session from tblSessions: " . $db->getErrorMsg());
//Delete Cookie
setcookie("mydms_session", $_COOKIE["mydms_session"], time()-3600, $settings->_httpRoot);
//Forward to Login-page
header("Location: ../out/out.Login.php");
?>

115
op/op.ManageNotify.php Normal file
View File

@ -0,0 +1,115 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
function add_folder_notify($folder,$userid,$recursefolder,$recursedoc)
{
$folder->addNotify($userid, true);
if ($recursedoc){
// include all folder's document
$documents = $folder->getDocuments();
$documents = filterAccess($documents, getUser($userid), M_READ);
foreach($documents as $document)
$document->addNotify($userid, true);
}
if ($recursefolder){
// recurse all folder's folders
$subFolders = $folder->getSubFolders();
$subFolders = filterAccess($subFolders, getUser($userid), M_READ);
foreach($subFolders as $subFolder)
add_folder_notify($subFolder,$userid,$recursefolder,$recursedoc);
}
}
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 ($_GET["type"]=="document"){
if ($_GET["action"]=="add"){
if (!isset($_POST["docidform2"])) UI::exitError(getMLText("my_account"),getMLText("error_occured"));
$documentid = $_POST["docidform2"];
}else if ($_GET["action"]=="del"){
if (!isset($_GET["id"])) UI::exitError(getMLText("my_account"),getMLText("error_occured"));
$documentid = $_GET["id"];
}else UI::exitError(getMLText("my_account"),getMLText("error_occured"));
$document = getDocument($documentid);
$userid=$user->getID();
if ($document->getAccessMode($user) < M_READ)
UI::exitError(getMLText("my_account"),getMLText("error_occured"));
if ($_GET["action"]=="add") $document->addNotify($userid, true);
else if ($_GET["action"]=="del") $document->removeNotify($userid, true);
}else if ($_GET["type"]=="folder"){
if ($_GET["action"]=="add"){
if (!isset($_POST["targetidform1"])) UI::exitError(getMLText("my_account"),getMLText("error_occured"));
$folderid = $_POST["targetidform1"];
}else if ($_GET["action"]=="del"){
if (!isset($_GET["id"])) UI::exitError(getMLText("my_account"),getMLText("error_occured"));
$folderid = $_GET["id"];
}else UI::exitError(getMLText("my_account"),getMLText("error_occured"));
$folder = getFolder($folderid);
$userid=$user->getID();
if ($folder->getAccessMode($user) < M_READ)
UI::exitError(getMLText("my_account"),getMLText("error_occured"));
if ($_GET["action"]=="add"){
$recursefolder = isset($_POST["recursefolder"]);
$recursedoc = isset($_POST["recursedoc"]);
add_folder_notify($folder,$userid,$recursefolder,$recursedoc);
}else if ($_GET["action"]=="del") $folder->removeNotify($userid, true);
}
header("Location:../out/out.ManageNotify.php");
?>

73
op/op.MoveDocument.php Normal file
View File

@ -0,0 +1,73 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$oldFolder = $document->getFolder();
if (!isset($_GET["targetidform1"]) || !is_numeric($_GET["targetidform1"]) || $_GET["targetidform1"]<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_target_folder"));
}
$targetid = $_GET["targetidform1"];
$targetFolder = getFolder($targetid);
if (!is_object($targetFolder)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_target_folder"));
}
if (($document->getAccessMode($user) < M_READWRITE) || ($targetFolder->getAccessMode($user) < M_READWRITE)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if ($targetid != $oldFolder->getID()) {
if (!$document->setFolder($targetFolder)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
}
add_log_line();
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

71
op/op.MoveFolder.php Normal file
View File

@ -0,0 +1,71 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["folderid"]) || !is_numeric($_GET["folderid"]) || intval($_GET["folderid"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderid = $_GET["folderid"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
if ($folderid == $settings->_rootFolderID || !$folder->getParent()) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("cannot_move_root"));
}
if (!isset($_GET["targetidform1"]) || !is_numeric($_GET["targetidform1"]) || intval($_GET["targetidform1"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$targetid = $_GET["targetidform1"];
$targetFolder = getFolder($targetid);
if (!is_object($targetFolder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
if ($folder->getAccessMode($user) < M_READWRITE || $targetFolder->getAccessMode($user) < M_READWRITE) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
if (!$folder->setParent($targetFolder)) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
}
add_log_line();
header("Location:../out/out.ViewFolder.php?folderid=".$folderid."&showtree=".$_GET["showtree"]);
?>

View File

@ -0,0 +1,86 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Utils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if ($document->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!isset($_POST["version"]) || !is_numeric($_POST["version"]) || intval($_POST["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version = $_POST["version"];
$content = $document->getContentByVersion($version);
if (!is_object($content)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
if (!isset($_POST["overrideStatus"]) || !is_numeric($_POST["overrideStatus"]) ||
(intval($_POST["overrideStatus"])<-3 && intval($_POST["overrideStatus"])>2)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_status"));
}
$overallStatus = $content->getStatus();
// status change control
if ($overallStatus["status"] == S_REJECTED || $overallStatus["status"] == S_EXPIRED || $overallStatus["status"] == S_DRAFT_REV || $overallStatus["status"] == S_DRAFT_APP ) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("cannot_change_final_states"));
}
$reviewStatus = $content->getReviewStatus();
$approvalStatus = $content->getApprovalStatus();
$overrideStatus = $_POST["overrideStatus"];
$comment = sanitizeString($_POST["comment"]);
if ($overrideStatus != $overallStatus["status"]) {
if (!$content->setStatus($overrideStatus, $comment, $user)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
}
add_log_line("?documentid=".$documentid);
header("Location:../out/out.DocumentVersionDetail.php?documentid=".$documentid."&version=".$version);
?>

48
op/op.RemoveArchive.php Normal file
View File

@ -0,0 +1,48 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!isset($_POST["arkname"]) || !file_exists($settings->_contentDir.$_POST["arkname"]) ) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
if (!removeFile($settings->_contentDir.$_POST["arkname"])) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
add_log_line("?arkname=".$_POST["arkname"]);
header("Location:../out/out.BackupTools.php");
?>

59
op/op.RemoveDocument.php Normal file
View File

@ -0,0 +1,59 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if ($document->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied"));
}
$folder = $document->getFolder();
if (!$document->remove()) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("error_occured"));
}
add_log_line("?documentid=".$documentid);
header("Location:../out/out.ViewFolder.php?folderid=".$folder->getID());
?>

View File

@ -0,0 +1,69 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if (!isset($_POST["fileid"]) || !is_numeric($_POST["fileid"]) || intval($_POST["fileid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_file_id"));
}
$fileid = $_POST["fileid"];
$file = getDocumentFile($fileid);
if (!is_object($file)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_file_id"));
}
if (($document->getAccessMode($user) < M_ALL)&&($user->getID()!=$file->getUserID())) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!$document->removeDocumentFile($fileid)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
add_log_line("?documentid=".$documentid."&fileid=".$fileid);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

View File

@ -0,0 +1,75 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_GET["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if (!isset($_GET["linkid"]) || !is_numeric($_GET["linkid"]) || intval($_GET["linkid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_link_id"));
}
$linkid = $_GET["linkid"];
$link = getDocumentLink($linkid);
if (!is_object($link)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_link_id"));
}
$responsibleUser = $link->getUser();
$accessMode = $document->getAccessMode($user);
if (
($accessMode < M_READ)
|| (($accessMode == M_READ) && ($responsibleUser->getID() != $user->getID()))
|| (($accessMode > M_READ) && (!$user->isAdmin()) && ($responsibleUser->getID() != $user->getID()) && !$link->isPublic())
)
{
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!$document->removeDocumentLink($linkid)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
add_log_line("?documentid=".$documentid."&linkid=".$linkid);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

48
op/op.RemoveDump.php Normal file
View File

@ -0,0 +1,48 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!isset($_POST["dumpname"]) || !file_exists($settings->_contentDir.$_POST["dumpname"]) ) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
if (!removeFile($settings->_contentDir.$_POST["dumpname"])) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
add_log_line("?dumpname=".$_POST["dumpname"]);
header("Location:../out/out.BackupTools.php");
?>

60
op/op.RemoveEvent.php Normal file
View File

@ -0,0 +1,60 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.Utils.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Calendar.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["eventid"]) || !is_numeric($_POST["eventid"]) || intval($_POST["eventid"])<1) {
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
}
$event=getEvent($_POST["eventid"]);
if (($user->getID()!=$event["userID"])&&(!$user->isAdmin())){
UI::exitError(getMLText("edit_event"),getMLText("access_denied"));
}
$res = delEvent($_POST["eventid"]);
if (is_bool($res) && !$res) {
UI::exitError(getMLText("edit_event"),getMLText("error_occured"));
}
add_log_line("?id=".$_POST["eventid"]);
$dt=getdate($event["start"]);
header("Location:../out/out.Calendar.php?mode=w&day=".$dt["mday"]."&year=".$dt["year"]."&month=".$dt["mon"]);
?>

63
op/op.RemoveFolder.php Normal file
View File

@ -0,0 +1,63 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_GET["folderid"]) || !is_numeric($_GET["folderid"]) || intval($_GET["folderid"])<1) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
$folderid = $_GET["folderid"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id"));
}
if ($folderid == $settings->_rootFolderID || !$folder->getParent()) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("cannot_rm_root"));
}
if ($folder->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied"));
}
$parent=$folder->getParent();
if (!$folder->remove()) {
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured"));
}
add_log_line();
header("Location:../out/out.ViewFolder.php?folderid=".$parent->getID()."&showtree=".$_GET["showtree"]);
?>

View File

@ -0,0 +1,74 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
function removeFolderFiles($folder)
{
global $settings;
$documents = $folder->getDocuments();
foreach ($documents as $document)
removeDir($settings->_contentDir . $document->getDir());
$subFolders = $folder->getSubFolders();
foreach ($subFolders as $folder)
removeFolderFiles($folder);
return true;
}
if (!isset($_POST["folderid"]) || !is_numeric($_POST["folderid"]) || intval($_POST["folderid"])<1) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
}
$folderid = $_POST["folderid"];
$folder = getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
}
if (!removeFolderFiles($folder)) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
add_log_line();
header("Location:../out/out.BackupTools.php");
?>

53
op/op.RemoveLog.php Normal file
View File

@ -0,0 +1,53 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2010 Matteo Lucarelli
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!$user->isAdmin()) {
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!isset($_POST["logname"]) || !file_exists($settings->_contentDir.$_POST["logname"]) ) {
UI::exitError(getMLText("admin_tools"),getMLText("unknown_id"));
}
if (@readlink($settings->_contentDir."current.log")==$settings->_contentDir.$_POST["logname"]){
UI::exitError(getMLText("admin_tools"),getMLText("access_denied"));
}
if (!removeFile($settings->_contentDir.$_POST["logname"])) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
add_log_line("?logname=".$_POST["logname"]);
header("Location:../out/out.LogManagement.php");
?>

75
op/op.RemoveVersion.php Normal file
View File

@ -0,0 +1,75 @@
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
//
// 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
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
include("../inc/inc.AccessUtils.php");
include("../inc/inc.ClassAccess.php");
include("../inc/inc.ClassDocument.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.ClassFolder.php");
include("../inc/inc.ClassGroup.php");
include("../inc/inc.ClassUser.php");
include("../inc/inc.DBAccess.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.FileUtils.php");
include("../inc/inc.Language.php");
include("../inc/inc.ClassUI.php");
include("../inc/inc.Authentication.php");
if (!isset($_POST["documentid"]) || !is_numeric($_POST["documentid"]) || intval($_POST["documentid"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
$documentid = $_POST["documentid"];
$document = getDocument($documentid);
if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if ($document->getAccessMode($user) < M_ALL) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
if (!isset($_POST["version"]) || !is_numeric($_POST["version"]) || intval($_POST["version"])<1) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
$version_num = $_POST["version"];
$version = $document->getContentByVersion($version_num);
if (!is_object($version)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
}
if (count($document->getContent())==1) {
if (!$document->remove()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
}
else {
if (!$version->remove()) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
}
add_log_line("?documentid=".$documentid."&version".$version);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
?>

Some files were not shown because too many files have changed in this diff Show More