-
Notifications
You must be signed in to change notification settings - Fork 0
/
siwecos.php
executable file
·51 lines (40 loc) · 1.52 KB
/
siwecos.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
47
48
49
50
51
<?php
/*
Plugin Name: SIWECOS
Plugin URI: https://www.siwecos.de
Version: 1.0.1
Description: Validate your WordPress site against the SIWECOS.de security check
Author: SIWECOS.de
Author URI: https:/www.siwecos.de
License: GPL2
SIWECOS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
any later version.
SIWECOS 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 SIWECOS. If not, see http://www.gnu.org/licenses/gpl-2.0.html file.
*/
// Make sure we don't expose any info if called directly!
if ( ! function_exists( 'run_siwecos' ) ) {
return;
}
/**
* Main function
*/
function run_siwecos() {
define( 'SIWECOS_VERSION', '1.0.0' );
define( 'SIWECOS_PLUGIN_FILE', __FILE__ );
define( 'SIWECOS_PLUGIN_DIR', plugin_dir_path( SIWECOS_PLUGIN_FILE ) );
define( 'SIWECOS_LIB_DIR', trailingslashit( SIWECOS_PLUGIN_DIR . 'lib' ) );
define( 'SIWECOS_VIEW_DIR', trailingslashit( SIWECOS_PLUGIN_DIR . 'output' ) );
define( 'SIWECOS_API_URL', 'https://bla.siwecos.de/api/v1' );
require SIWECOS_LIB_DIR . 'class-siwecos.php';
require SIWECOS_LIB_DIR . 'class-siwecosrequest.php';
$siwecos = new SIWECOS();
$siwecos->run();
}
run_siwecos();