-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
57 lines (52 loc) · 1.9 KB
/
index.php
File metadata and controls
57 lines (52 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
***********************************************************************************************
* Documents / Dokumente
*
* Version 2.1
*
* This plugin lists member related documents in a member's profile.
*
* Several requirements must be met for this to happen:
*
* 1. All documents must be located in a 'Documents & Files' folder
*
* 2. All documents must be preceded by a sequential number
* e.g. '0015-Mustermann Max-declaration of membership.pdf'
* or '65-Meier Franz-termination.jpg'
*
* 3. The sequential number can either be
* - the member's 'usr_id'
* - the member's 'usr_uuid'
* - or a profile field with a sequential number (e.g. member number)
* (Note: The Membership Fee plugin can create corresponding membership numbers)
*
* The plugin checks whether the sequential number of a document matches the member number
* (usr_id, usr_uuid or member numer) and then displays the document.
*
* Author: rmb
*
* Compatible with Admidio version 5
*
* Usage:
*
* To install, run the file .../Documents/system/install.php.
*
* All further settings are made in the built-in preferences routine.
*
*
* @copyright rmb
* @see https://github.com/rmbinder/documents/
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0 only
***********************************************************************************************
*/
//Fehlermeldungen anzeigen
//error_reporting(E_ALL);
try {
require_once(__DIR__ . '/../../system/common.php');
require_once(__DIR__ . '/system/common_function.php');
$urlInst = ADMIDIO_URL . FOLDER_PLUGINS . PDS_PLUGIN_FOLDER. '/system/install.php';
$gMessage->show($gL10n->get('PLG_DOCUMENTS_CALLING_DIRECTLY_INFO', array('<a href="' . $urlInst .'">' . $urlInst . '</a>')));
} catch (Exception $e) {
$gMessage->show($e->getMessage());
}