PluginProbe
Stream – Activity Log & Audit Trail / 3.2.1
Stream – Activity Log & Audit Trail v3.2.1
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
stream / stream.php

stream.php in Stream – Activity Log & Audit Trail 3.2.1, at stream.php

64 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Stream
4 * Plugin URI: https://wp-stream.com/
5 * Description: Stream tracks logged-in user activity so you can monitor every change made on your WordPress site in beautifully organized detail. All activity is organized by context, action and IP address for easy filtering. Developers can extend Stream with custom connectors to log any kind of action.
6 * Version: 3.2.1
7 * Author: XWP
8 * Author URI: https://xwp.co/
9 * License: GPLv2+
10 * Text Domain: stream
11 * Domain Path: /languages
12 */
13
14 /**
15 * Copyright (c) 2015 XWP.Co Pty Ltd. (https://xwp.co/)
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License, version 2 or, at
19 * your discretion, any later version, as published by the Free
20 * Software Foundation.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 */
31
32 if ( ! version_compare( PHP_VERSION, '5.3', '>=' ) ) {
33 load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
34 add_action( 'shutdown', 'wp_stream_fail_php_version' );
35 } else {
36 require __DIR__ . '/classes/class-plugin.php';
37 $plugin_class_name = 'WP_Stream\Plugin';
38 if ( class_exists( $plugin_class_name ) ) {
39 $GLOBALS['wp_stream'] = new $plugin_class_name();
40 }
41 }
42
43 /**
44 * Invoked when the PHP version check fails
45 * Load up the translations and add the error message to the admin notices.
46 */
47 function wp_stream_fail_php_version() {
48 load_plugin_textdomain( 'stream', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
49
50 $message = esc_html__( 'Stream requires PHP version 5.3+, plugin is currently NOT ACTIVE.', 'stream' );
51 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
52
53 echo wp_kses_post( $html_message );
54 }
55
56 /**
57 * Helper for external plugins which wish to use Stream
58 *
59 * @return WP_Stream\Plugin
60 */
61 function wp_stream_get_instance() {
62 return $GLOBALS['wp_stream'];
63 }
64