-
Notifications
You must be signed in to change notification settings - Fork 3
/
ndbae.php
45 lines (39 loc) · 1.39 KB
/
ndbae.php
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
<?php
/**
* Plugin Name: Network Deactivated but Active Elsewhere
* Plugin URI: https://github.com/brasofilo/Network-Deactivated-but-Active-Elsewhere
* Description: Inserts an indicator in the Network Plugins page whether a plugin is being used by any blog of the network. Shows the list of blogs on rollover.
* Version: 2013.10.14
* Author: Rodolfo Buaiz
* Author URI: http://rodbuaiz.com/
* Network: true
* License: GPLv2 or later
*
*
* 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.
* You may NOT assume that you can use any other version of the GPL.
*
* 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.
*/
# Busted!
!defined( 'ABSPATH' ) AND exit(
"<pre>Hi there! I'm just part of a plugin, <h1>¿what exactly are you looking for?"
);
if( is_network_admin() )
{
# Main class
require_once __DIR__ . '/inc/core.php';
# Dispatch updater
require_once __DIR__ . '/inc/plugin-update-dispatch.php';
define( 'B5F_NDBAE_FILE', plugin_basename( __FILE__ ) );
# STart uP
add_action(
'plugins_loaded',
array ( B5F_NDBAE_Main::get_instance(), 'plugin_setup' ),
10
);
}