-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathao-admin.php
66 lines (53 loc) · 2.18 KB
/
ao-admin.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* @package 3AO_Admin
* @version 1.0.0
*/
/**
Plugin Name: 3AO Admin Page
Plugin URI:
Description: Lorem ipsum ...
Author: 3AO
Version: 1.0.0
Author URI: https://3ao.com
Text Domain: ao-admin-page
*/
// Make sure we don't expose any info if called directly
if ( ! function_exists( 'add_action' ) ) {
echo '♬ I\'m just a plugin, yes I\'m only a plugin, and you shouldn\'t be trying hack into this site ... ♬';
exit;
}
/** Quick var print functions for debugging. */
function pr ($var, $die = true) {
header("Content-Type:text/plain");
if ($die) { die(print_r($var,1)); } else { print_r($var,1); }
}
/** Zend var print functions for debugging. */
function zd ($var, $die = true) {
if ($die) { die(Zend_Debug::dump($var)); } else { Zend_Debug::dump($var); }
}
define( 'AO_ADMIN_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
/** Some ZendFramework Includes */
$include_path = AO_ADMIN_PLUGIN_DIR . 'inc/zf1-future/library';
set_include_path(get_include_path() . PATH_SEPARATOR . $include_path);
require_once AO_ADMIN_PLUGIN_DIR . 'inc/zf1-future/library/Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();
register_activation_hook( __FILE__, [ 'AOAdmin', 'plugin_activation' ] );
register_deactivation_hook( __FILE__, [ 'AOAdmin', 'plugin_deactivation' ] );
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_admin.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_admin_update.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.parsedown.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_form_profile.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_form_size_card.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_form_resume.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_form_media.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_model_response.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_model_usermeta.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_service_validation.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_service_profile.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_service_size_card.php';
require_once AO_ADMIN_PLUGIN_DIR . 'class.ao_service_media.php';
add_action( 'init', [ 'AOAdmin', 'init' ] );
## Test Code ##
//phpinfo();
//exit;