Subversion Repositories oidplus

Rev

Rev 511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 511 Rev 532
Line 20... Line 20...
20
require_once __DIR__ . '/../../../includes/oidplus.inc.php';
20
require_once __DIR__ . '/../../../includes/oidplus.inc.php';
21
 
21
 
22
try {
22
try {
23
        OIDplus::init(true);
23
        OIDplus::init(true);
24
 
24
 
-
 
25
        if (OIDplus::baseConfig()->getValue('DISABLE_PLUGIN_OIDplusPagePublicAttachments', false)) {
-
 
26
                throw new OIDplusException(_L('This plugin was disabled by the system administrator!'));
-
 
27
        }
-
 
28
 
25
        originHeaders();
29
        originHeaders();
26
 
30
 
27
        if (!isset($_REQUEST['filename'])) {
31
        if (!isset($_REQUEST['filename'])) {
28
                http_response_code(400);
32
                http_response_code(400);
29
                throw new Exception(_L('Argument "%1" is missing','filename'));
33
                throw new Exception(_L('Argument "%1" is missing','filename'));