This repository was archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmemphis-documents.php
More file actions
63 lines (59 loc) · 2.51 KB
/
memphis-documents.php
File metadata and controls
63 lines (59 loc) · 2.51 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
58
59
60
61
62
63
<?php
/*
Plugin Name: Memphis Documents Library
Plugin URI: http://www.kingofnothing.net/memphis-documents-library/
Description: A documents repository for WordPress.
Author: Ian Howatson
Version: 2.6.15
Author URI: http://www.kingofnothing.net/
Date: 01/06/2015
Copyright 2015 Ian Howatson (email : ian@howatson.net)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
include 'mdocs-settings.php';
include 'mdocs-functions.php';
include 'mdocs-the-list.php';
include 'mdocs-file-info-large.php';
include 'mdocs-file-info-small.php';
include 'mdocs-social.php';
include 'mdocs-dashboard.php';
include 'mdocs-import.php';
include 'mdocs-export.php';
include 'mdocs-upload.php';
include 'mdocs-categories.php';
include 'mdocs-downloads.php';
include 'mdocs-versions.php';
include 'mdocs-batch-upload.php';
include 'mdocs-settings-page.php';
include 'mdocs-shortcodes.php';
include 'mdocs-localization.php';
include 'mdocs-browser-compatibility.php';
include 'mdocs-widgets.php';
include 'mdocs-doc-preview.php';
include 'mdocs-update-mime.php';
include 'mdocs-restore-defaults.php';
mdocs_nonce();
if(!headers_sent() && stripos($_SERVER['REQUEST_URI'], '/feed') === false) add_action('send_headers', 'mdocs_send_headers');
elseif (!is_numeric(stripos($_SERVER['REQUEST_URI'], '/feed'))) {
$message = sprintf('Premature output is preventing Memphis Documents Library from working properly. Outpust has started in %s on line %d.', $file, $line);
echo '<div style="border: 1em solid red; background: #fff; color: #f00; margin:2em; padding: 1em;">', htmlspecialchars($message), '</div>';
trigger_error($message);
die();
}
if ( is_admin()) add_action('admin_init', 'mdocs_send_headers_dashboard');
add_action('init', 'mdocs_localize');
add_action('admin_menu', 'mdocs_dashboard_menu');
add_action( 'wp_enqueue_scripts', 'mdocs_script' );
add_action('wp_footer', 'mdocs_document_ready_wp');
add_action('admin_footer', 'mdocs_document_ready_admin');
add_action( 'widgets_init', 'mdocs_widgets' );
?>