This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
r-vulnerability.php
46 lines (37 loc) · 1.35 KB
/
r-vulnerability.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
46
<?php
/**
* @package R-Vulnerability
*/
/*
Plugin Name: R-Vulnerability
Plugin URI: https://rommel.dk/plugins
Description: A plugin containing a vulnerability check of active plugins.
Version: 1.0
Author: Rommel
Author URI: https://rommel.dk/
Text Domain: rvulnerability
License: GPLv2
Copyright 2014 Rommel.dk
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
*/
// Autoload vendor dependencies and our plugins own classes (PSR-4).
$loader = require __DIR__ . '/vendor/autoload.php';
use Rommel\VulnerabilityWidget;
use Rommel\WpVulnDb\Client;
/**
* Define constant containing the text-domain for this plugin.
*/
define('RVULNERABILITY', 'rvulnerability');
/**
* Add a widget to the dashboard.
*/
add_action( 'wp_dashboard_setup', [new VulnerabilityWidget(RVULNERABILITY, new Client()), 'init'] );