PluginProbe
Statify / 1.5.3
Statify v1.5.3
2.0.2 2.0.1 trunk 0.7 0.8 0.9 1.0 1.2.8 1.3.0 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.7.0 1.7.1 1.7.2 All 32 releases
statify / statify.php

statify.php in Statify 1.5.3, at statify.php

93 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Statify
4 * Description: Compact, easy-to-use and privacy-compliant stats plugin for WordPress.
5 * Text Domain: statify
6 * Author: pluginkollektiv
7 * Author URI: http://pluginkollektiv.org
8 * Plugin URI: https://wordpress.org/plugins/statify/
9 * License: GPLv3 or later
10 * Version: 1.5.3
11 *
12 * Copyright (C) 2011-2017 Sergej Müller, pluginkollektiv
13 *
14 * Php Version 5.6
15 *
16 * @package WordPress
17 */
18
19 /* Quit */
20 defined( 'ABSPATH' ) || exit;
21
22
23 /* Constants */
24 define( 'STATIFY_FILE', __FILE__ );
25 define( 'STATIFY_DIR', __DIR__ );
26 define( 'STATIFY_BASE', plugin_basename( __FILE__ ) );
27
28
29 /* Hooks */
30 add_action(
31 'plugins_loaded',
32 array(
33 'Statify',
34 'instance',
35 )
36 );
37 register_activation_hook(
38 STATIFY_FILE,
39 array(
40 'Statify_Install',
41 'init',
42 )
43 );
44 register_deactivation_hook(
45 STATIFY_FILE,
46 array(
47 'Statify_Deactivate',
48 'init',
49 )
50 );
51 register_uninstall_hook(
52 STATIFY_FILE,
53 array(
54 'Statify_Uninstall',
55 'init',
56 )
57 );
58
59
60 /* Autoload */
61 spl_autoload_register( 'statify_autoload' );
62
63 /**
64 * Include classes via autoload.
65 *
66 * @param string $class Name of an class-file name, without file extension.
67 */
68 function statify_autoload( $class ) {
69
70 $plugin_classes = array(
71 'Statify',
72 'Statify_Backend',
73 'Statify_Frontend',
74 'Statify_Dashboard',
75 'Statify_Install',
76 'Statify_Uninstall',
77 'Statify_Deactivate',
78 'Statify_Table',
79 'Statify_XMLRPC',
80 'Statify_Cron',
81 );
82
83 if ( in_array( $class, $plugin_classes, true ) ) {
84 require_once(
85 sprintf(
86 '%s/inc/%s.class.php',
87 STATIFY_DIR,
88 strtolower( $class )
89 )
90 );
91 }
92 }
93