| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Statify |
| 4 |
Description: Kompakte, begreifliche und datenschutzkonforme Statistik für WordPress. |
| 5 |
Author: Sergej Müller |
| 6 |
Author URI: http://wpcoder.de |
| 7 |
Plugin URI: http://statify.de |
| 8 |
Version: 1.2.8 |
| 9 |
*/ |
| 10 |
|
| 11 |
|
| 12 |
/* Quit */ |
| 13 |
defined('ABSPATH') OR exit; |
| 14 |
|
| 15 |
|
| 16 |
/* Konstanten */ |
| 17 |
define('STATIFY_FILE', __FILE__); |
| 18 |
define('STATIFY_BASE', plugin_basename(__FILE__)); |
| 19 |
|
| 20 |
|
| 21 |
/* Hooks */ |
| 22 |
add_action( |
| 23 |
'plugins_loaded', |
| 24 |
array( |
| 25 |
'Statify', |
| 26 |
'instance' |
| 27 |
) |
| 28 |
); |
| 29 |
register_activation_hook( |
| 30 |
__FILE__, |
| 31 |
array( |
| 32 |
'Statify_Install', |
| 33 |
'init' |
| 34 |
) |
| 35 |
); |
| 36 |
register_uninstall_hook( |
| 37 |
__FILE__, |
| 38 |
array( |
| 39 |
'Statify_Uninstall', |
| 40 |
'init' |
| 41 |
) |
| 42 |
); |
| 43 |
|
| 44 |
|
| 45 |
/* Autoload Init */ |
| 46 |
spl_autoload_register('statify_autoload'); |
| 47 |
|
| 48 |
/* Autoload Funktion */ |
| 49 |
function statify_autoload($class) { |
| 50 |
if ( in_array($class, array('Statify', 'Statify_Dashboard', 'Statify_Install', 'Statify_Uninstall', 'Statify_Table', 'Statify_XMLRPC')) ) { |
| 51 |
require_once( |
| 52 |
sprintf( |
| 53 |
'%s/inc/%s.class.php', |
| 54 |
dirname(__FILE__), |
| 55 |
strtolower($class) |
| 56 |
) |
| 57 |
); |
| 58 |
} |
| 59 |
} |