PluginProbe
Tracking Code Manager / 2.0.15
Tracking Code Manager v2.0.15
2.8.0 2.7.0 trunk 1.11.8 1.11.9 1.12.0 1.12.1 1.12.2 1.12.3 1.4 1.5 2.0.0 2.0.1 2.0.13 2.0.14 2.0.15 2.0.16 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.2.0 All 29 releases
tracking-code-manager / index.php
index.php
132 lines 4.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: Tracking Code Manager
4 Plugin URI: http://intellywp.com/tracking-code-manager/
5 Description: A plugin to manage ALL your tracking code and conversion pixels, simply. Compatible with Facebook Ads, Google Adwords, WooCommerce, Easy Digital Downloads, WP eCommerce.
6 Author: Data443
7 Author URI: https://data443.com/
8 Email: support@data443.com
9 Version: 2.0.15
10 Requires at least: 3.6.0
11 Requires PHP: 5.6
12 */
13 if ( defined( 'TCMP_PLUGIN_NAME' ) ) {
14 function tcmp_admin_notices() {
15 global $tcmp; ?>
16 <div style="clear:both"></div>
17 <div class="error iwp" style="padding:10px;">
18 <?php $tcmp->lang->P( 'PluginProAlreadyInstalled' ); ?>
19 </div>
20 <div style="clear:both"></div>
21 <?php
22 }
23 add_action( 'admin_notices', 'tcmp_admin_notices' );
24 return;
25 }
26 define( 'TCMP_PLUGIN_PREFIX', 'TCMP_' );
27 define( 'TCMP_PLUGIN_FILE', __FILE__ );
28 define( 'TCMP_PLUGIN_SLUG', 'tracking-code-manager' );
29 define( 'TCMP_PLUGIN_NAME', 'Tracking Code Manager' );
30 define( 'TCMP_PLUGIN_VERSION', '2.0.15' );
31 define( 'TCMP_PLUGIN_AUTHOR', 'IntellyWP' );
32
33 define( 'TCMP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
34 define( 'TCMP_PLUGIN_ASSETS_URI', plugins_url( 'assets/', __FILE__ ) );
35 define( 'TCMP_PLUGIN_IMAGES_URI', plugins_url( 'assets/images/', __FILE__ ) );
36 define( 'TCMP_PLUGIN_ACE', plugins_url( 'assets/js/ace/ace.js', __FILE__ ) );
37
38 define( 'TCMP_LOGGER', false );
39 define( 'TCMP_AUTOSAVE_LANG', false );
40
41 define( 'TCMP_QUERY_POSTS_OF_TYPE', 1 );
42 define( 'TCMP_QUERY_POST_TYPES', 2 );
43 define( 'TCMP_QUERY_CATEGORIES', 3 );
44 define( 'TCMP_QUERY_TAGS', 4 );
45 define( 'TCMP_QUERY_CONVERSION_PLUGINS', 5 );
46 define( 'TCMP_QUERY_TAXONOMY_TYPES', 6 );
47 define( 'TCMP_QUERY_TAXONOMIES_OF_TYPE', 7 );
48
49 define( 'TCMP_INTELLYWP_ENDPOINT', 'http://www.intellywp.com/wp-content/plugins/intellywp-manager/data.php' );
50 define( 'TCMP_PAGE_FAQ', 'http://www.intellywp.com/tracking-code-manager' );
51 define( 'TCMP_PAGE_PREMIUM', 'http://www.intellywp.com/tracking-code-manager' );
52 define( 'TCMP_PAGE_MANAGER', admin_url() . 'options-general.php?page=' . TCMP_PLUGIN_SLUG );
53 define( 'TCMP_PLUGIN_URI', plugins_url( '/', __FILE__ ) );
54
55 define( 'TCMP_POSITION_HEAD', 0 );
56 define( 'TCMP_POSITION_BODY', 1 );
57 define( 'TCMP_POSITION_FOOTER', 2 );
58 define( 'TCMP_POSITION_CONVERSION', 3 );
59
60 define( 'TCMP_TRACK_MODE_CODE', 0 );
61 define( 'TCMP_TRACK_PAGE_ALL', 0 );
62 define( 'TCMP_TRACK_PAGE_SPECIFIC', 1 );
63
64 define( 'TCMP_DEVICE_TYPE_MOBILE', 'mobile' );
65 define( 'TCMP_DEVICE_TYPE_TABLET', 'tablet' );
66 define( 'TCMP_DEVICE_TYPE_DESKTOP', 'desktop' );
67 define( 'TCMP_DEVICE_TYPE_ALL', 'all' );
68
69 define( 'TCMP_HOOK_PRIORITY_DEFAULT', 10 );
70
71 define( 'TCMP_TAB_EDITOR', 'editor' );
72 define( 'TCMP_TAB_EDITOR_URI', TCMP_PAGE_MANAGER . '&tab=' . TCMP_TAB_EDITOR );
73 define( 'TCMP_TAB_MANAGER', 'manager' );
74 define( 'TCMP_TAB_MANAGER_URI', TCMP_PAGE_MANAGER . '&tab=' . TCMP_TAB_MANAGER );
75 define( 'TCMP_TAB_ADMIN_OPTIONS', 'admin options' );
76 define( 'TCMP_TAB_ADMIN_OPTIONS_URI', TCMP_PAGE_MANAGER . '&tab=' . TCMP_TAB_ADMIN_OPTIONS );
77 define( 'TCMP_TAB_SETTINGS', 'settings' );
78 define( 'TCMP_TAB_SETTINGS_URI', TCMP_PAGE_MANAGER . '&tab=' . TCMP_TAB_SETTINGS );
79 define( 'TCMP_TAB_DOCS', 'docs' );
80 define( 'TCMP_TAB_DOCS_URI', 'http://intellywp.com/docs/category/tracking-code-manager/' );
81 define( 'TCMP_TAB_DOCS_DCV_URI', 'https://data443.atlassian.net/servicedesk/customer/kb/view/947486813' );
82 define( 'TCMP_TAB_ABOUT', 'about' );
83 define( 'TCMP_TAB_ABOUT_URI', TCMP_PAGE_MANAGER . '&tab=' . TCMP_TAB_ABOUT );
84 define( 'TCMP_TAB_WHATS_NEW', 'whatsnew' );
85 define( 'TCMP_TAB_WHATS_NEW_URI', TCMP_PAGE_MANAGER . '&tab=' . TCMP_TAB_WHATS_NEW );
86
87 define( 'TCMP_SNIPPETS_LIMIT', 6 );
88
89 include_once( dirname( __FILE__ ) . '/autoload.php' );
90 tcmp_include_php( dirname( __FILE__ ) . '/includes/' );
91
92 global $tcmp;
93 $tcmp = new TCMP_Singleton();
94 $tcmp->init();
95
96 include_once( dirname( __FILE__ ) . '/tcmp_free_wp_kses_tags_attrs.php' );
97
98 tcmp_free_add_additional_tags_atts();
99
100 function tcmp_qs( $name, $default = '' ) {
101 global $tcmp;
102 $result = $tcmp->utils->qs( $name, $default );
103 return $result;
104 }
105 //SANITIZED METHODS
106 function tcmp_sqs( $name, $default = '' ) {
107 $result = tcmp_qs( $name, $default );
108 $result = sanitize_text_field( $result );
109 return $result;
110 }
111 function tcmp_isqs( $name, $default = 0 ) {
112 $result = tcmp_sqs( $name, $default );
113 $result = floatval( $result );
114 return $result;
115 }
116 function tcmp_bsqs( $name, $default = 0 ) {
117 global $tcmp;
118 $result = $tcmp->utils->bqs( $name, $default );
119 return $result;
120 }
121 function tcmp_asqs( $name, $default = array() ) {
122 $result = tcmp_qs( $name, $default );
123 if ( is_array( $result ) ) {
124 foreach ( $result as $k => $v ) {
125 $result[ $k ] = sanitize_text_field( $v );
126 }
127 } else {
128 $result = sanitize_text_field( $result );
129 }
130 return $result;
131 }
132