-
Notifications
You must be signed in to change notification settings - Fork 16
/
affiliate.php
35 lines (29 loc) · 1.46 KB
/
affiliate.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
<?php
/*
Plugin Name: Affiliate
Plugin URI: http://premium.wpmudev.org/project/wordpress-mu-affiliate
Description: This plugin adds a simple affiliate system to your site. Track incoming clicks from affiliate referer links, Order tracking integration with MarketPress, Prosites paid signups and Membership paid signups.
Author: WPMU DEV
Version: 3.1.7
Author URI: http://premium.wpmudev.org
WDP ID: 106
Domain Path: /affiliateincludes/languages
*/
require_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/config.php');
require_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/functions.php');
// Set up my location
set_affiliate_url(__FILE__);
set_affiliate_dir(__FILE__);
if(is_admin()) {
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/affiliate_admin_metaboxes.php');
// Only include the administration side of things when we need to
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliateadmin.php');
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliatedashboard.php');
$affadmin = new affiliateadmin();
$affdash = new affiliatedashboard();
}
// Include the public and shortcode classes for both public and admin areas
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliatepublic.php');
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliateshortcodes.php');
$affiliate = new affiliate();
$affshortcode = new affiliateshortcodes();